1
說一個佈局我想讓裏面一個又一個不同的背景顏色中的一種佈局,但一旦我添加背景顏色到內部佈局(frameLayout6在這種情況下),外佈局的背景變得透明...背景失去顏色,如果裏面有
任何想法可能是錯誤的?
謝謝!
<FrameLayout
android:id="@+id/frameLayout5"
android:layout_width="160px"
android:layout_height="160px" android:background="#FFFFFF" android:layout_marginLeft="20px">
<FrameLayout
android:id="@+id/frameLayout6"
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_margin="5px">
</FrameLayout>
</FrameLayout>
但它有餘量,即使我添加填充物,但它仍然是不可行的。 – 2012-04-18 20:09:09
對於保證金的情況,您必須查看framelayout5的背景。在填充的情況下,你必須看到framelayout6 http://stackoverflow.com/questions/4619899/difference-between-a-views-padding-and-margin – FUBUs 2012-04-18 20:10:15
的只是背景見上圖。 :) – 2012-04-18 20:13:07