Android Calendar View for Date Picker

后端 未结 8 951
粉色の甜心
粉色の甜心 2020-12-02 09:24

I\'m writing my first app, and I have a question about DatePicker.

My app requires the user to input a date. The most user-friendly way would be to popu

相关标签:
8条回答
  • 2020-12-02 09:50

    Is this type of functionality built into any android widget or view, or would I have to design my own custom > component to do this?

    There is no component for that in the Android SDK, sorry. The widget you illustrate is too small for a touchscreen. You can implement something larger (see the Calendar app), but you are largely on your own for that.

    0 讨论(0)
  • 2020-12-02 09:54

    Since the API 11 there natively: CalendarView

    enter image description here

    This View is in HoloEverywhere since API 7.

    0 讨论(0)
  • 2020-12-02 09:58

    I have recently written exactly this as a modular app. Here is some sample code, documentation with screenshots, and .apk download.

    0 讨论(0)
  • 2020-12-02 10:00

    you can use this lib for date selection

    https://github.com/square/android-times-square/

    0 讨论(0)
  • 2020-12-02 10:02

    what i found so far:

    • http://code.google.com/p/android-calendar-view
    • http://code.google.com/p/openintents/wiki/CalendarPickerAPI
    0 讨论(0)
  • 2020-12-02 10:02

    Found a good implemetation in http://caughtinthemobileweb.wordpress.com/2011/06/20/how-to-implement-calendarview-in-android/


    Also Since API level 11 (Android 3.0) there has been the native implementation of the CalendarView http://developer.android.com/reference/android/widget/CalendarView.html

    0 讨论(0)
提交回复
热议问题