Skip to content Skip to sidebar Skip to footer

Why When My Desktop Screen And Mobile Screen Have The Same Resolution Don't They Display The Same Thing?

For example, one my desktop one of my 50px wide button is viewed on my desktop it looks like it occupies about 5% of the screen space as expected. But when viewed on my Android dev

Solution 1:

Different displays have different pixel sizes. You hear this referenced as DPI, or dots-per-inch, which is physically how many pixels there are per inch. In your case, your desktop has smaller pixels than your Android device (higher DPI), so the 50px takes up less physical space.

You can fix this by specifying a physical size, such as cm or in. Check out the spec.

Post a Comment for "Why When My Desktop Screen And Mobile Screen Have The Same Resolution Don't They Display The Same Thing?"