-
-
Save codeforfun-jp/881aaed4971b9d2421ef81a16474cf5e to your computer and use it in GitHub Desktop.
【Kotlin】How to Use SeekBar 3
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
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
/* 省略 */ | |
// 「リセット」を押したら50にする | |
button.setOnClickListener { | |
seekbar.progress = 50 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment