January 2014
Intermediate to advanced
736 pages
70h 43m
English
In this app, we display the Menu only when the app is running on a phone-sized device or when it’s running on a tablet in portrait orientation (Section 5.5.4). To determine this, we’ll use Android’s WindowManager (package android.view) to obtain a Display object that contains the display’s current width and height. This changes with the device’s orientation—in portrait orientation, the device’s width is less than its height.
Read now
Unlock full access