Android Activity桌面背景Style

————————–values/style

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <style name="KaZaMainStyle" parent="@android:style/Theme.Light.NoTitleBar.Fullscreen">
        <item name="android:windowBackground">@color/transparent</item>
        <item name="android:windowIsTranslucent">true</item>
    </style>

   </resources>

———————————Manifest.xml

  <activity
            android:name=".Suiping"
            android:theme="@style/KaZaMainStyle" >
        </activity>

 

 

——————————-.java

public class Suiping extends Activity {
 @Override
 protected void onCreate(
   Bundle savedInstanceState) {
  // TODO Auto-generated method stub
  super.onCreate(savedInstanceState);

 }

 作者:gongzibai
 

發佈留言