Themes Coder Android UIUXDocs
Build with UIUX

Reuse screens and modules

Take one screen, or a whole module, from UIUX into your own project.

Copy a single screen#

Here's how to copy the home pages from the Screens module, as an example.

  1. Add the dependencies the screen uses to your project, if it doesn't have them yet.

  2. Copy the screen's Java files into your project.

    The screen's files in the Screens module
  3. Rename the files as you like for your project.

    Renaming a copied file
  4. Android Studio shows errors at first. Copy every file the screen needs, then remove the old imports and re-import them with Alt+Enter.

    Imports to remove after copying
  5. Copy the screen's XML layouts, drawables, fonts, menus and values. You'll find them all in the Screens module.

    The Screens module's resources

Each module keeps its own data and resources, so everything a screen needs is in its module.

Copy a module#

Open the module you want and copy all its Java files, its manifest file and all its resources into your project.

Copying a whole module

After copying you'll see many errors. They come from the changed package name: re-import (Alt+Enter) and they go away.