Skip to content

Instantly share code, notes, and snippets.

@manuelernesto
Created June 1, 2020 13:15
Show Gist options
  • Save manuelernesto/a370d638da63eb60028d0b3898a0e508 to your computer and use it in GitHub Desktop.
Save manuelernesto/a370d638da63eb60028d0b3898a0e508 to your computer and use it in GitHub Desktop.
private fun chooseThemeDialog() {
val builder = AlertDialog.Builder(this)
builder.setTitle(getString(R.string.choose_theme_text))
val styles = arrayOf("Light","Dark","System default")
val checkedItem = 0
builder.setSingleChoiceItems(styles, checkedItem) { dialog, which ->
}
val dialog = builder.create()
dialog.show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment