에서 작동하지 않습니다. 그래서 내 문제는 레이아웃 마진이 droid 2.3이있는 장치에서 프로젝트를 시작할 때 작동하지 않는다는 것입니다. 하지만 4.0.3 이상에서는 작동합니다. 나는 내가 실수 한 곳을 이해하지 못한다. 나는 다른 OS (진저 브레드와 ICS)를 가진 2 개의 동일한 장치 (Huawei 명예)를 가지고 있는데 왜 내 레이아웃 마진이 생강 빵 장치에서 작동하지 않는지 모르겠다. 그래서 여기에 스크린 샷은 다음과 같습니다레이아웃 마진이 안드로이드 2.3.3
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>
나는 이유를 알지 못한다. 그러나 그것의 wotks! – whizzzkey
위대한 ..이 작품 –
덕분에 그 매우 도움이 ... – RAHULRSANNIDHI