I am doing project at home that involves 4 buttons in the left and 4 buttons in the right with a size 100 by 100dp. I used absolute layout so that it sits in the required place correctly by giving the x and y value.
This just works fine with 7″ tablet with resolution 800*440.. If I get apk installed on Samsung Galaxy Tab or any other resolution other than 800*440 The button are placed randomly or in different smaller.
How do I fix this? Using Relative layout or different layout I can’t enter the button size value? I want the button to be in specific size.
Can somebody help me out with this issue? How to have my button placed in the same place for any tablet with any resolution.
Awaiting your response!
Thanks!
Here is an example this below layout will always having buttons at center if any problem you are facing then you can ask i will try to help you..