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 130 forks source link

Expiration date sheet style issues on Android 11 beta #93

Closed alashow closed 3 years ago

alashow commented 4 years ago

General information

Issue description

  1. It doesn't take the full width
  2. The year rows don't fit in one line (I guess because of ^)
  3. There is a black line/block below the sheet.
Screen Shot 2020-06-21 at 2 47 54 AM
sshropshire commented 4 years ago

Hi @alashow thanks for using the Braintree SDK for Android. We're looking into this issue and will provide an update once we have a solution.

As a workaround, you can disable the date picker dialog in favor of a numeric keypad. To do so, after calling mCardForm.setup(), then call:

mCardForm.getExpirationDateEditText().useDialogForExpirationDateEntry(this, false);

This will enable the Android system keyboard.

sshropshire commented 3 years ago

Date picker dialog is now deprecated in v5.0.0. The expiration date field now leverages the numeric keyboard.