Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make the title of the ActionBar clickable

Is it possible to make the title of the ActionBar clickable?

I guess there is some android.R.id.XXXX to identify the title in onOptionsItemSelected, but I can't find any.

like image 725
mgv Avatar asked Jul 19 '11 16:07

mgv


People also ask

How do you set an activity title?

To change the title of an activity (to show a more custom title for a certain activity than the application title), you can set the new title either through calling setTitle("foo") on the activity or by setting android:label="@string/price_after_rebate" in your activity style.


1 Answers

There is android.R.id.home for the icon but I am not aware of any for the title text.

like image 129
Manfred Moser Avatar answered Oct 22 '22 08:10

Manfred Moser