The concepts of PX, dip, SP, and DP are vague. I checked it online and found it clearly in theory.
1. PX (pixels): the point on the screen, which is related to the density. The density is high, and the PX size per unit area is large.
2. Dip or DP (pixels unrelated to density ). This is related to the hardware of the device. We recommend that you use this feature to support WVGA, hvga, and qvga 5 hexadecimal space. An abstract unit based on screen density. You can use this option to set the width and height of some views. Generally, you do not feel scaled at different resolutions. If PX is used, 320px is full of the width of hvga, and only half of the screen can be occupied by WVGA, it must not be what you want.
3. Sp (pixel unrelated to the scale) scales up the pixel-mainly processing the font size.
Screen size and density table:
In manifest, the following shows whether the app supports the multi-density method at different resolutions.
<Manifest xmlns: Android = "http://schemas.android.com/apk/res/android">
...
<Supports-screens
Android: smallscreens = "true"
Android: normalscreens = "true"
Android: largescreens = "true"
Android: xlargescreens = "true"
Android: anydensity = "true"/>
</Manifest>