I want to set the title for the contextual action bar (like in the image below).
I have tried the following:
getActionBar().setTitle("Title for cab");
but title is not showing up.
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.
I manage to set the title by calling setTitle method of ActionMode.
mActionMode.setTitle("Title for cab");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With