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

Added setTextAlign to SingleDateAndTimePickerDialog.Builder #316

Open johnchrisdc opened 3 years ago

johnchrisdc commented 3 years ago

This will add the ability to set the text alignment from the SingleDateAndTimePickerDialog.Builder.

Sample builder

singleBuilder = new SingleDateAndTimePickerDialog.Builder(this)
                .titleTextSize(17)
                .bottomSheet()
                .curved()
                .displayMinutes(true)
                .displayHours(true)
                .displayAmPm(true)
                .displayDays(false)
                .displayDaysOfMonth(true)
                .displayMonth(true)
                .displayYears(true)
                .setTextAlign(SingleDateAndTimePicker.ALIGN_LEFT); // Sets the text alignment, SingleDateAndTimePicker.ALIGN_CENTER by default