Skip to content

Conversation

@innoflash
Copy link

Wassup buddy, the library is doing great but we are writing too much code to achieve some of these missions so i have minimized some on the title and content.

so for setting title and content(text) i have tried to trim it to

dialog = ElegantDialog(context)
                .setTitle(tile: String, titleColor: Int?) //sets the title of the dialog, color is optional
                .setContent(content: String, contentColor: Int?) //sets the content of the dialog, color is optional

@innoflash
Copy link
Author

innoflash commented Oct 29, 2019

I was about to start on looking on the button events, i think you can trim them down to the way the normal dialogs work like
Dialog.setOnPositiveClickListener

When this is called it brings the Button view to View.VISIBLE, assign its text and in this context assign the drawable

Am not too good with Kotlin but i would have tried applying those changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant