Android的搜索栏自定义拇指
问题描述:
我想创建一个搜索栏这样的形象:
I want to create a seekbar like in this image:
现在的问题是,如何把进度线以上的拇指?
The question is, how to place thumb above the progress line?
这行
android:thumb="@drawable/thumb"
放置拇指的线的中心。有什么建议?
places the thumb in the center of the line. Any suggestions?
答
您可以假设整个酒吧和上面的拇指为一个搜索栏
你所要做的仅仅是包括进步和背景图像栏上方的空白区域,包括拇指图像中的拇指下方的空白区域。
you can assume the whole bar and the above thumb as one seekbar what you have to do is just include the blank area above the bar in progress and background image and include the blank area below the thumb in the image for thumb.