aabhasr1 / OtpView

A custom view to enter otp/pin of different sizes used usually in cases of authentication.
MIT License
382 stars 99 forks source link

Does it support custom keypad android #3

Closed Gurucharan closed 5 years ago

Gurucharan commented 5 years ago

I have a custom keypad for OTP fields but this OTPtextview open default android number keypad and it is not triggered in touch or click event. Does it has the support?

Thanks in advance!

aabhasr1 commented 5 years ago

Presently it does not support custom Keypad but ill add it as quickly I can. Will update you when I do it.

aabhasr1 commented 5 years ago

Also, Tell me what is the use case you require so that I can see if I can generify it.

Gurucharan commented 5 years ago

@aabhasr I need to use the otptextview with touch event as below,

OTPtextView.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if(event.getAction() == MotionEvent.ACTION_UP){

        // Do what you want
        return true;
    }
    return false;
}

});

Currently above method is not firing. If you do the corresponding provision to make it fire I can implement the custom keypad. We are working in Xamarin.Android. We are using nuget package for OTPview.

Thank you, Charan

aabhasr1 commented 5 years ago

I have added the above functionality. Its added in v1.0.6. Please verify it meets your requirements so that I can close this issue. Thanks.

Gurucharan commented 5 years ago

Thank you for your update. When will we can get the update v1.0.6 from the nuget manager. Now the available latest is v1.0.5. Please check this link, https://www.nuget.org/packages/Karamunting.Android.Aabhasr1.OtpView/

aabhasr1 commented 5 years ago

can you tell me where did you get a link to this? I haven't done NuGet integration yet so just provide me where did you find the corresponding link and ill look into how to update it. Thanks.

Gurucharan commented 5 years ago

oh fine, if you search with the keyword otpview in search box in this link https://www.nuget.org we can get the aabhasr1.OtpView in results as I share the link before. Same thing I can also update with the visual studio nuget package manager.

aabhasr1 commented 5 years ago

Alright. I'll look into how to update the version in NuGet as you can also see that the package on the above link is hosted by someone else. If needed ill add the updated package under my name and send you the updated link.

Gurucharan commented 5 years ago

thank you, We are waiting for the updated link. when i click on the project site on nuget package it comes to the same github link.

aabhasr1 commented 5 years ago

Hi, I have tried putting this repo on nuget but I don't know how to do it exactly. Can you collaborate with me in converting this repo so that it can be put on Nuget and i will add you as a Contributor to the project.