SlideDateTimePicker icon indicating copy to clipboard operation
SlideDateTimePicker copied to clipboard

Feature to add

Open chanonly123 opened this issue 9 years ago • 0 comments

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);
}

chanonly123 avatar Jun 16 '16 12:06 chanonly123