Android启动页面有白色过渡解决方案
2015-11-25 12:34
441 查看
总结一下2个启动页面有白色过渡解决方案:
1. 首先在项目res/values目录下创建styles.xml文件,并添加内容:
其次,为启动页Activity添加刚才的Theme,在AndroidManifest.xml中启动页Activity注册代码中多写一行:
2. 直接删除android:theme="@style/AppTheme"
<application
android:name="com.jchdcp.JchdcpApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
或者是将AppTheme设置如下
<style name="AppBaseTheme" parent="android:Theme.Light"></style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
</style>
1. 首先在项目res/values目录下创建styles.xml文件,并添加内容:
<style name="Theme.BackgroundTranslucent" parent="@android:Theme.Translucent"> <item name="android:windowBackground">@null</item> </style>
其次,为启动页Activity添加刚才的Theme,在AndroidManifest.xml中启动页Activity注册代码中多写一行:
android:theme="@style/Theme.BackgroundTranslucent"
2. 直接删除android:theme="@style/AppTheme"
<application
android:name="com.jchdcp.JchdcpApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
或者是将AppTheme设置如下
<style name="AppBaseTheme" parent="android:Theme.Light"></style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
</style>
相关文章推荐
- <4>Android HAL层 基础及调用
- Android学习笔记(二):layout_weight的解读
- Android各种包的功能预览
- android
- Android TextView与html的结合使用 一个控件显示多种文字
- Android监听键盘显示和隐藏
- Android基于ViewPager Fragment实现选项卡
- 【转载】Android端百度地图API使用详解
- Android Studio新手经验
- Android 使用viewpager实现无限循环(定时+手动)
- 【Android】Fragment的生命周期详解
- Android应用插件式开发解决方法
- Android中常见的热门标签的流式布局的实现——云标签
- Android:Fresco体验(一):Android Studio导入Fresco
- 【Android】边框旁的文字实现模糊效果
- A2DP Sink, AVRCP Controller and HFP Client in Android L
- 优化Android Studio/Gradle构建
- Android工程项目解析
- 关于Android程序入口的猜想
- Android studio 上获取应用签名文件(keystore文件)的MD5值