Updating the AndroidManifest File
You need to tell Android that your app works on the large and extra-large screens of tablets. Without it, your app runs in Compatibility mode as though it was on a smaller screen, and Android expands your app so that it fills the screen. Your app can look “jaggy” and ugly.
Edit the AndroidManifest.xml
file to add the following lines to the supports-screens
element inside the <manifest>
element before the <application>
element:
<supports-screens
android:largeScreens=”true”
android:normalScreens=”true”
android:smallScreens=”true”
android:xlargeScreens=”true” />
Get Android Application Development For Dummies, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.