Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set title for contextual action bar

Tags:

I want to set the title for the contextual action bar (like in the image below). enter image description here

I have tried the following:

getActionBar().setTitle("Title for cab"); 

but title is not showing up.

like image 952
Amit Jayant Avatar asked Aug 23 '12 07:08

Amit Jayant


People also ask

What is ActionBar?

The app bar, also known as the action bar, is one of the most important design elements in your app's activities, because it provides a visual structure and interactive elements that are familiar to users.


1 Answers

I manage to set the title by calling setTitle method of ActionMode.

mActionMode.setTitle("Title for cab"); 
like image 194
Amit Jayant Avatar answered Sep 22 '22 22:09

Amit Jayant