-
-
Save codeforfun-jp/0ea768d08873fba149395c4e57875130 to your computer and use it in GitHub Desktop.
【Java】How to Use SeekBar 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
TextView textView = findViewById(R.id.textView); | |
SeekBar seekbar = findViewById(R.id.seekbar); | |
Button button = findViewById(R.id.button); | |
// 初期値を表示 | |
textView.setText(seekbar.getProgress() + ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment