SimplicityApks / ReminderDatePicker

A Google Keep-like Date and Time Picker for reminders
Apache License 2.0
74 stars 26 forks source link

Hide time picker from the widget #18

Closed shashi02 closed 9 years ago

shashi02 commented 9 years ago

I included the widget like this:

com.simplicityapks.reminderdatepicker.lib.ReminderDatePicker
android:id="@+id/dp_pick_goal_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:flags="mode_google|hide_time" />

I only want the date field and not the time picker. Is there any way to achieve this? Currently the hide_time flag shows a clock image tapping which shows the usual time options.

SimplicityApks commented 9 years ago

Sure, the library is designed with exactly that in mind ;). Simply replace the ReminderDatePicker in your layout file with a com.simplicityapks.reminderdatepicker.lib.DateSpinner and leave everything else as it is (remove the hide_time flag as well). You can still pass flags to the DateSpinner and it should work perfectly. If you run into any issues or have questions, feel free to ask them here as this advanced approach hasn't been tested too much...

shashi02 commented 9 years ago

Great :) Working fine. Thanks a lot for such quick response!!

SimplicityApks commented 9 years ago

You're welcome, glad you got it working!