如何解决搜索栏栏拇指定心-问题 [英] how to fix seekbar-bar-thumb-centering-issues
本文介绍了如何解决搜索栏栏拇指定心-问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经设置的拇指图像,但我的经验看下面的小的搜索栏。如何设置拇指在搜索栏的正确位置。有附加的图像上看看
I have set thumb image of a seek bar but my thumb looks little below of seek bar. How to set thumb at proper position of a seekbar. Have a look on the attached image
<SeekBar android:id="@+id/PP_Player_SeekBar"
android:thumb="@drawable/music_player_playerhead"
android:paddingLeft="8dip"
android:paddingRight="8dip"
android:progressDrawable="@drawable/seekbar_drawable_xml_background"
android:layout_width="236dip"
android:layout_centerHorizontal="true"
android:layout_height="wrap_content"
android:layout_marginTop="47dip"></SeekBar>
谢谢 苏尼尔·库马尔Saoo
Thanks Sunil Kumar Saoo
推荐答案
设置和了minHeight一样了maxHeight为搜索栏的高度。例如:
Set minHeight and maxHeight same as the height of seekbar. eg
<SeekBar
android:id="@+id/PP_Player_SeekBar"
android:thumb="@drawable/music_player_playerhead"
android:paddingLeft="8dip"
android:paddingRight="8dip"
android:progressDrawable="@drawable/seekbar_drawable_xml_background"
android:layout_width="236dip"
android:layout_centerHorizontal="true"
android:layout_height="wrap_content"
android:layout_marginTop="47dip"
android:minHeight="11dip"
android:maxHeight="11dip" />
请参阅以下网址 <一href="http://qtcstation.com/2011/05/android-how-to-fix-seekbar-bar-thumb-centering-issues/">http://qtcstation.com/2011/05/android-how-to-fix-seekbar-bar-thumb-centering-issues/
这篇关于如何解决搜索栏栏拇指定心-问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文