Download Teach Yourself Android Application Development in 24

Transcript
Implementing the Scores Screen Layout
FIGURE 9.5
LinearLayout (Vertical Orientation)
RelativeLayout
ImageView
TextView (Title)
151
ImageView
TabHost
LinearLayout
TabWidget
FrameLayout
TableLayout (TableLayout_AllScores)
TableRow (Header)
TableRow
(One for each score)
TableLayout (TableLayout_FriendScores)
TableRow (Header)
TableRow
(One for each score)
Implementing the Scores Screen Layout
To implement the scores screen, you begin by adding new resources to the project.
Then you need to update the scores.xml layout resource to reflect the scores screen
design.
Adding New Project Resources
In addition to the new string, color, and dimension resources you use in the scores
screen layout, you must also add a new type of resource: an XML file resource file.
Layout design
for the Been
There, Done
That! scores
screen.