fingerlock
fingerlock copied to clipboard
Dialog With Custom Icons, Text, & Text Colors
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 :)
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 .