Comments (23)
I'll make it completely customizable like NegativeColor. Or better: I may add a styling mechanism, so you don't have to create a custom just class for styling.
from xamarin-fingerprint.
@bogadev @georgeharnwell @foehammer88 @ruisilva450 @marualderete
So I finally got the time to upload my implementation that allows me use my custom xml layout, reference widgets from the layout in my extended FingerprintDialogFragment => "ZetagikCustomFingerprintDialogFragment" and even change the dialog type to "BottomSheetDialog".
Also, don't forget to modify your MainApplication.cs to use this customised FingerprintDialogFragment.
Hope this answers the questions related to customisations and @smstuebe accepts my PR since it modifies only the sample project and can serve as a guide for others too hopefully.
from xamarin-fingerprint.
Well I took a stab at tinting your image and it seems to work. For anyone else...
public class CustomFingerprintDialogFragment : FingerprintDialogFragment
{
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
var view=base.OnCreateView(inflater, container, savedInstanceState);
var image = view.FindViewById<ImageView>(Resource.Id.fingerprint_imgFingerprint);
image.SetColorFilter(Color.ParseColor("#000000")); // black
return view;
}
}
from xamarin-fingerprint.
I know we can create a custom Fragment, but I'm not sure how that works within your plugin.
See the documentation: https://github.com/smstuebe/xamarin-fingerprint#configuration
public class MyCustomDialogFragment : FingerprintDialogFragment
{
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
var view = base.OnCreateView(inflater, container, savedInstanceState);
var image = view.FindViewById<ImageView>(Resource.Id.fingerprint_imgFingerprint);
image.SetImageResource(Resource.Drawable.fingerprint_black);
return view;
}
}
Unfortunately, the fragment is calling ClearColorFilter()
after each animation. That's why you have to add a black copy of the icon to your project.
I'll change the code, so you will be able to set a tint for the icon in the next release.
from xamarin-fingerprint.
-> 1.4.6
You can set DefaultColor
in a custom dialog now.
from xamarin-fingerprint.
@smstuebe any update on this?
from xamarin-fingerprint.
Hi @ChaseFlorell,
I'm the friendly issue checker.
Thanks for using the issue template 🌟
I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.
from xamarin-fingerprint.
That would be pretty cool @smstuebe. For now my workaround will do just fine.
from xamarin-fingerprint.
Sure? have you tested a negative try where the icon turns red and then back to white? I'd be suprised, if it turns back to black.
Btw: don't close it. It contains a new feature request ^^
from xamarin-fingerprint.
ah, you are right. If I scan the correct finger, it goes green then disappears (thats what I tested). When I use the incorrect finger, it goes red then goes white.
from xamarin-fingerprint.
Not sure I can submit a PR, but here's my thought.
private async Task AnimateFailedTryAsync()
{
if (_icon == null)
return;
var originalColorFilter = _icon.ColorFilter;
_icon.SetColorFilter(NegativeColor);
var shake = ObjectAnimator.OfFloat(_icon, "translationX", -10f, 10f);
shake.SetDuration(500);
shake.SetInterpolator(new CycleInterpolator(5));
await shake.StartAsync();
_icon.SetColorFilter(originalColorFilter);
}
from xamarin-fingerprint.
Hey guys, was this fixed?
I'm having a hard time on my app with the white on white...
from xamarin-fingerprint.
oupsi, no. I'll move it to Milestone 1.4.6.
from xamarin-fingerprint.
As of now there is a way that I can apply my own FingerprintCustomDialog.axml?
If I do that in the OnCreateView it will lose the bindings even if I use the same resource ids that you use in your .axml file.
from xamarin-fingerprint.
@smstuebe is there any way to customize the text color of "Cancel" button? It is taking native color right now.
Kind regards
from xamarin-fingerprint.
@smstuebe any update on this?
You can do this =>
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
return inflater.Inflate(Resource.Layout.some_xml_file, container, false);
}
from xamarin-fingerprint.
-> 1.4.6
You can setDefaultColor
in a custom dialog now.
Hello! How can I change tooltip text color in the dialog?
from xamarin-fingerprint.
-> 1.4.6
You can setDefaultColor
in a custom dialog now.Hello! How can I change tooltip text color in the dialog?
@bogadev get reference to the widget in the onCreateView override then customise it as you want
from xamarin-fingerprint.
-> 1.4.6
You can setDefaultColor
in a custom dialog now.Hello! How can I change tooltip text color in the dialog?
@bogadev get reference to the widget in the onCreateView override then customise it as you want
Thank you for the answer! Could you please give an example? Because Im really stuck at this point
from xamarin-fingerprint.
I could do with some examples on this. I can only seem to find the background property to update. Not text color.
from xamarin-fingerprint.
I could do with some examples on this. I can only seem to find the background property to update. Not text color.
I found how to change background color, that was pretty simple, but text color changing looks really complicated. If you could help, I would be very grateful
from xamarin-fingerprint.
That is NICE! Thank you!
from xamarin-fingerprint.
@alvynfash you are just... wizard.
Thank you so much
from xamarin-fingerprint.
Related Issues (20)
- Authenticate in WebAPI HOT 1
- How do you use biometric sensors? HOT 4
- Crash with 2.1.5 in UWP on checking availability, same code works with 2.1.5 on Android, and on all platforms with 2.1.4 HOT 4
- The Authenticate request fails with "UnknownError" if the app is completely unloaded on iOS HOT 2
- iOS crashes when AuthenticationRequestConfiguration reason is empty string. HOT 1
- CA1416 analyzer errors (This call site is reachable on...) for .NET MAUI version HOT 5
- 'CrossFingerprint' does not contain a definition for 'SetCurrentActivityResolver' HOT 1
- Plugin version 2.1.5 on Windows UWP reports "This functionality is not implemented in the portable version of this assembly" HOT 4
- Android Implementation allow to bypass the security HOT 7
- Facelock is not working for android HOT 7
- "Try Face ID Again" does nothing on click. HOT 1
- App hangs under iOS 16 Beta at startup HOT 1
- Allow possibility to disable face unlock on Android HOT 7
- Bitcode issue in the plugin when we submit to App Store. HOT 1
- LAStatus.SystemCancel does not return FingerprintAuthenticationResultStatus.Canceled HOT 2
- Failed resolution of: Landroidx/lifecycle/ViewModelProvider$KeyedFactory; HOT 2
- iOS vulnerable to biometric bypass via "objection" HOT 3
- App becomes unresponsive when using plugin.fingerprint on net8-pre5 HOT 3
- Enter code Error: Fallback authentication - MAUI iOS HOT 1
- Release Package & Activity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin-fingerprint.