Today when start optimizing the codebase of my project, I saw this: Look at the list of XML files inside my res/layout folder. Horrible, right? Now, look at yours. Is your res/layout too big, hard to control? Your project have too many features, too many screens? Let imagine while confusing running for the deadline, and you can’t find the XML layout that need to be fixed just because you can’t remember the file name. Wandering search online, I find out that many people have the same problem as me. So I decide to write an article to share some tips for better manage res/layout folder in Android Studio . Step 1 First create a parent layouts folder. Right click in res , select New → Directory , type layouts (remember the ‘s’ or it will be duplicated). I call it “ layouts” because it is parent folder to hold all layouts of our project. Step 2 Select layouts , right click and select New →
Comments
Post a Comment