我尝试创建一个自定义搜索条是这样的:http://i.stack.imgur.com/8B0Q8.png如何创建自定义搜索栏并进行优化?
但我遇到问题该问题:http://i.stack.imgur.com/rcQG7.png
我用这个项目来动态改变文本:github.com/Amit-Gupta26/AndroidCustomSeekBar
我的布局代码是在这里:
<RelativeLayout
android:id="@+id/layout_seekbar"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@drawable/seekbar_bg" >
<SeekBar
android:id="@+id/seekbar"
style="@style/CustomSeekBar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="false"
android:layout_alignParentTop="false"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
我尝试了许多不同的方法。但我无法在所有屏幕上实现稳定。 这怎么办?