Friends. I want know is there any way to create a directory in android studio.And the call that directory in MainActivity like.
R.layout.my layout;
insted of that I want
R.(my directory).mylayout;
Friends. I want know is there any way to create a directory in android studio.And the call that directory in MainActivity like.
R.layout.my layout;
insted of that I want
R.(my directory).mylayout;
Yes you can do it. For instance if you want to read a csv file in your project. Then make a folder in the res folder of your project (let's name this folder raw). Then place a file in the folder. So the folder structure will be something like this res->raw->evolver.csv.
Now to read this file, you can do something like this to read this file.
InputStream inputStream = getResources().openRawResource(R.raw.evolver);
Here "evolver" is the name of the file that I placed in the folder res->raw.
R.layout.(your Directory).
this should do it