I am building a small android app where there will be three buttons depicting individual functionality and set of images associated to these functions respectively.
When I receive these images, depending upon their functionality I will be pasting in either folder a or folder b and folder c.
As soon as the button is clicked, the onClick method in setOnClickListener class will point to the respective folder and browse through the images through the seek bar.
For example, if button A is clicked, it will point to the folder A. A seek bar will be used to browse through the images in folder A if button B is clicked, it will point to the folder B. The same seek bar will be used to browse through the images in folder B if button C is clicked, it will point to the folder C. The same seek bar will be used to browse through the images in folder C
Problem I have is I am not able to create folders under drawable. Even though creating of folders allowed, programmatically I am not able to connect to these folders and these are not visible.
I tried to create folders under app in build.gradle for module app as below
sourceSets {
main.res.srcDirs = ['src/main/res', 'src/main/resa', 'src/main/resa/opta', 'src/main/resa/optb', 'src/main/resa/optc']
}
The above is not working. What I need is a place where I can create three folders and past the images and programmatically point to these folders.
Please can someone advise? I am using android studio. Java programming language