Android Studio template for Kotlin,JAVA with MVVM and has options for AndroidX and GM MVVM Starter
You can find GM MVVM Starter here
- Download Repo
- Copy all file inside repo.
- Go to your Android Studio app, then Contents/plugins/android/lib/templates/other/KmMVVMFragment (Full path: /Applications/Android Studio.app/Contents/plugins/android/lib/templates/other/KmMVVMFragment).
- Paste the templates in the 'KmMVVMFragment' folder
- Restart Android Studio if it's running.
Note: Make sure to check the repo for updated templates. You have to remove and add the updated template again.
Note 2: Android Studio will remove the template on each update. You need to install it after each update.
- Launch Android Studio
Right click -> New
where you want to use the new template. Look Fragment section for your new template and select KM MVVM Fragment Template .- Complete the form with your information.
- Build the project for Databinding
Submit your template ideas (issues or pull requests) and report any problems faced with current ones.
MIT License
Copyright (c) 2018 Semih DİK
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.