Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4717] Android: Implement "ok" and "okid" in Titanium.UI.AlertDialog

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-05T13:54:09.000+0000
Affected Version/sRelease 1.7.1
Fix Version/sSprint 2011-32, Release 1.8.0
ComponentsAndroid
Labelsparity
ReporterMarshall Culpepper
AssigneeBill Dawson
Created2011-07-19T09:49:07.000+0000
Updated2011-11-05T13:54:09.000+0000

Description

iOS implements the "ok" property to allow setting the OK button's label. "okid" is also exposed to allow the property to be pulled from locale strings

Comments

  1. Bill Dawson 2011-08-08

    See test app: http://dl.dropbox.com/u/3756445/timob4717.zip The test app allows you to play with the message, ok, messageid and okid both before and after the dialog object is created.
  2. Eric Merriman 2011-08-17

    Hello Bill, any instructions for expected results on your test app? Seems comprehensive.
  3. Bill Dawson 2011-08-18

    Better testing instructions. The other was pretty vague :). Start with the "Play with 'message' and 'ok'". This lets you play with setting the alert dialog's "message" and "ok" properties. At that window, you can click any of those "Set ..." options, then when you click the "Show Dialog" button make sure the dialog's message and the text on the "OK" button (which is the only button) match the last options that you clicked on. Then go back and click the "Play with 'messageid' and 'okid'. This lets you mess around with setting the dialog's "messageid" and "okid" properties. These "*id" properties are used for local strings (English, German, whatever.) Specifically, the id values are defined in the file i18n/de/strings.xml (for German) and i18n/en/strings.xml (for English). So if you click "set okid prop to 'ok1'" and then "set messagid prop to 'message1'", then click "Show Dialog", you should see a dialog that has "english message1" as the dialog's message and "english ok1" as the text on the button, because those are the values that are assigned in i18n/en/strings.xml. (I'm assuming you have English set as your language on your phone. You can also change your phone's settings to German and test it if you want.)
  4. Natalie Huynh 2011-08-25

    Tested with 1.8.0.v20110819142548 Motorola Xoom 3.2 Nexus One 2.2.2 Setting messageid and okid and then press show dialog does not display an alert
  5. Natalie Huynh 2011-08-29

    Tested with 1.8.0.v20110819142548 Motorola Xoom 3.2 Nexus One 2.2.2 Need to run as standalone, bug was because of QTS
  6. Don Thorp 2011-11-05

    Standardizing summary and labels.

JSON Source