Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28427

Android: Add "borderStyle" and "hintText" properties to Ti.UI.Picker

    Details

    • Story Points:
      7

      Description

      Summary:
      On Android, if we display the picker as a read-only text field, then we should also add properties borderStyle and hintText that work similarly to Ti.UI.TextField.

      Drop-Down Picker Support:
      When a Ti.UI.Picker} is set up as PICKER_TYPE_PLAIN (the default) and its useSpinner property is set {{true, then the picker is shown as a drop-down field. Titanium currently shows this as a borderless view using the Java Spinner class as shown here...
      https://developer.android.com/guide/topics/ui/controls/spinner

      It should be changed to use a material TextInputLayout and MaterialAutoCompleteTextView so that it will look like the below. This follows Google's material guidelines and Google's own apps.

      Compact Date/Time Picker Support:
      When we add support for DATE_PICKER_STYLE_COMPACT via TIMOB-28426, then the picker will appear as a read-only text field that shows a selection dialog when tapped on. The border style should be configurable to match the border style used by Ti.UI.TextField views.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
                Reviewer:
                Gary Mathews
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration