Skip to content

Instantly share code, notes, and snippets.

@noxi515
Created February 17, 2014 15:57
Show Gist options
  • Save noxi515/9053201 to your computer and use it in GitHub Desktop.
Save noxi515/9053201 to your computer and use it in GitHub Desktop.
ActionMenuの背景変更
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="false" android:state_pressed="false">
<shape android:shape="rectangle">
<solid android:color="@android:color/black" />
</shape>
</item>
<item android:state_pressed="true">
<shape android:shape="rectangle">
<solid android:color="@android:color/holo_blue_bright" />
</shape>
</item>
</selector>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.Holo.Light">
<item name="android:actionButtonStyle">@style/App.Widget.ActionButton</item>
</style>
<style name="App" />
<style name="App.Widget" />
<style name="App.Widget.ActionButton" parent="android:style/Widget.Holo.ActionButton">
<item name="android:background">@drawable/action_button_background</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment