我想預測我在編程方面非常低調。 我剛開始。Android:帶圖像的全息按鈕
我想請求幫助,使這個按鈕圖像工作。我已經完成了研究here和論壇內,但我找不到類似的情況。
我試圖修改一個應用程序,並更改按鈕 我創建使用HTTP霍洛主題的按鈕:/ /android-holo-colors.com
該工具創建以下結構。 structure
爲了實現我修改,我把按鈕
<Button
android:id="@+id/buttonGameOverPlayAgain"
android:text="@string/popupGameOverButtonPlay"
style="??????" />
在這裏我不知道我是否需要參考的style.xml或styles_apptheme活動佈局XML的目標。通過工具創建的xml
以及在哪裏需要聲明按鈕?
也在styles_apptheme XML有兩種風格
<style name="ButtonAppTheme" parent="android:Widget.Button">
<item name="android:background">@drawable/apptheme_btn_default_holo_light</item>
<item name="android:minHeight">48dip</item>
<item name="android:minWidth">64dip</item>
<item name="android:textColor">#000000</item>
<style name="ImageButtonAppTheme" parent="android:Widget.ImageButton">
<item
name="android:background">@drawable/apptheme_btn_default_holo_light</item>
做我需要哪一個參考? 「ButtonAppTheme」或「ImageButtonAppTheme」
希望這是可以理解的,謝謝大家的耐心和支持。