android - 强制主题为@android :drawables supporting low level APIs

标签 android android-drawable

有没有办法强制使用系统资源的按钮,例如 @android:drawable/ic_menu_send 是我选择的背景?

默认是这样的:

ic_menu_send light

我想要的是:
enter image description here

最佳答案

我建议使用 Google 提供的“Action Bar Icon Pack”中的所需图标 引用 http://developer.android.com/design/style/iconography.html#action-bar

您会在此处找到 holo_lightholo_dark 主题的图标 6_social_send_now.png

不直接从 SDK 引用系统图标的一个原因在 "The Busy Coder's Guide to Android" 中给出。作者:Mark L. Murphy:“但是,存在一个风险:欢迎设备制造商用他们自己的艺术品替换这些可绘制对象。”这些可能不适合您应用中的其他(自制)图标。

关于android - 强制主题为@android :drawables supporting low level APIs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15805875/

相关文章:

java - 在自维护的单例类中使用this关键字或者总是使用instance

android-如何获得这样的边框

android - 不同库的同名资源冲突

android - 从矢量图中获取位图

android - 撤消在android中自定义 ImageView 上的绘制

android - 如何模仿 Material-design 凸起的按钮样式,即使是前 Lollipop (减去特殊效果)?

android - 自动在 Play Store 或 App Store 中搜索应用程序

java - 我无法使用 transaction.replace

android - C++中类似于Android的ArrayMap的容器

android - 以编程方式在 TextView 中设置左可绘制对象