Which measurement we should use in Android: px, dp, dip or sp ???
Is there any percentage kind of thing in android layout design as we have in CSS for web development.
Which measurement is safe to use in Android to design cross phone compatibility.
dipis best used for when you need something a static size. This is a “Device Independant Pixel” and will roughly be rendered the same physical size on any handset/tablet.Ideally though, you should be using layout_weights and clever implementations of match_parent and wrap_content to fill most fields.
Edit: Just FYI,
dip=dp… compiler handles them equivocally. Use whichever you like.