#Wilcalaf
1 messages ยท Page 1 of 1 (latest)
The card number field seem shorter than the other, im not able to figure out why, there is any way to give it a height?
HI ๐
I'm looking into this but having trouble finding parameters that would allow you to adjust the height
For reference, here is where I'm looking: https://stripe.dev/stripe-android/payments-core/com.stripe.android.view/-card-form-view/index.html
yeah thats the one im using
Can you set the minHeight attribute? The CardFormView inherits from LinearLayout so those attributes should be something you can set.
https://developer.android.com/reference/kotlin/android/widget/LinearLayout
ill try
it seems its for the whole widget and not for the problematic field specifically
Hello! What happened when you adjusted minHeight? Did the appearance change at all?
i tought so originally, but it turns out i was confused, it didnt affect at all
I'm not very familiar with layout on Android, but my understanding is that the CardFormView inherits from LinearLayout, so you should be able to adjust the height of it like you would any other LinearLayout.
Can you grab the LayoutParams from it and set the height on that?
I'm not sure why just that one field is a different height... ๐ค
I'm curious, if you use CardInputWidget instead does it have any issues, or does it work as expected? https://stripe.dev/stripe-android/payments-core/com.stripe.android.view/-card-input-widget/index.html