0

need to pop up a confirmation "toast" and wait for the clicking on "Done" to dismiss it.

saw post Customview like Toast, but that has the android toast's auto dismiss behavior.

The android toast's position is what needed, but how to make it stay and taking the user clicking.

something like enter image description here

But has a "Done" clickable text in the right.

like [icon | lable | Done].

lannyf
  • 9,865
  • 12
  • 70
  • 152
  • 3
    Have you ever heard of Snackbar? – hardartcore Feb 05 '21 at 15:28
  • need to float the view above the bottom but not touch the bottom edge, and not cover the whole width. like the toast's default position behavior – lannyf Feb 05 '21 at 16:59
  • @lannyf That's exactly what `Snackbar` looks like: https://material.io/components/snackbars – Sam Chen Feb 05 '21 at 18:58
  • @Same Chen Thanks! But having problem to use snackbar here where it is deep down in a notification handler class only have access to the Context. It does not have a 'view' for making the snackBar. – lannyf Feb 05 '21 at 20:22

0 Answers0