android-datepicker Questions

3

Solved

I have an EditText when clicked it should open DatePickerDialog. But in some devices it is crashing randomly. In Crashlytics it is showing it is crashing in some devices with android version 8 and ...
Peculation asked 30/4, 2019 at 6:35

2

My question is pretty simple. How do I perform any selections on a DatePickerDialog in Jetpack compose's UI Tests?

5

Solved

I am new on Android Fragments and I want to know that how can I show or implement DatePicker in simple Fragmentand not a FragmentActivity. For example my class name is: public class FragmentAddC...
Meretricious asked 1/12, 2014 at 9:58

5

Solved

i have used range date picker from google material with this library implementation 'com.google.android.material:material:1.2.0-alpha02' this is my code MaterialDatePicker.Builder<Pair&l...

12

Solved

How to Disable future dates in Android date picker Java Code : mExpireDate.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // To show current date in the d...
Esotropia asked 7/1, 2014 at 11:54

8

Solved

I'm calling a MaterialDatePicker like this in Android: MaterialDatePicker.Builder<Pair<Long, Long>> builder = MaterialDatePicker.Builder.dateRangePicker(); CalendarConstraints.Builde...

3

Solved

I'm using a DatePicker and a TimePicker in a custom Dialog. The functionality works fine, but I have a problem when I change the default Locale of the app to match the Arabic language. The problem...

4

Solved

I'm using a datepicker and want to set the min date to today and the max date to today one year ahead. I do this like: datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 100...
Hebetude asked 11/4, 2014 at 6:48

8

Solved

I know there are quite a lot of question for this but none of the solutions are working for me, so this question. I want to restrict user to select date before today, but am not able to do so. pub...
Vorfeld asked 10/10, 2015 at 6:57

10

Solved

I want to change the default color of the date/time picker dialog in Android, so that it should match my app's theme. I searched for the solution on Google, but I couldn't find a solution. What I ...

5

Solved

How to add a constraint to MaterialDatePicker to force user to select a date between only 2 dates? val constraintBuilder = CalendarConstraints.Builder() val materialRangeBuilder = MaterialDatePic...

3

Solved

I'm having some trouble changing the text of the buttons of the dialog. I tried to use: setButton(int whichButton, CharSequence text, DialogInterface.OnClickListener listener) and setButton...
Sanguinary asked 2/6, 2011 at 17:35

5

I have 3 strings containing day, month and year values. For example: String mday = "02"; String mmonth="07"; String myear="2013"; I need to set the DatePicker in my activity to a month from the ...
Fawnia asked 3/8, 2013 at 0:38

2

Trying to store data into a string. This is my utilities. public class CommonDatePicker { public static void datePicker(final TextView textView, Context context) { Calendar dateCalender = Calenda...
Merras asked 17/4, 2022 at 5:59

11

Solved

I want to set the minimum date the user can choose in a DatePicker to the current date. I've tried this: DatePicker datePicker = (DatePicker) findViewById(R.id.event_date); datePicker.setMinDate(S...
Terylene asked 1/12, 2012 at 17:26

20

Solved

I want to open a Calendar on the click of Edit text. After that I want to set the date which the user selects from the Calendar in the edit text. Problem is that, only when I click on the EditText ...
Lette asked 16/8, 2013 at 6:28

4

Solved

I am migrating the calendar components to the new Materials library, MaterialDatePicker, however I am having problems in doing something as simple as changing the name of the confirm button texts ...

8

Solved

How to hide/remove date field in datepickerdialog. Actually my requirement is to use the native date picker dialog but it shows up with day, month, and year. But as per my requirement i need only m...
Epigrammatize asked 20/5, 2012 at 13:31

4

I'm using a DialogFragment to open a DatePickerDialog public class DatePickerFragment extends DialogFragment{ @Override public Dialog onCreateDialog(Bundle savedInstanceState) { // Use the curr...
Lucid asked 28/5, 2015 at 14:43

6

Solved

I want to use the digital date picker dialog and time picker dialog, I have written the code and my picker dialogs are working, but I want them in another format. Currently, my time picker and date...
Tomokotomorrow asked 6/3, 2016 at 13:0

32

Solved

I want to show datepicker popup window. I have found some examples but i am not getting it properly. I have one edittext and i want that when i click on edittext the datepicker dialog should popup ...
Retort asked 18/2, 2013 at 9:45

5

I am using date picker and I need to style it with different colors. All things are working fine except the selected date color. The thing is selected date color takes "android:textColorPrimaryIn...
Groundsill asked 20/4, 2017 at 7:27

4

Solved

I want disable sundays and specific dates in particular months in android date picker The Datepicker I used is android datepicker: Calendar calendar = Calendar.getInstance(); calendar.add(Calenda...
Paris asked 25/11, 2016 at 7:40

6

I am using a date picker and time picker in my application. I want to set the date and time when the page loads. Is this possible? How so?
Lyris asked 28/4, 2011 at 11:30

7

Solved

In my app I have one datepicker, I am able to select and set the selected date in textview, but the issue is if again I click on textview to open datepicker dialog, it always shows current date ins...
Haddock asked 4/6, 2015 at 13:11

© 2022 - 2025 — McMap. All rights reserved.