Android WeekDayPickerDialog - android

i would like a PickerDialog for picking weekdays a little like the TimePickerDialog in the SDK do anyone know of an ready made implementation

Have you taken a look at Date Picker from the Hello Views tutorial?

Related

Materialdatepicker with a spinner style

Using the default DatePicker class from android it was possible to make the datepicker in form of spinner like this:
But with MaterialDesignSpinner it seems that this feature by default is not implemented, as the only form looks like this:
or default textview input.
Did materialdesign remove the spinner feature, or is there a way to implementing it using the MaterialDatePicker?
I could't find a solution for the MaterialDatePicker, but I want to share my solution anyways, it works for my purpose it might for yours too:
DatePickerDialog dpd = new DatePickerDialog(this,
AlertDialog.THEME_HOLO_LIGHT,null, 1960, 1, 1);
dpd.getDatePicker().setCalendarViewShown(false);
dpd.show();
This will display the light version of the date picker dialog.
You can also use:
AlertDialog.THEME_HOLO_DARK
For a dark dialog theme or:
android.R.style.Theme_Holo_Light_Dialog
For a slightly different dialog itself.
Keep in mind to set dpd.getDatePicker().setCalendarViewShown(false); otherwise the regular calendar part of the picker is shown in addition.
If you look for more variations see this answer.

Is there an option to change Date Picker form?

I implemented date picker in my project from here: https://developer.android.com/guide/topics/ui/controls/pickers
The problem is, this date picker is in the format of regular calendar, and it takes a long time to choose faraway dates. In my app this kind of action is going to be performed all the time.
So, my question is, is there a possibility to change this calendar-like form to something faster? For example like in the picture below.
Picture of date picker i would like to make
check that library: https://github.com/florent37/SingleDateAndTimePicker
I've used it some time ago and it did almost exactly what you're looking for ;)
If it doesn't fit your needs, you can look for more 'iOS style date pickers' for Android, for example in this SO post:
ios like date/time picker for android platform
Edit:
It seems that this picker is Holo Light style and is achievable with this piece of code:
DatePickerDialog datepickerdialog = new DatePickerDialog(getActivity(),
AlertDialog.THEME_HOLO_LIGHT,this,year,month,day);
But you need to check that on your own because they might be deprecated or not working with other themes.
Did you check this for Material Design?
Here is its documentation and code.
The DatePicker widget in Android has an attribute called android:datePickerMode that has a calendar option and a spinner option.
You can use the spinner option to get the appearance of the DatePicker you are after.

How can I customize a date and time chooser

I wanna make a custom fragment to choose date ana time like the one on justPark app. Can someone help me with a turo or link to do it.
Thank you
You can use Android's Calendar API to create your very own implementation with any user interface you like. But making a fully proportionate calendar type view date picker is a lengthy task and would take some time.Since the android's default date picker is flexible enough to adapt your app's theme you may not find custom calendar implementations commonly but sure you can checkout 3rd party libraries.
Here's one for example caldroid
its a custom calendar implementation in a fragment.
Hope this helps.

Change the theme of a datepicker

I want to have a datepicker that looks something like this
But i get something like this
Anyone that got a good example of a theme to use ?
For this you have to develop custom date picker. May be it would help you.
https://github.com/flavienlaurent/datetimepicker

Android timepicker - similar to this in the Alarms app

In the android alarms app I have a dialog datepicker that has a keypad (image attached):
is that a standard timepicker? because I couldn't find how to do it. I found the TimePickerDialog - but that is no a keypad.
Is there a property that I'm missing or a library that does that kind of timepicker dialog?
Thanks
see this answer i have already given for this type of pickers :)
Implementing New styled date&time-pickers from android

Categories

Resources