Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在android中反向自定义一个Seekbar。最小值在右侧,最大值在左侧。这是图像。
SeekBar 外观无关紧要,它可能是默认的 android Seekbar 外观,但 Max 和 Min 值应该倒置。最大值为 10,最小值为 0。如果有人知道请帮助我。
你必须填充一些代码。
seekbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser){ MAX_VALUE=MAX VALUE-progress; //YOU CAN USED THIS VALUE AND SET INTO SEEKBAR. }