答えはあなたが期待していたとおりにテーマを使用することです。 新しいテーマを定義します:
ボタンのスタイルは次のように定義されて
<style name="MyTheme" parent="@android:style/Theme.Holo">
<item name="android:buttonStyle">@style/button</item>
</style>
:
<style name="button" parent="@android:style/Widget.Button">
<item name="android:background">@drawable/button_background_selector</item>
<item name="android:textColor">@drawable/button_text_selector</item>
</style>
あなたはこのように行うことができますボタンについて
http://developer.android.com/guide/topics/ui/themes.html
:良いドキュメントはAndroidデベロッパーサイトに掲載されています
button_background_selectorは次のように定義されています。
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/button_pressed" android:state_pressed="true"></item>
<item android:drawable="@drawable/button_disabled" android:state_enabled="false"></item>
<item android:drawable="@drawable/button_default"></item>
</selector>
これらのドロワーブルはすべてあなたのイメージになります。button_pressedはドロウアブルフォルダ内のpngにすることができます。
<application
android:theme="@style/MyTheme" >
</application>
ホープ、このことができます:)
: また、このようなマニフェストでアプリケーションにテーマを適用する必要があります