What is the Android Studio's Default Qualifier for Layout Resource Directory?

Multi tool use
What is the Android Studio's Default Qualifier for Layout Resource Directory?
Creating a project in Android Studio with an Empty Activity would produce a project with an existing layout resource directory.
If I create a project without an activity and decide to add an activity later, I'll need to create a layout resource directory to put the layout file in there. Before it's created it needs a qualifier.
Is Android studio using any default qualifiers when creating an xml layout for the Empty Activity project?
In the image below you can see the window where IDE is asking for the qualifier.
No, not the name of the directory; But the Qualifier for the layout's directory before it's created. This is the image of Android Studio asking for a Qualifier.
– Saitama
Jul 1 at 3:42
You don't require XML layouts for activities. For example, research the Anko library
– cricket_007
Jul 1 at 4:05
2 Answers
2
As per investigation, I found out the Layout Resource directory I'm talking about is just a normal directory like a folder added to a project. The layout XMLs in projects created with an empty activity would be put in a normal directory without qualifiers.
In case you created a new Blank Activity, and you want to add new layouts for activities with a default qualifier you have two options
You can just create a directory in your project:
app/src/main/res/layout
About the Android project structure:
https://developer.android.com/studio/projects/#ProjectView
Resource types specificly:
https://developer.android.com/guide/topics/resources/providing-resources#ResourceTypes
You can also do it in the Android Studio, the way you posted in the question.
Select: File -> New -> Android resource directory.
I am pasting a screenshot so you can see my Android resource directory wizard where I am allowed to create default resource directory. See I do not need to explicitly to select any qualifier, I don't know why is IDE asking you to provide one. Maybe its because we are using different version of Android Studio.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
You mean the name of the layout's directory?
– st4rl00rd
Jul 1 at 3:30