• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Using percentage in UI design

A

Android Question

Guest
Hi All,

I am new to android For supporting Screen UI in multiple resolution screens, is it better to use percentage approach (android.aupport.percent.percentrelativelayout) for margin, width and height of the component or is it better to use android native approach like match parent, wrap_content, dp?

Please kindly guide me

Thanks
C.Rajesh
 
I normally use match_parent and wrap_content, and you get automatic adjustment for different screen sizes.

One thing you don't really want to do is use absolute pixel sizes. That's just asking for trouble.
 
Back
Top Bottom