0

How do I implement the complex UI as below

Menu Screen

I tried implementing this layout with combinations of different layout, experimenting with gravity and dynamic calculations

However As per my understanding it required few margin and padding hard coded in dp, which makes the UI unstable in different screen resolution

Can anyone help me guide on how can we implement this in efficient...

Also even xhdpi and xxhdpi layout are different in multiple device using same layout..can anyone tell why so?

1 Answer 1

1

However As per my understanding it required few margin and padding hard coded in dp, which makes the UI unstable in different screen resolution

Actually using margins and paddings in dp is a good practice to make your app look stable on different screen sizes. Take a look at this question and answer: What is the difference between "px", "dp", "dip" and "sp" on Android?

Just make sure you have your margins and paddings in dimens.xml and create different dimens for other layouts (like sw600dp and sw720dp).

Sign up to request clarification or add additional context in comments.

2 Comments

But then as per google.com/design/tool/devices, I have to implement for all the resolutions?
Yes, you need to consider different groups of devices. Take a look at this question stackoverflow.com/questions/2638202/… it describes this topic in details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.