Archive for the ‘Themes’ Category

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.
(more…)

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.
(more…)

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.
(more…)

Styling the ActionBar – Part 3

Friday, October 5th, 2012

Previously in this series we have applied a few simple styles to the ActionBar. In this article we’ll have a look at styling the overflow menu and the Navigation DropDown.
(more…)

Styling the ActionBar – Part 2

Friday, September 28th, 2012

In the previous article we used Jeff Gilfelt’s Android ActionBar Style Generator to create some assets and we set up our base Theme. In this article we’ll look at building up our styles to get the ActionBar looking how we would like it.
(more…)

Styling the ActionBar – Part 1

Friday, September 21st, 2012

Recently on Styling Android we’ve been looking at the ActionBar, but this would not be complete without having a look at how we can customise the look and feel of our ActionBar. Up to know the stuff that we’ve looked at on ActionBar has been relatively straightforward, however getting the styling right can be a little tricky. The main reason for this is simply that there is a sparsity of documentation on this issue and it often requires studying the Android source to determine how to style a particular part of the ActionBar.
(more…)

Alert Dialog – Part 2

Friday, June 24th, 2011

In the last article we began styling an AlertDialog, but ran in to problems because Android does not apply text styles to AlertDialogs. In this article we’ll explore how we can overcome this problem.

(more…)

Alert Dialog – Part 1

Friday, June 17th, 2011

Recently there was a comment on the article Vector Drawables – part 3 asking if is possible to style an AlertDialog, rather than on an Activity, as is covered in that article. The simple answer is yes. However, it is not without it’s problems as we’ll see later.

(more…)

Custom Controls – Part 3

Friday, June 10th, 2011

In the previous article we continued the creation of a custom control and extended it to enable us to configure it via the XML layout rather than only programatically. In this article we’ll cover extending the control further so that we can properly style and theme it.

(more…)

Custom Controls – Part 2

Thursday, June 2nd, 2011

In the previous article we created a custom control which applies highlights to our text based upon a regular expression. We got this working so that we could control it programatically. In this article we’ll look at how to control things from the XML layout.

(more…)