【发布时间】:2016-08-18 16:39:36
【问题描述】:
我使用“@android:style/Theme.Holo”作为我游戏的主题:
但是为了能够设置一个snackbar小部件,我别无选择,只能使用“@style/Theme.AppCompat”,否则我会收到以下错误消息:
You need to use a Theme.AppCompat theme (or descendant) with the design library
问题在于“@style/Theme.AppCompat”在视觉上完全不同:
我可以做些什么来保持与“@android:style/Theme.Holo”相同的视觉效果,但同时能够使用小吃栏小部件?
编辑 使用 Yoann Hercouet 的解决方案,结果如下:
缺少什么?
【问题讨论】:
标签: android themes android-holo-everywhere snackbar