0
我只是想移動的標誌,從中心到左邊的動作條,我想這樣的,但沒有奏效移動動作條標誌向左
<item name="logo">imgname</item>
<item name="android:gravity">left</item>
這是我的實際代碼
<style name="MyActionBar"
parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/emgtxtbg</item>
<item name="logo">@drawable/emgtxt</item>
<item name="displayOptions">useLogo|showHome</item>
<!-- Support library compatibility -->
<item name="background">@drawable/emgtxtbg</item>
嘗試參考以下鏈接, http://stackoverflow.com/questions/14210454/how-to-set-two-custom-actionbar-button-in-left-and-right-in-android –