0
Appearance look like this when I run in Emulator外觀正常工作在模擬器,但不是在真實設備
But When I run in real device it look like this.
看到該鏈接的圖像以供參考。
什麼似乎是問題的傢伙?
請問我要粘貼什麼樣的代碼,以便檢查。
謝謝!
編輯 -
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/test_image"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:contentDescription="@string/menu_display_image"
android:src="@drawable/iinterior"></ImageView>
<View
android:layout_width="fill_parent"
android:layout_height="60dp"
android:layout_gravity="top"
android:background="#AA000000"></View>
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="top|right"
android:padding="10dp"
android:text="@string/text_goes_here"
android:textColor="@android:color/white"
android:textSize="30dp" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/fragment_button_center"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_weight="50"
android:background="@drawable/butt_purple"
android:padding="5dp"
android:shadowColor="@android:color/white"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="10"
android:text="@string/add_to_my_menu"
android:textSize="18dp" />
<Button
android:id="@+id/fragment_button_left"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_weight="50"
android:background="@drawable/butt_other"
android:padding="5dp"
android:shadowColor="@android:color/white"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="10"
android:text="View Order State"
android:textSize="18dp" />
</LinearLayout>
<TextView
android:id="@+id/description"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="10dp"
android:text="@string/description"
android:textSize="20dp" />
</LinearLayout>
在屏幕仿真器和手機尺寸相同嗎?模擬器看起來像是一臺平板電腦。 – ahdgfd
^this並且也分享您的佈局 – Shaishav
@ahdgfd它看起來像平板電腦它在風景模式。 –