Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
1k views

Android: Material Date Picker Custom Styling

I am using the Material-Component Date Range Picker in my Android app and I want to customize the header layout. I have tried adding the materialCalendarHeaderLayout item in my custom style, but I am ...
ankushlokhande's user avatar
2 votes
0 answers
107 views

How to change Android DatePicker month navigation chevron/arrow color

I am using the DateTimePicker component of the Material Dialog library. I want to change the color of the left arrow "<" and also the text color of the future day number (Marked in red ...
Bipin Vayalu's user avatar
  • 3,125
0 votes
0 answers
62 views

DatePicker inside textfield

Is there any way to connect textfield with datepicker in layout? Like this solutions with onFocusChangelistener and clickListeners, in my opinion, are bad. maybe there is a convenient way?
Valentin's user avatar
3 votes
1 answer
1k views

Android Material Date Range Picker - How to change the text color of only the selected range dates?

I am attempting to reproduce this style with the Material Range Date Picker: [Calendar date picker with all the selected days in white textColor. The unselected days have a black textColor] This is ...
Mirian Fonkam's user avatar
0 votes
1 answer
1k views

MaterialDatePicker constraints or limit available dates

I have a requirements where I need to limit the allowed date in DatePicker from year 2009 up to current date only. Meaning the supported date for example will be from Jan 1, 2009 up to current date ...
Bitwise DEVS's user avatar
  • 3,156
3 votes
1 answer
973 views

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 ...
igodie's user avatar
  • 527
0 votes
1 answer
1k views

Is it possible to update the textfield in Material design date picker?

is it possible to add an outline and hide the mm/dd/yyyy text in material design date picker : https://material.io/components/date-pickers#anatomy I am trying to make it such that the outline of ...
Angela Heely's user avatar
0 votes
1 answer
2k views

How can I Select data from material date picker and replace the selected date in edit text field? [duplicate]

I want to make a date of birth date picker using the material date picker component. My main target is when the user presses the edit text view, it will show the date picker dialog. Then the user ...
kmhmubin's user avatar
1 vote
2 answers
3k views

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....
amol's user avatar
  • 41
2 votes
1 answer
4k views

How to change the Material Date & Time Picker background color in Android?

How to change the Material Date & Time Picker background color in Android? i found many solution default date & time picker not Material design
user avatar
-2 votes
1 answer
128 views

MaterialDatePicker.getHeaderText() returns 00 on month android [closed]

i have a material date picker which i want to use to get a date my problem is when i try to format it to 'yyyy-mm-dd' it always returns "00" in months for example if a string "Mar 5,...
nissow's user avatar
  • 79
2 votes
3 answers
5k views

How to disable future dates in Android MaterialDatePicker?

I am trying to create a simple DatePicker using MaterialDatePicker where future dates are disabled. I tried few answers from other similar StackOverflow questions but it didn't work. This is my code ...
Ankur Anand's user avatar
1 vote
1 answer
4k views

How to change the dialog's button colors for a Material Date picker

I'm using Material components to create a DatePicker. From what I understand, colorPrimary is used to determine the color of the section at the top of the dialog, as well as the colors for the text on ...
a_local_nobody's user avatar
3 votes
1 answer
833 views

MaterialDatePicker, app crashes after selecting the end date

I have a MaterialDatePicker that selects a range of data, for example from 1 January 2021 to 31 January 2021. MaterialDatePicker.Builder<Pair<Long, Long>> builder = MaterialDatePicker....
Erjon's user avatar
  • 930
0 votes
0 answers
72 views

Android MaterialDatePicker UI different from Material design Documentation

In my project I need to show a date picker that looks exactly like in the doc: https://material.io/components/date-pickers#mobile-pickers But what I see it's much different from it. I tried also the ...
A._'s user avatar
  • 23

15 30 50 per page