Search code examples
androidlayoutbuttongravity

Android button dynamically placed on button


I wanted to know if there is a way to place a button on the bottom of the screen, no matter what size screen the device has. I basically want the button to have a gravity="bottom", not just its text. I have been trying to do this, and I cannot find a way to do it. any suggestions?


Solution

  • Never mind, I created a child LinearLayout only for and I put

    android:gravity="bottom"
    

    in the child and it worked :-)