0
Someone can help: How to increase and decrease seekBarHomem progress through Button action?
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tv_QtdHomem = (TextView) findViewById(R.id.tv_QtdHomem);
bt_MenosHomem = (Button) findViewById(R.id.bt_MenosHomem);
bt_MaisHomem = (Button) findViewById(R.id.bt_MaisHomem);
seekBarHomem = (SeekBar) findViewById(R.id.seekBarHomem);
seekBarHomem.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
tv_QtdHomem.setText(""+i);
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
});
bt_MaisHomem.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
bt_MenosHomem.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
}
}
What methods of
SeekBar
? Can be the class documentation. Must have some method likeseekBar.setProgress(int)
– Jefferson Quesado