January 2014
Intermediate to advanced
736 pages
70h 43m
English
When populating a ListView with data, you must specify the format that’s applied to each list item. Each list item in this app displays the String tag name for one saved search. To specify each list item’s formatting, you’ll create a new layout that contains only a TextView with the appropriate formatting. Perform the following steps:
1. In the Package Explorer window, expand the project’s res folder, then right click the layout folder and select New > Other... to display the New dialog.
2. In the Android node, select Android XML Layout File and click Next > to display the dialog in Fig. 4.16, then configure the file as shown. The new layout’s file name is list_item.xml and the root element in the ...
Read now
Unlock full access