Android SlidingDrawer 处理程序的图像
我想使用我自己的图像作为处理程序的图像。
如何将默认处理程序图像更改为其他图像? 谢谢, 埃亚尔。
I'd like to use my own image as handler's image.
How can i change the default handler image to onther image?
Thanks,
Eyal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用
ImageView
和src
指向您的图像作为句柄:您可能希望将该图像转换为 9patch,以便可以拉伸它以填充窗户。
You can use an
ImageView
withsrc
pointing to your image as the handle:You will probably want to convert that image to a 9patch so it can be stretched to fill the height of the window.
您应该使用滑块按钮的选择器,以便您可以为不同的状态(聚焦、非聚焦等...)提供不同的图像
you should use a selector for the slider button so that you can have different images for different states(focussed,non focussed etc...)
将背景图像添加到 SlidingDrawer 的按钮。
adding background image to the SlidingDrawer's button.