我無法弄清楚爲什麼我的應用程序的頁腳顯示在手機上,而不是在平板電腦上顯示。在Android平板電腦上未顯示頁腳
這裏是頁腳佈局:
<RelativeLayout
android:id="@+id/footer"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_alignParentBottom="true">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:scaleType="fitXY"
android:src="@drawable/ic_devicescreenlogo"
/>
<TextView
android:id="@+id/version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:paddingBottom="2dp"
android:paddingStart="2dp"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/light_grey"/>
</RelativeLayout>
你知道什麼是錯的嗎?
謝謝
[編輯]
而我只是asumming你把你的代碼的RelativeLayout –
內部佈局預覽它顯示預期太多,但在平板電腦設備的Nexus 7的圖像不顯示。圖像本身有問題嗎?它需要一些更大的格式或什麼? –
好吧,你可能是對的,請分享你使用的圖像,或者更好的嘗試使用atlist三個不同的圖像,看看它是如何轉出來的... –