0
我想改變我的動作條的風格(改變顏色和文字字體)等建立了我的表現和風格XML如下:變化而變形按鈕
清單:(應用程序)
android:theme="@style/ArbuckleAppTheme"
樣式表:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="ArbuckleAppTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/ActionBarStyle</item>
</style>
<style name="ActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">@color/handler_noorder_startcolor</item>
<item name="android:textColor">@color/handle_noorder_textcolor</item>
</style>
</resources>
的事情是我的按鈕中的一個(滑動抽屜內)變得更大。我嘗試更改佈局值等,但現在可用。
這裏是周圍的按鈕的xml:
<Button
android:id="@+id/bCancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:text="Cancel"
android:background="@drawable/cancel_singleitem_background"
android:textSize="12dp"
android:padding="5dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"/>
有我的應用程序的主要部分的相同鍵 - 其不改變形狀。 我想弄清楚爲什麼這個按鈕的形狀被完全搞砸了。如果需要,很高興添加更多代碼 - 我認爲我會先從立即的代碼開始。
我剛纔注意到,當我在XML中輸入自己的樣式時,autocomplete不能與android:actionBarStyle一起使用。 – Laurent