Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
        .setAction("Action", null).show()

      Kotlin language logo

      Kotlin recipes

      The code creates a snackbar with the title "Replace with your own action" and an action button. When the user clicks the action button, the snackbar will show the user the code for replacing the snackbar with their own action.


        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.