#felipe_android-cardwidget-rendering
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1213257739166425120
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Hi ๐
You say this only happens on a specific device, do you have example screenshots from a different device?
And is this the same behavior you see in Android Emulator?
Hi, it's working on Android Emulator
I just have that werid behavior on the device that I mentioned
Have you tested on other devices? what do they look like?
What happens if you rotate your screen?
Yes, it was tested on three diferent devices
On which different devices?
Okay and, just to be clear, the sections above the card input are also not rendering. Do you know why that is?
Oh, you can disconsider that
And one more info, if you hit the field, you can see the label of the field
It was tested on Galaxy Note 10, Android 12, Samsung S8+ with Android 9 and Emulator with Android 13. It worked on these devices
Yeah I just quickly created a new Android project using this widget and have it running on my Pixel 7. It works there too.
This is what is happening when you click in the field
It seems an issue only with the placeholder
Yes and perhaps specific to the screen view on this device.
Are you loading this inside a LinearLayout?
Yes, the hierarchy is ScrollView -> LinearLayout->CardMultilineWidget
Hmmmm ... ๐ค
If it doesn't change based on viewing area, I don't think we can apply any constraints (using a ConstraintLayout) to "make" it render.
I'm afraid I'll have to ask you to write in to Support here: https://support.stripe.com/contact
Please provide as much detail as you have provided here with
- screenshots of the expected and actual behavior
- Lists of the phone models & Android versions where it does and does not work
I am going to flag this internally so we can get people looking into what may be causing this issue.
I hope we can figure out what is going on here and get this resolved for you.
As a follow up, can you implement the suggestions listed here: https://github.com/stripe/stripe-android/issues/4516?
Specifically adding this to your styles.xml :
<style name="Stripe.CardMultilineWidget.TextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.FilledBox" > <item name="boxStrokeColor">@android:color/holo_green_dark</item> </style>