2011-08-25 152 views

回答

2

好吧,當我試圖讓自己行動起來吧我用了一個黑色的FrameLayout在操作欄的所有項目將被顯示。我在每個項目上設置layout_margin屬性爲1dp,這樣看起來就像兩邊都有黑色的分隔符 - 如果你希望它更大,你可以增加邊距。

<FrameLayout 
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:background="#000000"> 
    <LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:orientation="horizontal"> 
     <ImageButton ....... /> 
     <ImageButton ...... android:layout_marginLeft="1dp"/> <!-- this will be shown as a separator--> 
    </LinearLayout> 
</FrameLayout> 
相關問題