fingerlock icon indicating copy to clipboard operation
fingerlock copied to clipboard

Dialog With Custom Icons, Text, & Text Colors

Open SharpMobileCode opened this issue 7 years ago • 1 comments

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

SharpMobileCode avatar Aug 22 '17 14:08 SharpMobileCode

The request make sense. I will provide that functionality. Will let you know.

Thanks!

On Tue, Aug 22, 2017 at 4:17 PM, Ruben Macias [email protected] wrote:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aitorvs/fingerlock/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AGePUPL0cB1lx4uzN6XrFVnBp2aBs-fKks5sauLkgaJpZM4O-r_u .

aitorvs avatar Aug 22 '17 16:08 aitorvs