Skip to content
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

Dialog With Custom Icons, Text, & Text Colors #7

Open
SharpMobileCode opened this issue Aug 22, 2017 · 1 comment
Open

Dialog With Custom Icons, Text, & Text Colors #7

SharpMobileCode opened this issue Aug 22, 2017 · 1 comment

Comments

@SharpMobileCode
Copy link

This is more of a feature request in the future, but would it be possible for the out of the box dialog to be customizable to include options to change the text, text color, and icons? I was thinking something like:

FingerprintDialog.Builder()
    .with(MyActivity.this)
    .setKeyName(KEY_NAME)
    .setRequestCode(SOME_REQUEST_CODE)
    .setDialogTitle("Fingerprint Sign In")
    .setDialogMessage("Use fingerprint to sign in.")
    .setScanningMessage("Place finger on sensor")
    .setScanningDrawable(myScanningIcon)
    .setScanningMessageColor(R.color.myCustomColor)
    .setAuthenticatedMessage("Success!")
    .setAuthenticatedDrawable(mySuccessIcon)
    .setAuthenticatedMessageColor(R.color.myCustomColor)
    .setFailedMessage("Fingerprint not recognized. Try Again.")
    .setFailedDrawable(myFailedIcon)
    .setFailedMessageColor(R.color.myCustomColor)
    .show()

I realize I could create one from scratch, but I really like the one included in the library and just want to change the icon colors and text colors :)

@aitorvs
Copy link
Owner

aitorvs commented Aug 22, 2017 via email

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

No branches or pull requests

2 participants