December 2013
Beginner
416 pages
12h 45m
English
In 10-inch tablet mode, the buttons currently are too large even in portrait mode. You can see this by opening the layout file, clicking on Graphical Layout, and changing the device to be a 10.1-inch tablet.
All 10-inch tablets have the xlarge screen size. In addition, 7-inch tablets and large phones can have the larger screen size. Let’s optimize the On Your Bike app layout for tablets.
1. Create a new res/layout-xlarge directory. You could just copy the existing land layout into this directory, but there’s a better way. Create a new activity_timer.xml file.
2. In res/layout-land, rename the activity_timer.xml file to activity_timer_wide.xml. Move the file (via drag and drop) back to the res/layout directory. ...
Read now
Unlock full access