简体   繁体   English

Android Seekbar拇指位置

[英]Android Seekbar Thumb position

我想将搜索栏的拇指放在android的最右端,默认情况下在最左端。可以吗?

yes.you can try this: 是的。您可以尝试以下操作:

in xml: 在xml中:

<SeekBar android:id="@+id/seek"
        android:layout_width="fill_parent"
        android:layout_height="90dip"
        android:max="80"
        android:progress="80"      
        /> 

Also,programatically you can set it: 另外,您可以通过编程设置它:

SeekBar sb=(SeekBar)findViewById(R.id.seek);
sb.setProgress(80); //you must set your maximum progress here,which you specified in your xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM