我嘗試創建一個自定義搜索條是這樣的: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" />
我嘗試了許多不同的方法。但我無法在所有屏幕上實現穩定。 這怎麼辦?