I am making the various drawable directories in an android studio project and it has the option of qualifiers. It has a list of available qualifiers and another area for chosen qualifiers.
What is a qualifier? How does it effect the project?
Step 1: Open your project and right click on res, t hen click “New”, then “Android resource directory”, Add Android resource directory: After that change the resource type to “menu” in the dropdown menu and then click “OK”. Change the resource type to menu:
Android Specify Alternative Resources 1 Create a new directory in res/ named in the form -. 2 Save the respective alternative resources in this new directory. The resource files must be named exactly the same as the default resource files. See More....
If you use a new resource qualifier, but maintain code compatibility with older versions of Android, then when an older version of Android runs your app, it will crash if you don't provide default resources, because it cannot use the resources named with the new qualifier.
A configuration qualifier is a string that you can append to a resource directory in your Android project and specifies the configuration for which the resources inside are designed. To use a configuration qualifier: Create a new directory in your project's res/ directory and name it using the format: <resources_name>-<qualifier>.
What is a qualifier?
It is a constraint, indicating that the directory's worth of resources is targeting a particular certain devices and configurations.
So, for example:
res/layout/
is good for anything, but res/layout-land/
is for landscape orientations
res/values/
is good for anything, but res/values-fr/
is for French, and res/values-v11/
is good for devices running API Level 11 or higher
You can read more about resource set qualifiers in the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With