florent37 / SingleDateAndTimePicker

You can now select a date and a time with only one widget !
Apache License 2.0
1.02k stars 333 forks source link

Behavior Not Proper #134

Closed PrinceDholakiya closed 6 years ago

PrinceDholakiya commented 6 years ago

screenshot_2018-05-24-19-27-13

See the above picture, model of this device is nexus "OK" button of this library is show behind minimize button This problem is only within the navigation-compatible device. i hope you solve this issues (problem).

Tell the solution of this problem : E-mail address : - princedholakiya6319@gmail.com

=========================================================

Code :

public void showDatePicker() {

    if (datePickerDialog != null) {
        if (datePickerDialog.isDisplaying()) {
            return;
        }
    }

    DoubleDateAndTimePickerDialog.Listener listener = this::setDateTime;

    datePickerDialog =
            new DoubleDateAndTimePickerDialog.Builder(getActivity())
                    .title("Select date & time")
                    .tab0Text("Start")
                    .tab1Text("End")
                    .mustBeOnFuture()
                    .titleTextColor(getActivity().getResources().getColor(R.color.grey_900))
                    .mainColor(getActivity().getResources().getColor(R.color.colorPrimaryDark))
                    .backgroundColor(getActivity().getResources().getColor(R.color.grey_900))
                    .bottomSheet()
                    .curved()
                    .listener(listener)
                    .build();

    datePickerDialog.display();
}
leonardogazio commented 5 years ago

Hey guys, is there already a solution for that issue?