I have a FrameLayout with a vertical LinearLayout inside. I have an ImageView that I want to sit at the very bottom of my layout. I’m not sure how to do this. I added it as the last element in my LinearLayout but it’s not fixed to the bottom. How can I achieve this?
I have a FrameLayout with a vertical LinearLayout inside. I have an ImageView that
Share
Please post your layout code. I highly recommend not using RelativeLayout, for a number of reasons. usually there is some other component of your view that you’d like to take up the rest of the space, and if you give that layout_weight, as mentioned in another answer, that will solve your problem.
As an example, this will always put what you want at the bottom: