Free Android app covering all aspects of addiction, including prevention and treatment

Drawer Navigation

Using Navigation Drawers in your apps The Navigation Drawer is a panel where you can put your navigation options. The panel is hidden off-screen and displays when the user swipes it onto the screen. You can also use the app icon as a button to open and close the drawer.

Swipe View Tutorial

Using Swipe Views to swop pages Swipe views allow you to change pages by swiping your finger across the screen. You create Swipe views by using a page viewer and an adapter. The adapter supplies the pages and the page viewer takes care of moving the pages on and off…

Tab navigation tutorial

Using Tab navigation in your apps Tab buttons are displayed in the Action Bar. You can also use images instead of buttons or even your own custom views. Tabs are designed to work with fragments. Use them to swop fragments in your activities. We’ll show you how to use Tabs…
Using fragments to rebuild your activities An activity is destroyed and recreated when a device’s configuration changes. Usually the activity’s lifecycle takes care of saving and restoring its state. Sometimes you may need to restore lots of data. This could take some time resulting in a bad user experience. Here’s…

Preference Settings

Preference Settings Preference Settings allow the user to select basic settings for an app. It’s a way of customising the app to suite the user. This tutorial will show you how you can create your own custom Preference Settings for your apps. We’ll be using fragments and Headers so this…