我想使用我自己的图像作为处理程序的图像。
如何将默认处理程序图像更改为其他图像? 谢谢, 埃亚尔。
最佳答案
您可以使用 ImageView
和 src
指向您的图像作为句柄:
<SlidingDrawer
android:id="@+id/drawer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:handle="@+id/handle"
android:content="@+id/content">
<ImageView
android:id="@id/handle"
android:src="@drawable/my_image"
android:layout_width="wrap_content"
android:layout_height="fill_parent" />
....
</SlidingDrawer>
您可能希望将该图像转换为 9patch,以便可以拉伸(stretch)它以填充窗口的高度。
关于Android SlidingDrawer 处理程序的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8979734/