gpt4 book ai didi

Android Seekbar 拇指位置

转载 作者:行者123 更新时间:2023-11-29 14:55:23 25 4
gpt4 key购买 nike

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

最佳答案

是的。你可以试试这个:

在 xml 中:

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

此外,您可以通过编程方式设置它:

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

关于Android Seekbar 拇指位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8090534/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com