You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to set spinners format like "dd MM yyyy", but it is in "mmm dd yyyy" how can do this?
I have added the code in to set month nubers, but not working
public CustomDatePicker(Context context, AttributeSet attrs) {
super.(context, attrs);
.............
Field monthNames = idClass.getField("mShortMonths"); // inner static class field not found
monthNames.setAccessible(true);
String[] months = new String[12];
for (int i = 0; i < 12; ++i) {
months[i] = String.format("%d", i + 1);
}
monthNames.set(this, months);
monthNumberPicker.setDisplayedValues(months);
}
The text was updated successfully, but these errors were encountered:
I need to set spinners format like "dd MM yyyy", but it is in "mmm dd yyyy" how can do this?
I have added the code in to set month nubers, but not working
The text was updated successfully, but these errors were encountered: