Android ldpi resource not found



I'm running a low dpi QVGA Slider (API 5) AVD emulator running Android 2.0.


getResources().getDisplayMetrics().densityDpi returns 120, which is the standard value for ldpi.


I have resource folders values, values-ldpi, values-mdpi, values-hdpi, ..., values xxxhdpi. Each contain a numbers.xml file, which all hold a different value of the integer variable edit_text_padding. However, when I try to access this value using getResources().getInteger(R.integer.edit_text_padding), the value from the default values folder is used instead.


I did not experience this issue on a physical xxhdpi device.


No comments:

Post a Comment