Questions tagged [materialdatepicker]
52 questions
2
votes
0 answers
How it works MaterialDatePicker in Android?
I have some doubts about how it works the Calendar library in Android.
I have implemented a listener to get the selected date in the MaterialDatePicker. With the method addOnPositiveButtonClickListener, I get the date selected in milliseconds but I…

Sergio
- 725
- 1
- 7
- 20
2
votes
0 answers
MaterialDatePicker is very very slow
I have the following function -
private fun showCalendar() {
val datePickerDialog = MaterialDatePicker
.Builder
.dateRangePicker()
…

Alon Shlider
- 21
- 1
2
votes
0 answers
android - MaterialDatePicker Fullscreen: can't change black statusbar color
I have a problem with MaterialDatePicker. When I'm trying to open it in fullscreen, my statusbar becomes black. I've tried to create my own Theme with parent="ThemeOverlay.MaterialComponents.MaterialCalendar.Fullscreen" and override statusBarColor…

Den
- 1,284
- 2
- 14
- 33
2
votes
0 answers
React KeyboardDatePicker set intial value Format
I have a component that receive date from the backend as a string in dd/MM/yyyy format.
I pass this date to my MaterialUI datepicker component, but it converts it into MM/dd/yyyy , is there a way i can control this conversion, rather than have a…

onlinejava
- 163
- 1
- 4
- 14
2
votes
1 answer
Material DateRangePicker set up a default range
I want in my DateRangePicker was a default selected range. How can I get that?
My code now:
CalendarConstraints.Builder constraintBuilder = new CalendarConstraints.Builder();
…

AntonioFrank
- 131
- 5
1
vote
1 answer
DatePickerDialog resets to default month when changing selectableDays
I have a DatePickerDialog (com.wdullaer.materialdatetimepicker.date) that has its selectableDays populated from an API.
The API that we use only supports retrieving one month at a time. As a result, we need to retrieve more selectableDays for the…

Alan Nelson
- 1,129
- 2
- 11
- 27
1
vote
0 answers
How to disable SPECIFIC dates of Material DatePicker on Android studio project?
Background: I was working on an Android project where concurrencies in date booking will raise, and I have used MaterialDatePicker in order to choose the dates.
Problem: I need to DISABLE some SPECIFIC dates that are already selected by other users…

arjunspramod
- 11
- 1
1
vote
0 answers
Material UI Date picker using default theme instead of custom theme
I am using Material UI for my react project. I am unable to apply the default theme for the Date picker. It works for Textfields and other components. Cannot find much documentation on this either. I want the "MuiOutlinedInput" to be applied to my…

Ap-Mich
- 37
- 9
1
vote
0 answers
How to close MaterialDatePicker after selecting date
I want to close MaterialDatePicker after selecting a date range but it is necessary to click on "Save" button. How can I close the dialog automatically after selecting start and end date?
val datePicker =…

AliSh
- 10,085
- 5
- 44
- 76
1
vote
1 answer
Raw use of parameterized class 'MaterialDatePicker.Builder'
I am trying to implement a Date Picker but i am getting the following lint error
Raw use of parameterized class 'MaterialDatePicker.Builder'
Below is my code for the Material Date Picker
MaterialDatePicker.Builder builder =…

Emmanuel Njorodongo
- 1,004
- 17
- 35
1
vote
0 answers
Android Material Date Picker Pick Multiple Dates for example 4 Dates from the Same Calendar
I would like to pick one, two, three or more dates from a Calendar in an android studio, how can i implement that using Material Date Picker or the normal date picker and get all the selected dates from the calendar
Below is the code for my Material…

Emmanuel Njorodongo
- 1,004
- 17
- 35
1
vote
2 answers
How to change the format of Material Date Picker in YYY.MM-DD
I want to change the format of Material Date Picker.
I am getting it from String its like 13 Apr 2021.But I want to change in 2021-04-13 format.
Calendar calendar=Calendar.getInstance(TimeZone.getTimeZone("UTC"));
calendar.clear();
Long…

amol
- 31
- 9
0
votes
1 answer
Android com.google.android.material.datepicker.MaterialCalendar.getCurrentMonth()' on a null object reference
My Android app crashlytics have log this error:
androidx.fragment.app.Fragment.performSaveInstanceState
Fragment.java, line 3292
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.material.datepicker.Month…

Han
- 21
- 6
0
votes
0 answers
The Date Picker Range dialog is opening two time how to make open single dialog and perform necessary operation according to my code
This my Activity
package com.example.calender
import android.annotation.SuppressLint
import java.util.*
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Parcel
import android.os.Parcelable
import…
0
votes
1 answer
Unable to customize DateRangePicker in Android compose
I am new to Compose and currently having issues with customizing the DateRangePicker. What I want to do is to remove the edit icon and replace it with the left/right arrow as you see in the DatePicker. Also, the title looks too big and crammed. I…

Jennifer
- 1,822
- 2
- 20
- 45