Skip to content

DatePicker and TimePicker property bindings do not work in Android 5.x #234

Closed

Description

@hamorphis

DatePicker and TimePicker property bindings do not work in Android 5.x

Activity

  1. self-assigned this
    on May 28, 2015
  2. added this to the milestone on May 28, 2015
  3. vakrilov commented on Jun 2, 2015

    @vakrilov
    Contributor

    DatePicker and TimePicker can configured to show in "spinner" mode by default trough theme. Add the following XML in the App_Resources\Android\values-v21/styles.xml file:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
      <style name="AppTheme" parent="android:Theme.Material.Light">
        <item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
        <item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
      </style>
    
      <style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker">
        <item name="android:datePickerMode">spinner</item>
      </style>
    
      <style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
        <item name="android:timePickerMode">spinner</item>
      </style>
    </resources>
    

    This should be added in the default template used when creating app with the NativeScript CLI.

  4. added
    ready for testTSC needs to test this and confirm against live production apps and automated test suites
    and removed on Jun 3, 2015
  5. vakrilov commented on Jun 3, 2015

    @vakrilov
    Contributor

    Theme changed in default project template for android with this commit.

  6. added and removed
    ready for testTSC needs to test this and confirm against live production apps and automated test suites
    on Jun 4, 2015
  7. lock commented on Aug 31, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  8. locked and limited conversation to collaborators on Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions