791 questions
0
votes
2
answers
71
views
Date Picker Dialog not opening
I'm creating a date-of-birth picker screen with Jetpack Compose in Kotlin, where I need to let users select a date using a DatePickerDialog. I'm invoking this Composable function within onCreate() ...
1
vote
1
answer
144
views
Failed to resolve: com.vivekkaushik.datepicker:datePickerTimeline:0.0.4
The error am getting is this
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.vivekkaushik.datepicker:datePickerTimeline:0.0.4.
build.gradle
implementation '...
0
votes
1
answer
31
views
Why I could use a lambda to define onDateChangedListener(an interface), and where the data comes from?
I am using DatePicker(a widget), and I use .init() with it
.init() need four things.
open fun init( year: Int,
monthOfYear: Int,
dayOfMonth: Int,
onDateChangedListener: DatePicker....
0
votes
1
answer
106
views
Styling of native date picker on Android
We have following issue:
We use an inApp browser to render a website to onboard a customer
We have an input field with type="date". Clicking this field renders the usual device-dependent ...
1
vote
0
answers
37
views
Alarm Only Goes Off At The Set Date But Ignores The Set Time When Using Alarm Manager In Android
I've developed an application where a Text appears on screen whenever the current time matches the date and time selected by the user. This is accomplished using Alarm Manager. The date and time are ...
1
vote
1
answer
1k
views
Android styles.xml in Dark Mode overrides .Net Maui Splash Theme styles
I created a .Net MAUI application that has a native Android DatePicker. In the directory Platforms/Android/Resources I have two folders, values and values-night for the styles.xml of the Android ...
0
votes
0
answers
104
views
Get weekday format right with syncfusion_flutter_datepicker flutter
How do I get the one letter weekday in flutter with syncfusion_flutter_datepicker?
This is my code:
SfDateRangePicker(
backgroundColor: Colors.white,
selectionColor: primaryColor,
...
0
votes
2
answers
378
views
How to change the color of the selected date in a colorPicker in Flutter?
i am having problems when trying to change the colors of my DatePicker.
That's how I have it now, I did it with the builder parameter and returning a theme because if I tried to change the ...
0
votes
1
answer
127
views
Material date picker not showing
I am using material date picker in my andorid project in fragment. On specific click, I want to show user the date dialog but on click nothing is showing.
Here is my code:
I am expecting that user ...
3
votes
1
answer
647
views
Jetpack Compose DatePicker is taking empty space even if title and headline are empty
Compose DatePicker is taking empty space even if the title and headline are empty.
It's already published as a bug: https://issuetracker.google.com/issues/267194809
DatePicker:
DatePicker(
state = ...
0
votes
1
answer
58
views
Calendar View not showing in android DatePicker
I have added android.app.DatePickerDialog for selecting date from the user. The dialog was working properly on most of the mobile devices. But in Samsung mobiles calendar view is not showing, only ...
2
votes
1
answer
388
views
Android studio making only list of dates selectable in date picker
Title, I want to have a list (array, xml, text whatever is easiest) and I want to have only those dates(there are gaps in the dates) in the date picker be selectable. I know how to set the min and max ...
0
votes
1
answer
216
views
How to replace Arabic numbers in DatePickerDialog itself with English numbers while still using Arabic strings in Android?
I'm using a DatePickerDialog in my code and set the Locale of the app right before using it and in onCreate of my base activity. it's working perfectly in Arabic as it uses Arabic (called Hindi format ...
0
votes
1
answer
518
views
DatePicker in MAUI appears full screen and aligned to the left-top corner in Android
Hello. I am developing an MAUI app in which I have to use a customized date picker without borders.
However, it appears in the corner of the screen and not in the middle as it should. I am using .Net ...
7
votes
2
answers
2k
views
Jetpack Compose UI Test with Material3 DatePickerDialog
My question is pretty simple. How do I perform any selections on a DatePickerDialog in Jetpack compose's UI Tests?
4
votes
0
answers
3k
views
Date Picker implementation for Android Jetpack Compose
I am trying to create two composable functions:
A text field that when clicked will open a popup menu that will allow the user to select a date(dd/mm/yy)
The popup dialog that will allow to user to ...
1
vote
1
answer
96
views
How can I change Android spinner DatePicker text appearance?
It's style of my DatePicker:
<style name="AppDatePicker">
<item name="android:textAppearance">?textAppearanceLabelSmall</item> <!-- This effects nothing. --...
0
votes
0
answers
149
views
How can I pull day of week in kotlin in android studio in datepiker no matter int or string
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
//setContentView(R.layout.activity_main_randevu)
binding = ActivityMainRandevuBinding....
0
votes
1
answer
223
views
Is there a way to make a completely Turkish DatePickerDilog in kotlin compose?
I made a Turkish DatePickerDialog, but it was not completely Turkish as you can see the below picture I share.
Even though I do Turkish in this part.
// Set the locale to Turkish
Locale.setDefault(...
1
vote
1
answer
952
views
DatePicker need to show in English android
I have Changed Device Language Input as Arabic to change in RTL view., But now I need to show the Date picker in English and same as For Time to .
0
votes
1
answer
2k
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 ...
2
votes
0
answers
137
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 ...
0
votes
0
answers
745
views
How to show Islamic (Hijri) calendar in datePickerDialog in Android?
I am using below code but this is showing up the gregorian calendar instead of Hijri Calendar...
val locale = ULocale("@calendar=islamic-umalqura")
val calendar = android.icu.util.Calendar....
0
votes
2
answers
72
views
How can detect click cancel of DatePickerDialog?
I have one DatePickerDialog that show after click editText. That works well. I need to add this code that detect when user click cancel button after show Dialog then I will set editText border ...
1
vote
2
answers
5k
views
Style date picker on Jetpack Compose
I'm using DatePickerDialog in Jetpack Compose. I wanted to customize it with colors that fit my application instead of the default colors. I know I have to use the styles and the ContextThemeWrapper, ...
0
votes
1
answer
58
views
Setformatter(new NumericMonthFormatter()) & SetDisplayValues(null) are not working in Android version 5.1.1
NumberPicker numberPicker;
if (datePickerNumericMonthFormat)
{
var input = numberPicker.FindViewById<EditText>(Activity.Resources.GetIdentifier("...
0
votes
0
answers
74
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?
0
votes
0
answers
440
views
DatePickerDialog and LocalDate.parse crashes app in Android Studio
I'm working on a project where I want to make an app which has some kind of calendar.
Because I think a datepicker is a handy tool, I want to uses this. When the date is picked, the CalendarUtils....
0
votes
1
answer
201
views
How to pass the selected date from DateTimePicker component that is encapsulated in Formik in React Native?
I am having trouble passing the selected date in React Native component that is encapsulated with Formik. It seems that the value is not passed even though the field value changed and the console log ...
0
votes
1
answer
551
views
How to change the color of Year Picker and Month picker chevron on the Android Material Date Picker?
How is it possible to change the color of the chevron and the year selector on the Material Datepicker dialog?
1
vote
1
answer
289
views
Date Picker Dialog Code error in Android Kotlin
Below is the date picker dialog in one of the fragment and I am getting the error shown below
Type mismatch: inferred type is Int but LocalDate was expected
on line:
viewModel.onDateSelected(year, ...
0
votes
0
answers
126
views
How to make End Date 1 day after the Start Day on android datePicker
i have a project that should bring end date after the start date on android datepicker.
(user will chose any date on start date and when user click end date what ever user choose end date should be ...
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 ...
0
votes
1
answer
988
views
Customize DatePicker color
I've a DatePicker inside xml, so it's not a dialog, just a component inside my layout. My main theme is extending from Theme.MaterialComponents.Light.NoActionBar.
How can I change the color of my ...
0
votes
1
answer
476
views
Pass Date from Datepicker to Spinner selected item and load API Response in Fragment
I have a working app where user select an option from Spinner the datepicker auto open user select the date and view data. However, I am trying to include an Imagebutton(calendar) which opens a date ...
0
votes
2
answers
427
views
Trying to get Calendar data into a String
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 = Calendar....
0
votes
1
answer
286
views
Update TextView When Date is Changed in the DatePicker
I have Added A date picker View in my .xml layout
<DatePicker
android:id="@+id/datePicker"
android:layout_width="wrap_content"
android:layout_height="...
4
votes
1
answer
3k
views
CalendarView Jetpack Compose Buttons Are Not Displayed
I have the following requirement: the user can enter a name in the first text field of a dialog, but when the user clicks on the second (disabled) text field a DatePicker is supposed to open.
I've ...
0
votes
1
answer
2k
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 ...
1
vote
1
answer
608
views
how to find the difference between datepicker in kotlin
Currently, I have a start date and a end date for my datepicker dialog. I am trying to find the difference in days between the start and the end date. And to make sure that the end date will not be is ...
0
votes
2
answers
234
views
predefine date to display on datepicker in android
Im trying to have my datepicker display the predefined date that I have set when I click on it.
I have tried using a delimiter to separate the date and setting them based on the year, month and day ...
0
votes
1
answer
781
views
android studio prevent past date in datepicker kotlin
How can I disable only past date days from datepicker and not the future? I know it is somewhere around the startCalendar.set but I can't find the setMinValue.
/* Calendar Start Date Button Click */
...
0
votes
0
answers
110
views
Android Kotlin Datepicker Dialogue - Missing Features
I am missing few features in my Date picker dialogue using Kotlin
Missing Cancel & OK buttons
Today is not highlighted when the dialogue opened (today is 19 and 18 is highlighted)
Can someone ...
2
votes
1
answer
1k
views
How to change the date picker from spinner to calendar dialogue in Android Kotlin
How to change my spinner date picker to normal calendar with an option to keyboard entry as shown in the attached picture
Here is the code.
private val datePickerDialog by lazy {
...
3
votes
1
answer
2k
views
xamarin forms DatePicker Cancel/OK event
I found and tried one example of a custom rendered DatePicker, for Android, for Xamarin Forms and does not show which button was clicked in UnFocus. At least not for me. Its from stackoverflow. ...
4
votes
0
answers
317
views
Android DatePicker avoid highlights on current date (today)
I have a DatePicker in my Android app and I disabled some dates (as shown in below picture).
Here I disabled all the dates after December 7 and today date is December 9.
As you can see December 9 (i....
0
votes
1
answer
73
views
DatePicker dialog may showing improper date in kotlin
Below is the function I am using to diplay date picker dialog in android.
private fun openPurchaseDatePickerDialog(
yearToDisplay: Int,
monthToDisplay: Int,
dayToDisplay: Int
) {
try {
...
0
votes
1
answer
764
views
how can set max date in date picker kotlin android
how can set max date in date picker Kotlin android
how can set current date in max date so user cannot enter future date
val date =
OnDateSetListener { view, year, monthOfYear, dayOfMonth ->...
1
vote
0
answers
171
views
Android Studio Date Picker Missing Selection Problem
I have problem that the selection to be omitted when i click on the last week days.
I tried to adjust the values such as padding, margin, and area size as much as possible, but there was no result.
...
3
votes
1
answer
1k
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 ...