How to hide and show Action Bar?

In the previous posts, we discussed how to add Action Bar, handle action items clicks and add Up button. In this post, I will teach you now how to hide and show Action Bar.

In some scenario we need to hide Action Bar to provide more space for User to work on the applications.

I would recommend you to take a look at the previous posts listed below (which are prerequisites to learn current article) so that you can learn this post with much ease.

Read More

How to add Up button on Action Bar?

In the previous posts, we discussed how to add Action Bar and handle action items clicks. In this post, I will teach you how to add ‘Up’ or Navigation button on Action Bar.

Navigation button appears along with the icon in the action bar with the caret symbol.

For Ex: GMail Application with ‘Up’ button

Action Bar Up Button

Read More

How to handle clicks on Action Bar action items?

In the previous post, I discussed how to add Action Bar in Android applications. A simple demo application was also created with dummy Action Bar (which will not respond to clicks).

Prerequisite:

You must know how to add Action Bar in Android application before you proceed with this post. I recommend you to take a look at How to add Action Bar in Android Applications? post which will provide you insights on adding Action Bar.

In this post, I will teach you how to handle clicks on Action Bar action items. You need to create a simple Android application with Action Bar before you proceed further.

Read More

How to add Action Bar in Android Applications?

In this post, I will teach you how to add Action Bar in Android Applications. I will also discuss how to make the Action Bar work in lower SDK Android version (Backward compatibility).

Prerequisite:

You must know about Action Bar before you start creating it. I recommend you to take a look at What is Action Bar? post which will provide you basic information about Action Bar.

Adding the Action Bar in Android applcation involves three steps, they are:

  1. Create Android Application Project with Holo Theme
  2. Setting up the Action Bar for lower SDK versions
  3. Adding Action Buttons
Read More

What is Action Bar?

In this post, I will walk you through an important Android UI component – Action Bar. You will also find list of useful posts on Action Bar tutorial following this post. Before we start creating Action Bar, we should know What is Acton Bar and its uses.

Let us begin.

Read More

Pin It on Pinterest