sample-store-android icon indicating copy to clipboard operation
sample-store-android copied to clipboard

Prevent line break on CartItemBinding

Open tigrettin opened this issue 5 years ago • 0 comments

Hello there,

This is more of an Android question rather than Stripe, but couldn't figure out, sorry.

I'm getting line breaks at prices with long item descriptions:

Screenshot_1588334738

Is there any way to always display single line prices, while shrinking the item description on left accordingly? In the fillOutCartItemView() method probably?

Tried something like below, but didn't help:

viewBinding.totalPrice.layoutParams.width = 100

Any suggestion or feedback will be welcomed and greatly appreciated.

Thanks!

tigrettin avatar May 01 '20 12:05 tigrettin