Assume we have two android devices with the same screen dimensions, but with different resolutions. Is the following true or not: if dp unit is used to set the sizes of all view
If the screens are the same physical dimension but have a differing dpi and you've used the dp (Density-independent pixel) then they should be the same as this is the point of the dp unit.
This link shows more about the handling of screen sizes and derivation of dp values.
Yes, dp (or dip) means density independent pixel. Source
So it's independent of the pixel density of the device.