安卓背景可以改成黑色吗?
在 Activity 之间切换时是否可以更改背景颜色? 我的意思是当其中一项活动消失且在第二项活动出现之前出现的黑色。谢谢。
Is it possible to change the colour of background while switching between activities?
I mean the black colour what apear while one of activities disappear and before second appear. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需转到 activity_home.xml
在代码的起始行添加此背景参数以将屏幕设置为黑色
Just you need to head over to the activity_home.xml
At the starting lines of code add this background parameter to set the screen black
您可以按如下方式更改您正在使用的主题:
编辑
如文档中所述:
然后调整您喜欢的主题:
这是主题的链接 http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme
you may change the theme that you are using as follows:
Edit
as mentioned in the documentation:
and then tweak the theme that you like:
here is the link to the topic http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme