java - Is gravity with dual or multiple constants possible -


I want to align a widget at the bottom-center of the screen. I am using a frame layout because I have a full screen app running behind the widget that I want to align. I set the parameter like this:

  Frame layout. Layout lp = new frame layout. Layout paragraph (frame layout layoutPem.RRAP_CONTENT, frame layout. Layoutpack.wrap_CONTENT, Gravity.BOTTOM);  

Using the code above, the widget is aligned with the bottom of the screen but it is not centered. Is it possible to add second constants to gravity?

Yes, use

  gravity. CntEROriginal | Gravity Bot  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -