braintree / android-card-form

A ready-made card form layout that can be included in your Android app, making it easy to accept credit and debit cards.
MIT License
366 stars 128 forks source link

I want to set CVV input type as password #28

Closed snehaltembare closed 7 years ago

snehaltembare commented 7 years ago

General information

Issue description

I am trying to set CVV input type as password but its not working for me.

lkorth commented 7 years ago

@Snehal-Tembare care to share how you're attempting to do it?

All you need to do is the following after the card form is set up:

cardForm.getCvvEditText().setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD);
snehaltembare commented 7 years ago

Thanks. But one more issue now I am facing is that its not working in AndroidStudio version to 3.0.

lkorth commented 7 years ago

Please see #30 for AAPT2 issues in Android Studio 3.0 Canary builds or open a new issue.