I am specifying a button's width as 600dp in values/dimens.xml
, but when I deploy and run it on my Nexus 5 it takes up all the available width in the landscape orientation.
My activity only runs in landscape mode, as I have specified in manifest file. The layouts are in the layouts
directory. The images are in the 'drawable-xxhdpi' directory and they appear fine, but everything that I specify in dp
is magnified.
The previews in Android Studio and the actual device seem to behave as they have 600dp max width when it should be 1920. Why is this, and how can I fix it?