Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

akashk2512
Copy link

@akashk2512 akashk2512 commented Feb 15, 2021

  • How to change text "OK" to "DONE" #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();

Akash added 2 commits February 15, 2021 18:11
…button text can be change now, ok button text color, Added small icon container to show next button icon configurable
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant