Skip to content

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

@SharpMobileCode

Description

@SharpMobileCode

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 :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions