Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrolling in ActionBar title-android

How can I create an Actionbar title with scrolling where clicking on a particular title item moves to the corresponding page?

You can see this functionality in Google Drive app in android mobile phones:

enter image description here

like image 206
Nasrudeen Avatar asked Mar 26 '26 18:03

Nasrudeen


2 Answers

You could create a custom actionBar with a textView for the title that has:

android:scrollHorizontally="true"

That should get the desired effect.

like image 146
Raj Prabhu Avatar answered Mar 28 '26 10:03

Raj Prabhu


I have created a library called Veni Divi that provides you with a custom action bar title that behaves like the one from Google Drive app.

In case someone needs this functionality, the source is available on GitHub.
You may see a demo app on Google Play.

like image 35
MaciejGórski Avatar answered Mar 28 '26 09:03

MaciejGórski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!