Android Studio template for creating Fragment
, View
interface and Presenter
.
Files created in Kotlin lang.
- Move to
$ANDROID_STUDIO_FOLDER$\plugins\android\lib\templates\other\
- Create directory and name it for example
MvpFragmentMoxy
- Copy all files in this directory
- Restart Android Studio
- Right click on package
New -> Other -> MvpFragmentMoxy
- In FunctionalityName field type prefix name of the group you create. For example
Library
generateLibraryFragment
,LibraryView
andLibraryPresenter
- Done!