January 2014
Intermediate to advanced
736 pages
70h 43m
English
You’ll provide two layouts for MainActivity—one for phone-sized devices in the res/layout folder and one for tablet-sized devices in the res/layout-large folder. You’ll need to add the layout-large folder.
For the phone layout, open activity_main.xml in the res/layout folder. Set the FrameLayout’s Id to @id/fragmentContainer. This FrameLayout will be used on phones to display the app’s Fragments. Set the Padding Left, Padding Right, Padding Top and Padding Bottom properties for the FrameLayout as you did for other layouts in earlier chapters.
For the tablet layout, create a new activity_main.xml ...
Read now
Unlock full access