[android]代码库
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/*
* 套用透明背景的主题 setTheme(R.style.Theme_Transparent );
*
* xml: <!-- 变更应用程序的主题,使之具有透明transparent背景 --> <style
* name="Theme.Transparent"> <item name="android:windowBackground">
*
* @drawable/transparent_background </item> <item
* name="android:windowNoTitle">true</item> <item
* name="android:colorForeground">@drawable/blue</item> <item
* name="android:colorBackground">@drawable/pink</item> </style>
*/
/*
* 套用布景主题1 setTheme(R.style. Theme_Translucent);
*/
/* 套用布景主题2 */
setTheme(R.style.Theme_Translucent2);
setContentView(R.layout.main);
}