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

TextInputLayout not show hint #23

Closed ConCaRo closed 7 years ago

ConCaRo commented 7 years ago

I don't know how to add images so I asked a question at StackOverflow. http://stackoverflow.com/questions/41637866/textinput-layout-not-show-hint

Thanks for help.

lkorth commented 7 years ago

The card form uses the design support library for float labels. I would check to see which version of the design support library your app is using when you're not using the card form. The card form requires at a minimum 25.0.0 and at a maximum 26.0.0.

ConCaRo commented 7 years ago

I changed to design support library to compile 25.1.0 or 25.0.1 but still the same problem. I checked version "android.support.design.widget.TextInputLayout" in layout, it is 25.1.0.

ConCaRo commented 7 years ago

I fixed this problem by changing compile 'com.android.support:design:[25.0.0,26.0.0)' to compile 'com.android.support:design:25.0.1' And add to my project as a module . This problem has the reason: I using appcompat-v7:25.0.1 but when I use gradle compile 'com.braintreepayments:card-form:3.0.3', the design support library changed to 25.1.0 and cause that problem. I changed to the same version of appcombat, desgin support librares. Thanks for support.