9. Visual Polish #

Created Tuesday 05 January 2021

While making the app functional, we should mostly ignore visual elements. But after the app works as accepted, we must add visual polish to the app before releasing the app.

Red Lines #

The designer gives us the screens with red lines drawn on them. This is like a very simple engineering drawing. All dimensions are exact. Here’s one redline document. We have a different background color for each section. For now let us set the background to orange, we’ll change it later.

Layout Bounds #

It is helpful if we could look at the bounds while the app is running, and not just in the XML viewer. Android supports this.

The screen will look something like this:

Doing it - mentioning only new stuff #

In list_item.xml

  1. Set background to a light
  2. Set background of the LinearLayout containing text to a dark color.
  3. Divide the text height equally.
  4. Use gravity to bottom and top for the TextView on the top and bottom.