[英]how to use image as a theme
我需要在應用程序中的大多數活動中使用垂直圖像作為主題...請幫助我如何做。
基本思想是在Res文件中定義和應用“活動”的自定義樣式。 教程在這里。
如果您使用的XML顯示有字段背景
@ drawable / custom_dialog_background
要么
android:XML錨點中的背景
setBackgroundResource(int)在您的代碼中
http://developer.android.com/reference/android/view/View.html#attr_android:background
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.