Transparent Activity
在AndroidManifest.xml中相应的activity标签处添加如下内容即可得到透明Activity:android:theme="@android:style/Theme.Translucent"示例如下:<?xmlversion="1.0"encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="cn.anarticle.app"><applicationandroid:allowBackup="true"android:icon="@drawable/ic_launcher"android:label="@string/app_name"android:theme="@style/AppTheme"><activityandroid:name="cn.anarticle.app.MainActivity"android:label="@string/app_name"android:theme="@android:style/Theme.Translucent"><intent-filter><actionandroid:name="android.intent.action.MAIN"/><categoryandroid:name="android.intent.category.LAUNCHER"/></intent-filter></activity></application></manifest>
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。