设置Activity的属性,两种方式:
1:在manifest文件中指定的activity增加属性
android:theme = "@android:style/Theme.CustomDialog"
2:在程序中增加语句setTheme(R.style.Theme_CustomDialog);
在onCreate()事件中增加setTheme(),必须在setContentView()之前,否则指定的Style不能生效。
http://developer.android.com/guide/topics/resources/available-resources.html#stylesandthemes