January 2014
Intermediate to advanced
736 pages
70h 43m
English
When the user touches a contact in the MainActivity, the app displays the DetailsFragment (Fig. 8.10). This Fragment’s layout (fragment_details.xml) consists of a ScrollView containing a vertical GridLayout with two columns of TextViews. A ScrollView is a ViewGroup that can contain other Views (like a layout) and that lets users scroll through content too large to display on the screen. We use a ScrollView here to ensure that the user can scroll through a contact’s details if a device does not have enough vertical space to show all the TextViews in Fig. 8.10. Follow the steps in Section 5.4.8 to create the fragment_details.xml file, but use a ScrollView as the Root Element. After creating ...
Read now
Unlock full access