开发者

seekbar inside value

开发者 https://www.devze.com 2023-03-03 07:08 出处:网络
is it possible to get my currentvalue i开发者_JS百科nside that seekbar whenever am moving?how?Declare a textview or edittext and place it next to seekbar.

is it possible to get my currentvalue i开发者_JS百科nside that seekbar whenever am moving?how?


Declare a textview or edittext and place it next to seekbar. then on SeekBar.setOnSeekBarChangeListener's

public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2)

method,change the value of edittext here,

txt_SeekBarValue.setText(Integer.toString(arg1));
0

精彩评论

暂无评论...
验证码 换一张
取 消