私の問題は、droid 2.3 を搭載したデバイスでプロジェクトを起動すると、レイアウト マージンが機能しないことです。しかし、4.0.3 以降では動作します。どこで間違いを犯したのかわかりません。異なるOS(GingerBreadとICS)を備えた2つの同じデバイス(Huaweiの名誉)があり、レイアウトマージンが私のgingerBreadデバイスで機能しない理由が本当にわかりません。スクリーンショットは次のとおりです。
XML
<?xml version="1.0" encoding="utf-8"?>
<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/flipper"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:background="@color/app_background" >
<include
android:layout_width="match_parent"
android:layout_height="match_parent"
layout="@layout/layout_pleasewait" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:orientation="vertical" >
<View
android:id="@+id/divider1"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_marginTop="@dimen/divider_margin"
android:background="@color/layout_divider_bold" />
<ExpandableListView
android:id="@+id/firmsList"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:cacheColorHint="#00000000"
android:divider="@color/layout_divider"
android:dividerHeight="1dp"
android:groupIndicator="@null" >
</ExpandableListView>
</LinearLayout>
<include
android:layout_width="match_parent"
android:layout_height="match_parent"
layout="@layout/layout_no_internet" />
<include
android:layout_width="match_parent"
android:layout_height="match_parent"
layout="@layout/layout_no_searchresult" />
</ViewFlipper>