如何使用图像作为主题

时间:2010-11-15 09:27:46

标签: android

我需要使用特定图像作为我应用程序中大部分活动的主题... 请帮我怎么做..

2 个答案:

答案 0 :(得分:1)

基本思想是在Res文件中定义和应用活动的自定义样式。 Tutorial here.

答案 1 :(得分:0)

如果使用XML显示有字段背景

    @绘制/ custom_dialog_background

android:XML锚点中的背景

代码中的

setBackgroundResource(int)

http://developer.android.com/reference/android/view/View.html#attr_android:background