Showing posts with label actionbar. Show all posts
Showing posts with label actionbar. Show all posts

Monday, May 14, 2012

Android: getSupportActionBar() always returns null in ActionBarSherlock library


I'm trying to use the ActionBarSherlock library to provide backwards compatible ActionBar support with tabs in my Android app, so I downloaded the latest build, built the demo, and ran it.

Tuesday, May 8, 2012

Sunday, April 8, 2012

Sunday, January 15, 2012

Overriding android:ellipsize on ActionBar subtitle


My activity makes use of the ActionBar.setSubtitle function to display the currently displayed file system location's full path. This means that the substring towards the end of the subtitle is more relevant than the beginning, so I thought I would override the ActionBar style to ellipsize text at the start, rather than the end, like so: