-
-
Notifications
You must be signed in to change notification settings - Fork 9
ToastClickListener
Marc Auberer edited this page Sep 12, 2020
·
4 revisions
Displays a Toast when the associated preference item was clicked.
TextPref {
title = "Toast"
summary = "Tap to show toast"
onClick = ToastClickListener(this@MainActivity, "Toast message")
}
or
TextPref {
title = "Toast"
summary = "Tap to show toast"
onClick = ToastClickListener(this@MainActivity, "Toast message", Toast.LENGTH_LONG)
}
© Marc Auberer 2020-2023