Android Tips, Techniques and Theory

PART 1: Creating Content with XML with Android Studio (No programming required)

With Simple Recipes

Go Back To TOC


There are a variety of ways to navigate in an app.

Action Bar

Action Bar was introduced with Honeycomb. And like Fragments, it is backward compatible for Android 2.2 and above via a Support Library. It can show the user location across apps and can include:

In many cases the action bar is AUTOMATICALLY created for you when you select most templates. The action bar menu items are stored in a menu's XML file.

[REPLACE WITH MY OWN GRAPHICS WHEN I COMPLETE A DEMO]

[TYPE THE FOLLWING CODE AND DELETE IMAGES AND REFERENCES]

NOTE: Notice there are android, app and tools namespaces.

In the <item> element represent each item in a menu and can have the following attributes:

[TYPE THE FOLLWING CODE AND DELETE IMAGE AND REFERENCE]


[TYPE THE FOLLWING CODE AND DELETE IMAGE AND REFERENCE]


Navigate UP should not be confuse with Navigate BACK (with Back button). Navigating up will navigate to the parent activity (akin to the home page) from the current activity . The parent activity is declared in the manifest file for each activity.

FABs

Drawers