这是我的应用程序的主要活动屏幕,但我不提供相同的视图在不同的屏幕尺寸和密度。请帮助我。我可以如何解决这个问题。我想用这个XML与Android API 10和更高的布局。我尝试了大多数技术解决这个问题,但我没有。Android 4.0不同的屏幕尺寸和密度
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/firstLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:animateLayoutChanges="true"
android:background="@drawable/home"
>
<RelativeLayout
android:id="@+id/topheader"
android:layout_width="match_parent"
android:layout_height="142dip"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
</RelativeLayout>
<RelativeLayout
android:id="@+id/RelativeLayout1"
android:layout_width="wrap_content"
android:layout_height="320dip"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" >
<include
android:id="@+id/include2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/include3"
android:layout_alignParentLeft="true"
android:layout_marginBottom="20dip"
layout="@layout/anaekran_seconddock" />
<include
android:id="@+id/include1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/include2"
android:layout_alignParentLeft="true"
android:layout_marginBottom="20dip"
layout="@layout/anaekran_firstdock" />
<include
android:id="@+id/include3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="30dip"
layout="@layout/anaekran_thirddock" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/relativeLayout2"
android:layout_width="match_parent"
android:layout_height="142dip"
android:layout_alignParentLeft="true"
android:layout_below="@+id/topheader"
android:background="@color/gray" >
<Gallery
android:id="@+id/gallery1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
您的意思是说您的布局在包含api 10或更高版本的设备中不可见? – GrIsHu 2013-02-19 12:54:41