version:beta
fix: update:优化seekbar
This commit is contained in:
@@ -66,8 +66,8 @@ public class ControlActivity extends AppCompatActivity {
|
||||
@BindView(R.id.tv_bt_ssid)
|
||||
TextView tv_bt_ssid;
|
||||
|
||||
@BindView(R.id.tv_font_size)
|
||||
TextView tv_font_size;
|
||||
// @BindView(R.id.tv_font_size)
|
||||
// TextView tv_font_size;
|
||||
@BindView(R.id.seekBar)
|
||||
RulerSeekBar seekBar;
|
||||
@BindView(R.id.seekbar_brightness)
|
||||
@@ -622,7 +622,7 @@ public class ControlActivity extends AppCompatActivity {
|
||||
} else {
|
||||
font_size = mEntries.get(index);
|
||||
}
|
||||
tv_font_size.setText(font_size);
|
||||
// tv_font_size.setText(font_size);
|
||||
seekBar.setProgress(index);
|
||||
seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
|
||||
@Override
|
||||
@@ -745,7 +745,6 @@ public class ControlActivity extends AppCompatActivity {
|
||||
int volume = (int) (((double) i / (double) maxVolume) * 100f);
|
||||
tv_sound.setText(volume + "%");
|
||||
mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, i, 0);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user