当前位置:操作系统 > 安卓/Android >>

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
 

补充:移动开发 , Android ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,