Time for action - improving the restaurant list

The list of restaurants we put together earlier is nice, but it's a menu. In order to further emphasize the menu, the text should stand out more. In order to style a ListView with a standard ListAdapter implementation, you will need to specify the ListAdapter object in your Java code.

  1. Create a new file in the res/layout directory named menu_item.xml.
  2. Create the root XML element as a TextView:
    <?xml version="1.0" encoding="UTF-8"?> <TextView />
  3. Import the Android resource XML namespace:
  4. Center the text in the TextView widget by setting its gravity:
  5. We assign the textSize of the TextView to our standard ...

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.