Questions tagged [configuration-qualifier]

Use for questions on android configuration qualifiers like -hdpi, -xhdpi, -v21, -landscape, ...

Android supports several configuration qualifiers for providing alternate resource based on several conditions and you can add multiple qualifiers to one directory name, by separating each qualifier with a dash.

2 questions
3
votes
0 answers

Get resource name including configuration qualifier from resource id

You can get the resource name as shown here: https://stackoverflow.com/a/10138018/1489968 But unfortunately getResourceEntryName(R.layout.xzy) is returning xyz and getResourceName(R.layout.xzy) is returning package:layout/xyz. Is there any function…
Sven-Michael Stübe
  • 14,560
  • 4
  • 52
  • 103
2
votes
2 answers

Available height qualifier

I don't understand how available height qualifier works. I'm using : val displayMetrics = DisplayMetrics() windowManager.defaultDisplay.getMetrics(displayMetrics) val height = displayMetrics.heightPixels val width =…
Pako1
  • 247
  • 2
  • 12