Screenshot of first image Screenshot of other phone我有一個的LinearLayout,RelativeLayout的,的LinearLayout和it.This一個ImageView的基本上是我的應用程序的登陸頁面,使用DP的inspite我的輸出是不一樣在所有設備上。有兩個不同手機的屏幕截圖。在此先感謝Android的佈局跨設備並不一致,而不是使用DP
<LinearLayout
android:id="@+id/lb_LinearLayout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/lb_Relative_HomeScreen"
android:layout_width="match_parent"
android:layout_height="450dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="350dp">
`` <ImageView
android:id="@+id/lb_Background_Image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY" />
</LinearLayout>
<TextView
android:id="@+id/lb_Welcome"
android:text="@string/welcome"
android:gravity="start"
style="@style/Heading2.yellow"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_gravity="start|center_vertical"
android:layout_above="@+id/lb_Descrption"
android:layout_marginLeft="20dp"
/>
...
</RelativeLayout>
</LinearLayout>
屏幕截圖在哪裏? –
抱歉,忘了補充圖片...現在加入.. – user3275601
我認爲你應該使用'Scroll View'來讓它適用於所有設備。 –