Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem in Supporting Multiple Screens in Android?
    primarykey
    data
    text
    <p>Hai Friends, I have developed an application which en-composes list views and posted that .apk file in my htc device, the design and alignment everything works fine,but the problem When i am testing in various devices such as Morotolo Droid,Nexus Devices the alignment of Listviews goes wrong, so i planned to use the Layout folder as layout-hdpi,layout-ldpi, and layout-mdpi, for that i changed my manifest file as </p> <pre><code>&lt;supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true" /&gt; </code></pre> <p>Is it right putting android:anyDensity="true",also i used dp instead of dip. I went through this url, but still am not able to get a clear idea in this <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow">http://developer.android.com/guide/practices/screens_support.html</a>. so friends pls tell me(help me) to get clear idea in this and tell what mistakes i have doing. This is my main page xml code frnds.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background_retinav2"&gt; &lt;LinearLayout android:layout_gravity="center" android:foregroundGravity="bottom" android:background="@color/white" android:id="@+id/rl_1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;ImageView android:paddingTop="3dp" android:id="@+id/starthideimage" android:layout_width="30dp" android:layout_height="35dp" android:src="@drawable/newback" /&gt; &lt;HorizontalScrollView android:paddingTop="8dp" android:id="@+id/gv" android:layout_width="wrap_content" android:layout_marginTop="0dp" android:layout_height="wrap_content" android:background="#ffffff" android:scrollbars="none" android:layout_weight="1" android:foregroundGravity="bottom"&gt; &lt;LinearLayout android:id="@+id/san_tag" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;/LinearLayout&gt; &lt;/HorizontalScrollView&gt; &lt;ImageView android:paddingTop="3dp" android:id="@+id/Endhideimage" android:layout_width="30dp" android:layout_height="35dp" android:src="@drawable/newforward" /&gt; &lt;/LinearLayout&gt; &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;ListView android:id="@+id/content_movies" android:cacheColorHint="@color/cachecolor" android:layout_weight="1" android:scrollbars="vertical" android:layout_width="fill_parent" android:layout_height="420dp"/&gt; &lt;/FrameLayout&gt; &lt;/LinearLayout&gt; &lt;TabWidget android:id="@android:id/tabs" android:gravity="bottom" android:layout_gravity="bottom" android:listSelector="@color/gray" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt; &lt;/TabHost&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload