如题,不知道为啥 id 为 item_layout1 的 LinearLayout 的 match_parent 在手机上失效了,可是在 Android Studio 的预览上却没问题呀 ? 求大家帮帮忙 ? !!!
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="115dp"
android:paddingTop="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/item_layout1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="110dp"
android:paddingRight="8dp"
android:background="@drawable/touch_bg">
... ...
</LinearLayout>
<FrameLayout
android:layout_width="100dp"
android:layout_height="110dp"
android:layout_marginRight="4dp"
android:layout_marginBottom="4dp"
android:background="#f33213">
... ...
</FrameLayout>
</LinearLayout>
知道了: