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.
- Create a new layout resource file in the
res/layoutsdirectory of the project, and name the new file
- Declare the root element of the new file as a
TableRowelement 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"> ...