Skip to content

Instantly share code, notes, and snippets.

@pandulapeter
Last active October 8, 2019 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandulapeter/24871f64d232dc8ef2098ee07f42fc5d to your computer and use it in GitHub Desktop.
Save pandulapeter/24871f64d232dc8ef2098ee07f42fc5d to your computer and use it in GitHub Desktop.
Beagle example - SimpleList trick
Trick.SimpleList(
id = TEST_ACCOUNTS_MODULE_ID,
title = "Test accounts",
items = testAccounts,
onItemSelected = { account ->
findViewById<EditText>(R.id.username_input).setText(account.name)
findViewById<EditText>(R.id.password_input).setText(account.password)
Beagle.dismiss(this@LoginActivity)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment