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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -