Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 1 | page.title=Confirming & Acknowledging |
Joe Fernandez | 33baa5a | 2013-11-14 11:41:19 -0800 | [diff] [blame] | 2 | page.tags=dialog,toast,notification |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 3 | @jd:body |
| 4 | |
| 5 | <p>In some situations, when a user invokes an action in your app, it's a good idea to <em>confirm</em> or <em>acknowledge</em> that action through text.</p> |
| 6 | |
| 7 | <div class="layout-content-row"> |
| 8 | <div class="layout-content-col span-6"> |
| 9 | <img src="{@docRoot}design/media/confirm_ack_confirming.png"> |
| 10 | <p><strong>Confirming</strong> is asking the user to verify that they truly want to proceed with an action they just invoked. In some cases, the confirmation is presented along with a warning or critical information related to the action that they need to consider.</p> |
| 11 | </div> |
| 12 | <div class="layout-content-col span-6"> |
| 13 | <img src="{@docRoot}design/media/confirm_ack_acknowledge.png"> |
| 14 | <p><strong>Acknowledging</strong> is displaying text to let the user know that the action they just invoked has been completed. This removes uncertainty about implicit operations that the system is taking. In some cases, the acknowledgment is presented along with an option to undo the action.</p> |
| 15 | </div> |
| 16 | </div> |
| 17 | |
| 18 | <p>Communicating to users in these ways can help alleviate uncertainty about things that have happened or will happen. Confirming or acknowledging can also prevent users from making mistakes they might regret.</p> |
| 19 | |
| 20 | <h2>When to Confirm or Acknowledge User Actions</h2> |
| 21 | <p>Not all actions warrant a confirmation or an acknowledgment. Use this flowchart to guide your design decisions.</p> |
| 22 | <img src="{@docRoot}design/media/confirm_ack_flowchart.png"> |
| 23 | |
| 24 | <h2>Confirming</h2> |
| 25 | <div class="layout-content-row"> |
| 26 | <div class="layout-content-col span-6"> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 27 | <h4>Example: Google Play Books</h4> |
Peter Ng | 0212363 | 2012-08-06 11:44:48 -0700 | [diff] [blame] | 28 | <img src="{@docRoot}design/media/confirm_ack_ex_books.png"> |
| 29 | <p>In this example, the user has requested to delete a book from their Google Play library. An <a href="{@docRoot}design/building-blocks/dialogs.html#alerts">alert</a> appears to confirm this action because it's important to understand that the book will no longer be available from any device.</p> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 30 | <p>When crafting a confirmation dialog, make the title meaningful by echoing the requested action.</p> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 31 | </div> |
| 32 | <div class="layout-content-col span-7"> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 33 | <h4>Example: Android Beam</h4> |
Peter Ng | 0212363 | 2012-08-06 11:44:48 -0700 | [diff] [blame] | 34 | <img src="{@docRoot}design/media/confirm_ack_ex_beam.png"> |
| 35 | <p>Confirmations don't necessarily have to be presented in an alert with two buttons. After initiating Android Beam, the user is prompted to touch the content to be shared (in this example, it's a photo). If they decide not to proceed, they simply move their phone away.</p> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 36 | </div> |
| 37 | </div> |
| 38 | |
| 39 | <h2>Acknowledging</h2> |
| 40 | <div class="layout-content-row"> |
| 41 | <div class="layout-content-col span-6"> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 42 | <h4>Example: Abandoned Gmail draft saved</h4> |
Peter Ng | 0212363 | 2012-08-06 11:44:48 -0700 | [diff] [blame] | 43 | <img src="{@docRoot}design/media/confirm_ack_ex_draftsave.png"> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 44 | <p>In this example, if the user navigates back or up from the Gmail compose screen, something possibly unexpected happens: the current draft is automatically saved. An acknowledgment in the form of a toast makes that apparent. It fades after a few seconds.</p> |
| 45 | <p>Undo isn't appropriate here because saving was initiated by the app, not the user. And it's quick and easy to resume composing the message by navigating to the list of drafts.</p> |
| 46 | |
| 47 | </div> |
| 48 | <div class="layout-content-col span-6"> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 49 | <h4>Example: Gmail conversation deleted</h4> |
Peter Ng | 0212363 | 2012-08-06 11:44:48 -0700 | [diff] [blame] | 50 | <img src="{@docRoot}design/media/confirm_ack_draft_deleted.png"> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 51 | <p>After the user deletes a conversation from the list in Gmail, an acknowledgment appears with an undo option. The acknowledgment remains until the user takes an unrelated action, such as scrolling the list.</p> |
| 52 | </div> |
| 53 | </div> |
| 54 | |
| 55 | <h2>No Confirmation or Acknowledgment</h2> |
| 56 | <div class="layout-content-row"> |
| 57 | <div class="layout-content-col span-6"> |
Peter Ng | 0212363 | 2012-08-06 11:44:48 -0700 | [diff] [blame] | 58 | <h4>Example: +1'ing</h4> |
| 59 | <img style="padding: 33px 0 30px;" src="{@docRoot}design/media/confirm_ack_ex_plus1.png"> |
| 60 | <p><strong>Confirmation is unnecessary</strong>. If the user +1'd by accident, it's not a big deal. They can just touch the button again to undo the action.</p> |
| 61 | <p><strong>Acknowledgment is unnecessary</strong>. The user will see the +1 button bounce and turn red. That's a very clear signal.</p> |
| 62 | </div> |
| 63 | <div class="layout-content-col span-7"> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 64 | <h4>Example: Removing an app from the Home Screen</h4> |
Peter Ng | 0212363 | 2012-08-06 11:44:48 -0700 | [diff] [blame] | 65 | <img src="{@docRoot}design/media/confirm_ack_ex_removeapp.png"> |
Peter Ng | 252d23d | 2012-08-07 20:19:10 -0700 | [diff] [blame] | 66 | <p><strong>Confirmation is unnecessary</strong>. This is a deliberate action: the user must drag and drop an item onto a relatively large and isolated target. Therefore, accidents are highly unlikely. But if the user regrets the decision, it only takes a few seconds to bring it back again.</p> |
| 67 | <p><strong>Acknowledgment is unnecessary</strong>. The user will know the app is gone from the Home Screen because they made it disappear by dragging it away.</p> |
| 68 | |
| 69 | </div> |
Joe Fernandez | 33baa5a | 2013-11-14 11:41:19 -0800 | [diff] [blame] | 70 | </div> |