Time for action - building a track item

To get working on the new user interface, you'll need a few images. For this next section, you'll need an image for the play buttons. The play image should be a simple "play" arrow, the button we place it in will provide a background and border. The lines in the list structure will be placed into a TableLayout in order to align all of the sub-structures.

  1. Create a new layout resource file in the res/layouts directory of the project, and name the new file track.xml.
  2. Declare the root element of the new file as a TableRow element consuming all of the available width and only the required height:
    <TableRow xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content"> ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.