Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to support extra large screens in Android?

According to this doc page, Android 2.3 supports extra large screen sizes (xlarge), and you can declare that your apps supports this size by adding android:xlargeScreens="true" in the <supports-screens> tag in the Manifest file.

But, since my app is targeted for a minimum SDK version of Android 2.1, compilation fails complaining about unknown attribute.

I don't want to use the new SDK because I won't get warnings if I accidentally use 2.3 specific features.

Is there a way out?

like image 777
HRJ Avatar asked Jan 10 '11 19:01

HRJ


People also ask

Can you resize the screen on Android?

Most modern Android devices will give you the option to adjust screen resolution in the Display options or Settings. To get there, look for the gear-like icon on the applications menu. It should be labeled as Settings. You can also swipe down and click on the Settings app from the drop-down menu.

How do I get the screen size on my Android?

1. Display display = getWindowManager(). getDefaultDisplay(); Point size = new Point(); display. getSize(size); int width = size.


1 Answers

You'll have to use the 2.3 SDK because that attribute simply is not known in lower SDKs. However, what you can do is set your target SDK to be 2.1.

like image 159
C0deAttack Avatar answered Sep 30 '22 04:09

C0deAttack