Android studio - how to create res folder for different flavor -


i'd create res folder in flavor folder in android studio dont see option it. know structure looks this:

src  \  main    |    res 

but have flavor added , strucuture looks this:

src   \   main     |    res   \   staging    |    (i want res appear here)  

is possible res appear under staging. way anytime using stagingdebug variant first drawables etc inside staging res folder ? tried right click , go new dont see option create res folder.

i consider 2 things want achieve.

first have consider directory structure. if have 2 flavors, example debug , release, , want different image each flavor need put files inside following directories:

app/src/debug/res/drawable   app/src/release/res/drawable 

first 1 debug flavor, second 1 release flavor. made sample project available @ github shows how use different image 2 flavors.

the other thing consider use different view browse project items. if check on left of screen, have drop down allows change way browse project elements, if click on it, see this:

project browsing views

if click on project files, have view pretty file browser. if click on src, might need create directory each flavor , then, res , drawable directory. right clicking on top of directory, choose new -> directory.


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -