-3

タブウィジェットの背景色を変更するには? これらのスタイル コードはどこにありますか?

PS タブに書かれたテキストを中央揃えにする方法は?

4

1 に答える 1

0

ここに画像の説明を入力

この画像を任意の描画可能なフォルダーに保存し、それを footer.png と呼びます

これをタブウィジェットの背景画像として設定します

<TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:alpha="0.75"
            android:background="@drawable/footer" 
            android:focusable="false"
            android:focusableInTouchMode="false"
            android:orientation="horizontal" />
于 2013-04-03T13:35:23.890 に答える