Android Programming The Big Nerd Ranch Guide, 3rd Edition

(Brent) #1

Chapter 9  Creating User Interfaces with Layouts and Widgets


188

Making room


You need to make some room. Your two TextViews are taking up the entire area, which will make it
hard to wire up anything else. Time to shrink those two widgets.


Select crime_title in the component tree and look at the properties view on the right (Figure 9.10).


Figure 9.10  Title TextView’s properties


The vertical and horizontal sizes of your TextView are governed by the height setting and width
setting, respectively. These can be set to one of three view size settings (Figure 9.11), each of which
corresponds to a value for layout_width or layout_height.


Figure 9.11  Three view size settings

Free download pdf