Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature to add #28

Open
chanonly123 opened this issue Jun 16, 2016 · 0 comments
Open

Feature to add #28

chanonly123 opened this issue Jun 16, 2016 · 0 comments

Comments

@chanonly123
Copy link

chanonly123 commented Jun 16, 2016

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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant