Is there any way to put a button on Snack bar to do some actions like canceling , undo or closing the snack bar with clicking on a designed icon? i'm usin Kotlin and Xml in android studio
tried using actions but i want an icon to be clickable
Is there any way to put a button on Snack bar to do some actions like canceling , undo or closing the snack bar with clicking on a designed icon? i'm usin Kotlin and Xml in android studio
tried using actions but i want an icon to be clickable
Copyright © 2021 Jogjafile Inc.
Adding an action
To add an action, use the
setActionmethod on the object returned from make. Snackbars are automatically dismissed when the action is clicked.To show a snackbar with a message and an action: