如何去除黑色背景之间在slide_left动画开始新的活动? [英] how to remove Black background between start new activity during slide_left animation?
本文介绍了如何去除黑色背景之间在slide_left动画开始新的活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我调用由动画新的活动背景使黑色,所以我想删除黑色回地面所以我怎么能做到这一点? ?对于动画我使用
getWindow()setBackgroundDrawableResource(R.drawable.mainbg_)。
overridePendingTransition(R.anim.push_up_in,0);
解决方案
设置活动的主题清单文件作为半透明
安卓主题=@安卓风格/ Theme.Translucent
让你的code会是这样
<活动机器人:名称=。AdActivity
机器人:主题=@安卓风格/ Theme.Translucent/>
when i call new activity by animation the background make black so i want to remove black back ground so how can i achieve this? ? For animation i use
getWindow().setBackgroundDrawableResource(R.drawable.mainbg_);
overridePendingTransition (R.anim.push_up_in,0);
解决方案
set the theme of that activity as transluscent in manifest file
android:theme="@android:style/Theme.Translucent"
so your code will be something like this
<activity android:name=".AdActivity"
android:theme="@android:style/Theme.Translucent" />
这篇关于如何去除黑色背景之间在slide_left动画开始新的活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文