SingleDateAndTimePicker icon indicating copy to clipboard operation
SingleDateAndTimePicker copied to clipboard

#311 issue resolved,Added background shape customisation, OK button text configurable

Open akashk2512 opened this issue 5 years ago • 0 comments

  • #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();

akashk2512 avatar Feb 15 '21 13:02 akashk2512