-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there no way to hide cancel button ? #4
Comments
iamageo
added a commit
that referenced
this issue
Sep 6, 2022
Hi @IanLaFlair, thanks for your problem! ❤ I updated the library to support your problem, now you can call .hideNegativeButton(hide = true) //Simple example
BeautifulDialog.build(this)
.title("Title success", titleColor = R.color.black)
.body("Description success", color = R.color.black)
.type(type = BeautifulDialog.TYPE.SUCCESS)
.position(BeautifulDialog.POSITIONS.CENTER)
.onPositive("Confirm") {
Toast.makeText(this, "confirm", Toast.LENGTH_SHORT).show()
}
.onNegative("Cancel") {
Toast.makeText(this, "cancel", Toast.LENGTH_SHORT).show()
}
.hideNegativeButton(hide = true) will have the following result |
sorry, if i upgrade to 1.0.2, beautifuldialog turn into unresolved reference |
try this, I removed the release prefix: implementation 'com.github.iamageo:beautiful-dialog:1.0.2' see on Jitpack: https://jitpack.io/#iamageo/beautiful-dialog/1.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: