SingleDateAndTimePicker
SingleDateAndTimePicker copied to clipboard
#311 issue resolved,Added background shape customisation, OK button text configurable
- #311 issue resolved,
- Added background shape customization
- OK button text can be changed with Done or as per developer requirement now
- Ok button text color can be configurable,
- Added a small icon container to show an image next to the OK button (It's optional and configurable)
- Upgraded SDK version to support SDK 30
Added above new features to give more customization to developers
- Sample builder
new SingleDateAndTimePickerDialog.Builder(mContext)
.bottomSheet()
.curved()
.mustBeOnFuture()
.displayMinutes(true)
.displayHours(true)
.displayDays(false)
.displayYears(false)
.displayDaysOfMonth(false)
.mainColor(Color.parseColor("#FAFAFA"))
.backgroundColor(Color.parseColor("#1D2D51"))
.titleTextColor(mContext.getResources().getColor(R.color.white))
.title("Pickup Time")
/** New features added below **/
.setButtonIconRight(R.drawable.ic_right_arrow_light_blue)
.setButtonName("NEXT")
.setBackgroundShape(R.drawable.top_curve_shape_timepicker)
.setButtonTextColor(mContext.getResources().getColor(R.color.orange_update))
.display();