#felipe_android-cardwidget-rendering

1 messages ยท Page 1 of 1 (latest)

velvet duneBOT
#

๐Ÿ‘‹ 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.

crisp iris
#

This is what I was expecting

#

This is what is happening

empty mossBOT
fierce urchin
#

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?

crisp iris
#

Hi, it's working on Android Emulator

#

I just have that werid behavior on the device that I mentioned

fierce urchin
#

Have you tested on other devices? what do they look like?

empty mossBOT
fierce urchin
#

What happens if you rotate your screen?

crisp iris
#

Yes, it was tested on three diferent devices

fierce urchin
#

On which different devices?

crisp iris
#

I was checking with the testers

#

This is in landscape mode

fierce urchin
#

Okay and, just to be clear, the sections above the card input are also not rendering. Do you know why that is?

crisp iris
#

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

fierce urchin
#

Yeah I just quickly created a new Android project using this widget and have it running on my Pixel 7. It works there too.

crisp iris
#

This is what is happening when you click in the field

#

It seems an issue only with the placeholder

fierce urchin
#

Yes and perhaps specific to the screen view on this device.

#

Are you loading this inside a LinearLayout?

crisp iris
#

Yes, the hierarchy is ScrollView -> LinearLayout->CardMultilineWidget

fierce urchin
#

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.

crisp iris
#

Ok, I will write there

#

thanks!

fierce urchin
#

I hope we can figure out what is going on here and get this resolved for you.

#

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>