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 の外観は問題ではありません。デフォルトの Android Seekbar の外観である可能性がありますが、最大値と最小値を反転する必要があります。最大値は 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. }