Themes Coder Android UIUXDocs
Getting started

Introduction

UIUX is a set of Android Material Design components and screens, ready to drop into your own app. It has 60+ UI component styles, and you can take a single part, a whole screen or a whole module. The code is written in a modern style and is easy to read and customise for any Android developer.

Press / anywhere to search these docs, or use View all on one page in the sidebar to print or save the whole guide as a PDF.

What you need#

You need a computer to build the app and an Android device (or emulator) to test it on.

  • Java SE Development Kit (JDK)
  • Android Studio
  • Android SDK
  • An Android device running Android 5.0 or later

How this guide is organised#

  1. Set up and run installs the tools, imports the project and runs it on your phone.
  2. Project structure shows where the Java code, layouts, drawables and animations are.
  3. Reuse screens and modules explains how to copy a screen or a whole module into your own project.
  4. Integrations covers the social logins, ads, push notifications, maps and other services.
  5. Where to add your keys shows the exact file and line for every key.

UIUX Pro#

UIUX Pro has the same project and setup as UIUX, plus mini apps. Everything in this guide applies to both. The only extra step for Pro is adding the mini apps' credentials.

Getting started

Set up and run

UIUX is built with the latest Android tools. This chapter installs them, imports the project into Android Studio and runs it on your phone.

Tools#

  • Android Studio. Android Studio is the official IDE for Android development, built on IntelliJ IDEA. Besides its code editor it has the tools you need to build and test Android apps.
  • Gradle. Gradle is the build toolkit. The Android plugin for Gradle adds the build steps and settings specific to Android apps, and Android Studio runs it for you.

Install the tools#

Download and install the latest Java Development Kit and Android Studio. The Android Developer website has up-to-date install instructions for both.

Three things work together when you build an app in Android Studio:

  • the Java or Kotlin code you write,
  • Android Studio itself, the editor and tools,
  • the Android SDK, the Android platform and its build tools.

Open Android Studio. It handles most of the setup for you. If it reports that something is missing, open Configure → SDK Manager: that's where you update the Android SDK and download extra platforms and tools.

Import the project#

  1. In Android Studio, choose Import project (Gradle, Eclipse ADT, etc.).

    Android Studio welcome screen
  2. Browse to the folder where you placed the Android UIUX project and click OK.

  3. Wait for Gradle to finish syncing and building the project.

    Gradle sync finished in Android Studio

Run it on your phone#

  1. Turn on Developer options and USB debugging on your Android device, and connect it to your computer. (Or start an emulator.)

  2. Click Run 'app' in the toolbar (or press Shift+F10).

    The Run app button in the Android Studio toolbar

The app installs and opens on your device.

Getting started

Project structure

Where everything is in the project, so you can find the screen or component you want to reuse.

Java code#

The Java code is under app → java → your package name → Components.

The java folder in Android Studio
Java code, grouped by component

XML layouts#

Switch the project view to Project Files to see the folders as they are on disk.

Switching the project view to Project Files

The layouts are under app → src → main → res → layouts → components, grouped so you can find any screen quickly.

The layouts folder

The layout folders only show as folders in Project Files view.

Drawables#

All drawables are under app → res → drawable.

The drawable folder

Animations#

All animations are in the anim folder.

The anim folder
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.

Build with UIUX

Integrations

UIUX includes ready-made code for social logins, ads, push notifications, maps, YouTube and WordPress. Each one needs an account with that service and a key. This chapter covers getting them; Where to add your keys shows where they go in the project.

Facebook Login#

  1. Create a new app in the Facebook developer portal.

    Create a new Facebook app
  2. In the app's dashboard, open Settings → Basic and fill in the required fields. Add the Android platform with your app's package name.

    Facebook app basic settings
  3. Save, and set the app live. You'll use its App ID and App Name, for example APP_ID="123456789" and APP_NAME="myApplication".

Google Sign-In#

Google Sign-In gives you the user's email, display name, given and family name, profile picture URL and user ID. Further Google API access is up to your app.

  1. Create a project in the Google API Console.

    Create a Google project
  2. Create an OAuth client for Android with your package name (as in the project's AndroidManifest.xml) and fill in the required fields.

    OAuth client for Android
  3. Add your SHA-1 key. In Android Studio you can get it from the Gradle signingReport task, as shown below.

    Getting the SHA-1 key from Android Studio

Save the changes and the integration is complete. More: Google Sign-In for Android.

LINE Login#

  1. You need a LINE account to use the LINE Developers console. Create a provider there.

    LINE Developers console
  2. Create a channel and fill in the required fields.

    Create a LINE channel
    LINE channel details
  3. Use the channel ID in the code.

  4. Under the Android platform, add your package name and your SHA-1 key as the package signature.

    LINE Android platform settings

More: Integrating LINE Login with your Android app.

YouTube Data API#

Add YouTube features such as playlists and videos to your app.

  1. You need a Google Account to use the Google API Console.

  2. Create a project in the Google API Console and get credentials (an API key).

  3. In the Enabled APIs page, make sure YouTube Data API v3 is on.

    YouTube Data API enabled
  4. For a playlist you also need your Channel ID, from your YouTube account's advanced settings.

    YouTube channel ID

Use the API key and channel ID in the provided code. More: YouTube Data API getting started.

WordPress feeds#

To show posts from WordPress, put your WordPress site's URL in the provided code. See Where to add your keys.

AdMob#

Create an AdMob account and an app to get your App ID and ad unit IDs. Then you can test banner, interstitial, interstitial video and rewarded video ads. More: AdMob for Android.

Firebase Cloud Messaging (FCM)#

  1. Add the Firebase API to your Google project (from the API Library), so the Google project syncs with Firebase. Otherwise Firebase won't let you add the Android app, because its package name and SHA key are already used by Google Sign-In.

  2. Add an Android app to the Firebase project, download google-services.json and put it in the app folder.

    Adding google-services.json to the app folder

OneSignal#

  1. In your OneSignal dashboard, Add a new app and give it a name.
  2. Add the Android platform. OneSignal needs your Firebase project's server key for this.
  3. Under Settings → Keys & IDs you'll find the OneSignal App ID and REST API key.

Google Maps#

Enable the Maps SDK for Android in your Google project's API Library, and create an API key.

Maps API enabled in the Google API Console

More: Maps SDK for Android.

Build with UIUX

Where to add your keys

The screenshots below show the file and line for each service's key. The highlighted box marks where your key goes.

Facebook#

Facebook app ID in the project

Dropbox#

Dropbox key in the project

Google Maps#

Google Maps key in the project

Google Ads (AdMob)#

AdMob IDs in the project

HERE Maps#

HERE Maps keys in the project

Razorpay#

Razorpay key in the project

Stripe#

Stripe key in the project

YouTube#

YouTube API key and channel ID in the project

LINE#

LINE channel ID in the project

Flurry Analytics#

Flurry key in the project

Paytm#

Paytm keys in the project

PayPal#

PayPal client ID in the project

OneSignal#

OneSignal app ID in the project

WordPress and WooCommerce#

Add your WordPress site URL for the feeds, and your WooCommerce REST API URL, consumer key and consumer secret.

WordPress and WooCommerce credentials in the project

Mini apps (UIUX Pro)#

UIUX Pro only: add the credentials for the mini apps.

Mini apps credentials in UIUX Pro
Reference

Support

Stuck on a step, or found something that doesn't work as this guide says? We're happy to help.

Get help#

Before you write#

Please include these, so we can answer in one go:

  1. Your purchase code, or the email you bought with.
  2. Which part you're setting up: the admin panel or website, the customer app, or the delivery or vendor app.
  3. The step in this guide where it stopped working, what you expected and what happened instead.
  4. Screenshots of any error, and the console or build output if a build failed.

What item support covers#

As set by Envato's item support policy, support covers questions about how the item works, fixing bugs in it, and help with the third-party assets it includes. Installing it on your server for you, custom changes and new features aren't part of item support, but you're welcome to ask about them.