Multi-screen support on Android devices?

friend

I am very new to Android, I developed a sample web application and placed this .apk build file in different versions of Android and on different devices, here I get a problem in my design in the layout, for example, listview does not display correctly, the lower part does not display well, and alignment is not so good.

+4
source share
4 answers

I recently ran into a problem while creating my first game. Trying to fix the problem with different screen sizes, I also realized that you also need to worry about pixel density. I'm not too sure that everything that you draw on the screen, but you can change these sizes so that they are the same with the screen on any device. All you may need to do is add the following code to the manifest part of the manifest:

<supports-screens android:anyDensity="false"/> 

This took care of my problem with different devices, I hope this works for you too!

0
source

Without a specific question, the best way to answer you points to a guide for Android: Multi-screen support .

+2
source

You can use them in the manifest:

 <supports-screens android:resizeable=["true"| "false"] android:smallScreens=["true" | "false"] android:normalScreens=["true" | "false"] android:largeScreens=["true" | "false"] android:xlargeScreens=["true" | "false"] android:anyDensity=["true" | "false"] android:requiresSmallestWidthDp="integer" android:compatibleWidthLimitDp="integer" android:largestWidthLimitDp="integer"/> 
+2
source

welcome to android, just like me for android too.

You can make your application look the same on different devices. here is a good recommendation passed through it, it will help a lot http://developer.android.com/guide/practices/design/seamlessness.html

If u uses images, use 9patch images.

Thanks Rakesh

+1
source

All Articles