[Solved] how to display date and time picker when I switch on the button


Android How do I correctly get the value from a Switch?

You can refer this link for checking if switch is on or off and accordingly handle visibility of textview.And you can put your date and time picker onclick of textviews

Do you need even date and time picker code?

solved how to display date and time picker when I switch on the button