2011-08-25 8 views

答えて

2

私はアクションバーのすべてのアイテムが表示される黒でframeLayoutを使用し、私自身のアクションバーを作成しようとしていました。 1dpの各項目にlayout_margin属性を設定して、両側に黒の区切り文字があるように見えるようにしました。それを大きくしたい場合は余白を増やすことができます。

<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> 
関連する問題