【发布时间】:2012-12-24 00:53:45
【问题描述】:
我正在处理一个项目,并通过执行以下操作将应用程序的背景设置为白色:
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="android:actionBarSize">140dp</item>
<item name="android:background">#ffffff</item>
</style>
这很有效,但问题是 toast 消息现在以白色背景显示。奇怪的是,我在项目中集成了一个启动画面,当用户登录时,toast消息正常显示。
这真的很奇怪,希望能在这个问题上提供任何帮助。
编辑:添加了屏幕截图显示问题。屏幕截图是在最初的 toast(具有不需要的效果)淡出而新的 toast(具有默认值)淡入时截取的。
【问题讨论】: