SeekBars影响彼此图形,毛刺?

时间:2018-12-08 07:38:49

标签: android mobile seekbar

嘿,我有两个SeekBar,它们在前进时会改变拇指,当一个移动时,另一个会移动,拇指将保持不变,但是会前进或完全故障。数据没有错误,所有数据都可以正常工作,图形毛刺是问题所在,它可能在屏幕上移动,没有明显的逻辑原因,这里的任何帮助都是两个SeekBars的代码

 if (pepBool) {
                if (progress == 0) {
                    pepSeek.setThumb(zerotimes);
                    pepView.performClick();
                    multiplier[pepInt]=0;
                    state[pepInt]=0;
                    multiplier2[pepInt]=0;

                }
                if (progress == 1) {
                    pepSeek.setThumb(onetimes);
                    multiplier[pepInt]=1;
                    multiplier2[pepInt]=1;
                }
                if (progress == 2) {
                    pepSeek.setThumb(twotimes);
                    multiplier[pepInt]=2001;
                    multiplier2[pepInt]=2;
                }

和下一个:

beefSeek.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
        @Override
        public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {

            if (beefBool) {
                if (progress == 0) {
                    beefSeek.setThumb(zerotimes);
                    beefCheck.performClick();
                    state[beefInt]=0;
                    multiplier[beefInt]=0;
                    multiplier2[beefInt]=0;
                }
                if (progress == 1) {
                    beefSeek.setThumb(onetimes);
                    multiplier[beefInt]=1003;
                    multiplier2[beefInt]=1;
                }
                if (progress == 2) {
                    beefSeek.setThumb(twotimes);
                    multiplier[beefInt]=2003;
                    multiplier2[beefInt]=2;
                }

这是滑动图像的示例

The item to the lefts seekbar is affected

0 个答案:

没有答案