Can I list all line file files in a folder tree?

I create a project with free and professional versions of productFlavors and use a different string resource file for different publications, the folder design is cc.png.

If I change the Build Variant in the panel, the values ​​on the Android tab display two .xml (2) lines, one is in the main folder, the other is free or about the folder, you can see aa.png and bb.png.

I hope all the string file files can be displayed together, three string.xml (3) files will be displayed on it, first the main folder is located, sencond is the free folder, and the third is about the folder. How can i do this? Thanks!

CC.png

enter image description here

AA.png

enter image description here

BB.png

enter image description here

build.gradle

apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "info.dodata.messagecleanup" minSdkVersion 9 targetSdkVersion 22 versionCode 7 versionName "1.07" archivesBaseName = "MessageCleanup-V" + versionName } productFlavors { free { applicationId "info.dodata.messagecleanup" buildConfigField "String", "AppName", "\"Message Cleanup\"" } pro { applicationId "info.dodata.messagecleanup.pro" buildConfigField "String", "AppName", "\"Message Cleanup Pro\"" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.google.android.gms:play-services:7.3.0' } 
+5
source share
2 answers

Unfortunately, the Android Project Panel view does not support this behavior. The Android view is specifically designed to display the status of your project for a given build option, and not for all options.

As you already discovered, the easiest way to see your resources in all available configurations is to use the project view instead of the Android view.

You can also request the Android issue tracking feature to show the resources available in all options.

+6
source

You can define custom areas in IntelliJ / Android Studio that display specific folders / files:

enter image description here

Then you can select this custom scope from the drop-down list of scopes:

enter image description here

However, I think that a more efficient way to navigate between string files is to press the "Search Worldwide" hotkey, type "strings.xml" and select the one you want:

enter image description here

+3
source

All Articles