0

I am new to Android and I am creating an app in which you have a form which you can save similar to how it is done in the contacts app.

My question is: how should I display "Cancel" and "Done" buttons? Should I even display a "Cancel" button in the first place, since the hardware back button (or the action bar's up-navigation) should suffice?

The screenshot below shows how it is done in the Contacts app, but I am wondering if this is "the way to go", because this way the buttons take a lot of screen space for no reason. On iPhone you have a small "Done" button on the top right (inside the navigation bar / action bar). I tend to do the same for this Android app, but I don't want to do anything that users don't expect.

Cancel and Done buttons in the Android Contacts app

So can someone please help me out here? :)

Tom van Zummeren
  • 9,130
  • 12
  • 52
  • 63

1 Answers1

0

For this particular case, put the "Done" in a contextual action bar.

Back does not work as "Cancel" - it should also persist whatever edits made so far.

(Buttons like "Done" and "Cancel" are valid in an alert dialog but that is not the case here.)

laalto
  • 150,114
  • 66
  • 286
  • 303
  • Back persists all edits? This one is new to me. Can you point me towards some apps that do this? And if that's the case, why have a "Done" button in the first place? – Tom van Zummeren Dec 29 '13 at 13:07
  • For example, the built-in Contacts app in this KitKat device in front of me. – laalto Dec 29 '13 at 13:09