Archive for the ‘ActionBar’ Category

ActionBarCompat – Part 5

Friday, November 8th, 2013

Previously in this series we have worked through porting the existing ActionBar tutorial code to work with ActionBarCompat and therefore be compatible with Android API 7 and later. In this concluding article of the series we’ll compare the example app on both API 7 and API 18 devices to see the differences in UI that our users will experience.

ActionBarCompat – Part 4

Friday, November 1st, 2013

In the previous article we began converting our code to work with ActionBarCompat, but there are still some further changes required to get things working. In this article we’ll complete the code migration.

ActionBarCompat – Part 3

Friday, October 25th, 2013

In the previous article we converted our resources for the code from the previous ActionBar series to use ActionBarCompat. In this article we’ll have a look at the Java code and begin looking at the changes that we need to make it backwardly compatible to API level 7 using ActionBarCompat.

ActionBarCompat – Part 2

Friday, September 6th, 2013

In the previous article we began converting the existing project from the Styling Android series on ActionBar to use the ActionBarCompat library. Once we had got a Gradle build working, we found that we had a lot of resource errors once we switched the compiler to compile against API 7. In this article we’ll look at resolving those errors.

ActionBarCompat – Part 1

Friday, August 30th, 2013

Back in August 2012, the first article in a series of 12 was posted to Styling Android which provided an in-depth look at the ActionBar. It had been rumoured for a while before I/O 2013 that Google were working on a compatibility library for ActionBar, and this was duly announced at I/O. In this series of articles we’ll look at back-porting the code from the previous ActionBar series to use the new compatibility library.

Navigation Drawer – Part 3

Friday, May 31st, 2013

In the previous article we began hooking our navigation drawer up to the ActionBar by connecting up the Up/Home button. In this concluding article we’ll change the ActionBar title, and hide any content-specific menus when the drawer is open.

Navigation Drawer – Part 2

Friday, May 24th, 2013

In the previous article we got a basic navigation drawer working. In this article of this series, we’ll begin hooking it up to the ActionBar.

Styling the ActionBar – Part 6

Friday, October 26th, 2012

In the previous article we got the styling of our ActionBar almost complete – all that’s left to do is apply a style to the ActionMode. In this article we’ll do precisely that.

Styling the ActionBar – Part 5

Friday, October 19th, 2012

In the previous article we saw some of the difficulties that we can face when applying styles to the ActionBar. In this article we’ll look at the final control on the main ActionBar: The search control.

Styling the ActionBar – Part 4

Friday, October 12th, 2012

In the previous article in this series we applied a style to the navigation Spinner and its associated drop down ListView, but found that this style did not get applied to the Spinner that we added manually using the actionViewClass attribute of the MenuItem definition in our menu XML. In this article we’ll find out why.