Default naming for Android layout files
For Android development I use IntelliJ IDEA 2016.3 Ultimate and Android Studio 2.2.2, and both are excellent for it .
However, the one thing that bugs me about developing for Android is the way layout files are organized (one massive list), and the default naming convention[1] exacerbates this.
1. "activity_{name}", "content_{name}", "fragment_{name}", etc.
I would prefer a scheme that reflects the structure of my application, à la Clean Architecture, but given the limitations if the platform I have taken to naming the layout files as such:
"{subpackage}_{activity name}_activity", e.g "users_add_activity", or "users_list_fragment", that way the layout files relevant to a given use case are at least co-located.
Is there a way I can get either IJ or AS to change the default naming convention when adding new activities and fragments?
请先登录再写评论。
It doesn't seem to be configurable. Feature request is welcome to the Android Studio issue tracker: https://code.google.com/p/android/issues/entry?template=Tools%20feature%20request .
Thanks Serge. I'll post it there.