标签:tin name idm strong round anim color parent category
1. styles.xml
<style name="transcutestyle" parent="@android:style/Theme.DeviceDefault.Dialog"> <!-- 边框 --> <item name="android:windowFrame">@android:color/transparent</item> <!-- 是否浮现在activity之上 --> <item name="android:windowIsFloating">true</item> <!-- 半透明 --> <item name="android:windowIsTranslucent">true</item> <!-- 无标题 --> <item name="android:windowNoTitle">true</item> <!-- 背景透明 --> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:backgroundDimAmount">0.1</item> <item name="android:windowAnimationStyle">@null</item> </style>
2. AndroidManifest.xml
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/transcutestyle" > <activity android:name=".MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application>
标签:tin name idm strong round anim color parent category
原文地址:https://www.cnblogs.com/onelikeone/p/9304492.html