Skip to content

Instantly share code, notes, and snippets.

Created July 12, 2022 06:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
【Java】How to Use SeekBar 4
public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
/* 省略 */
// SeekBarイベント
seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
textView.setText(i + "");
public void onStartTrackingTouch(SeekBar seekBar) {
public void onStopTrackingTouch(SeekBar seekBar) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment