Skip to content

Hide specific date selector #8

Description

@filaruina

Hi,

Is it possible to hide one of the selectors in the date time selector? I've seen some code apparently doing that in native android: http://stackoverflow.com/questions/21321789/android-datepicker-change-to-only-month-and-year
There is a cool one-liner
((ViewGroup) datePickerDialog.getDatePicker()).findViewById(Resources.getSystem().getIdentifier("day", "id", "android")).setVisibility(View.GONE);
I wanted to test it but I didn't manage to compile the module on my machine.

Thanks for any help

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions