Archive for July, 2011

Text Shadows

Friday, July 29th, 2011

Often tools like Photoshop are used to create graphic elements which are actually text with various effects applied to them, and an well used effect in such elements is the use of shadows. Android supports text shadows, and in this article we’ll explore a number of ways that we can use the built in shadows as it is much more efficient to use TextView than it is to include lots of bitmap elements for our text; it also makes designing for multiple screens much easier, as well, because the Android layout manager can scale TextView elements much easier than the bitmaps in ImageView objects.

Supporting Multiple Displays – Part 2

Friday, July 22nd, 2011

In Supporting Multiple Displays – Part 1 we began looking at a layout which would work across a variety of screen sizes, aspect ratios, and densities. We covered some general rules about how best to achieve this, but in this article we’re going to examine the layout XML that we have used in the example from Part 1.

Supporting Multiple Displays – Part 1

Friday, July 15th, 2011

I often see questions asking how to create Android layouts which will work across a wide range of devices with different screen sizes and densities. There is no one single answer to this, there are a number of techniques that you can use. In this article we’ll look at some of these techniques. We have covered some general layout techniques in the article on Intelligent Layouts, but in this article we’ll expand on these concepts further. (more…)

Layout Weights – Part 2

Friday, July 8th, 2011

In the previous article we looked at using layout_weight to give us some nice control over how we layout children within a parent layout. In this article we’ll cover some more aspects of layout_weights.

Layout Weights – Part 1

Friday, July 1st, 2011

There is an often overlooked feature of layouts which is extremely powerful and allows us to get some pretty fine-grained control of the humble LinearLayout: Layout weights. We have briefly touched on layout weights in the Intelligent Layouts article, but we’ll cover them in a little more depth here.