No Back/Cancel button on Oregon?

Former Member
Former Member
I modified the picker sample code so that the picker doesn't completely exit when I make a selection. I now use the back button to exit.

However, I cannot see a back button to the Oregon in the simulator for the onCancel() function to work. Does one have to manually draw a back button on screen, and if so, how do I detect presses? Thanks.
  • When you are in the picker you will not see the soft back/menu buttons on touch devices. You cancel out of the picker by tapping to the left of the currently selected option. If the pattern you provide to the picker base has multiple factories, you may have to press back multiple times.

    Honestly, it seems like a bad idea to be changing the picker to behave like you are suggesting. Users will expect pickers to behave in a manner that is consistent across applications and devices. If your picker has some unusual behavior where they have to cancel to make a selection, that is going to cause confusion. Is there some better way to do what you need? If you need to display the selected values, perhaps you can display them in the title (as is done with the StringPicker in the sample), or maybe you could display the picked value in a confirmation dialog after dismissing the picker.

    Travis
  • Former Member
    Former Member
    Hi. Thanks Travis. What I meant was, when you make a selection in one picker of many (e.g. where you have say 2 word pickers and 2 number pickers), by default it doesn't return you to the picker selector, it exits out to the main UI of the app. I'd prefer, to return to the picker selector instead, and press cancel to exit the picker selector. I hope that makes sense.
  • Former Member
    Former Member
    Update. I clicked next to the picker and it exited. Thanks again Travis!