Basically the title speaks for itself.
I would like to put elements on top of different elements. I could use Absolute Layout, but it is said to be deprecated.
Is there any other way to do it? And if no, why would they deprecate AbsoluteLayout?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The default behavior of RelativeLayout will stack all of the elements on top of each other in the top left corner so this layout:
Will stack the two images one ontop of the other in the top left of the screen. Relative layout offers many other attributes that will allow you to move the views to different positions on the screen. But the idea is that it scales to different sizes better because you won’t be hardcoding x,y values for where you want elements to go.