Android - Snackbar vs Toast - usage and difference

前端 未结 9 1968
温柔的废话
温柔的废话 2020-12-08 03:28

We have been using just Toasts in our application so far and as we are planning to adopt some new features from Support Design Library I am wondering what\'s the recommended

9条回答
  •  暖寄归人
    2020-12-08 04:12

    Android also provides a capsule-shaped toast, primarily used for system messaging.

    I think with "system messaging" they also refer to the fact that a toast will be shown for a specific time and can not be dismissed even if the user navigates across activities and even if the app is moved to background.

    I consider it an advantage of snackbar to limit its scope to an activity and to be able to dismiss it.

提交回复
热议问题