草庐IT

mSegment

全部标签

java - 具有多种颜色的自定义搜索栏

我正在尝试使用多色在Android中创建自定义搜索栏。我试过下面的代码customseekbar.javaintproBarWidth=getWidth();intproBarHeight=getHeight();intthumboffset=getThumbOffset();intlastproX=0;intproItemWidth,proItemRight;for(inti=0;i查看我在MainMenuActivity中使用了这个方法。它给了我类似下面的结果。我提到了这个链接https://azzits.wordpress.com/2013/11/17/customseekbar