Android 手机图标的开源版本
每部手机上都有标准选项、主页、返回和搜索图标的开源版本吗?
Are there open source versions of the standard Options, Home, Back, and Search icons that appear on every phone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看此页面,它提供了一种浏览内置绘图的便捷方法,其中大部分您都可以使用只需在布局中引用它们即可。
例如,参见
ic_menu_home
项。您可能可以在这样的布局中使用它尽管,正如页面作者提到的,如果上述方法抛出错误,您有时必须从 SDK 资源文件夹中复制项目。
另请注意,虽然此方法不能保证与您看到的图标匹配,但它将与用户将看到的逻辑名称匹配。例如,我使用此技术将“首选项”图标添加到选项菜单中,并且模拟器的图标与此处显示的图标不同。当您想要一个“标准”图标时,这很好,但如果您确实想要一个精确的图像,您可以将其复制到应用的
res
文件夹中。Check out this page, it offers a convenient way to browse the built-in drawables, most of which you can use just by referencing them in your layout.
See for example, the item
ic_menu_home
. You can probably use it in a layout like soAlthough, as the author of the page mentions, you sometimes have to copy items from the SDK resources folder if the above method throws an error.
Note also that while this method isn't guaranteed to match the icon you see, it will match what the user will see for that logical name. For example, I used this technique to add the "Preferences" icon to an options menu, and the emulator had a different icon than what was shown there. When you want a "standard" icon, this is good, although if you really wanted an exact image you could copy it into your app's
res
folder.