Skip to content

roixa/RoixArchitectureTemplates

Repository files navigation

RoixArchitectureTemplates

Global architecture templates for android

This is a clean mvvm architecture with DI, included base list and toolbar screens logic, configured themes, styles, values etc. After every template use (probably except only Architecture Template), the project is able to compile. This allows to work with architecture and DI, as a black boxes.

Main advantages

  • Compilable and simple usage
  • Implement DI, navigation, databinding logic
  • Separate resource dir for every screen

Usage

1. Download or clone this repository 

2. Copy (RoixArchitectureApplication , RoixMVVMRepository , RoixMVVMScreen) folders
to folder ${AndroidStudioDir}/plugins/android/lib/templates/activities

3. Restart Android Studio

3. Choose File->New->Roix MVVM Architecture->template

4. Use the template

Templates

1. Architecture: 
Create base classes and the first screen and the repository, and configure resourses, manifest, .gradle files.

2. Screen: 
Add view (activity or fragment), vievmodel, interactor, repository class-interface pairs. And resolving thees in a DI tree.  
Screen can be list, toolbar, etc.


Tools / Libs Utilized

Basic architecture scheme

Screenshot

Inheritance structure DEPRECATED

Screenshot