Avoid using 'px' as units, use 'dp' instead

alert, android

Solution

The answer is right there: What is the difference between "px", "dp", "dip" and "sp" on Android?

pixels is the exact number, and dip is dynamic: better to keep the view you want on any type of screen

Problem

Why did I have this Alert message in my xml layouts in android the message is Avoid using "px" as unite, use "dp" instead

Original source

Related problems