Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Single line of text in ImageCell if the ListView is in a StackLayout on iOS

$
0
0

I created a page with a Label and a ListView inside of a StackLayout, and bound both the Text and Detail properties of the ImageCell. On Android and Windows Phone, this appeared as two separate lines of text. On iOS, it appeared instead as a single line with two colors.

Then I removed the Label and used the ListView directly as the Content instead of putting it inside of a StackLayout. After that change, the detail appeared on a second line.

I'm happy with this layout, but I'm still disturbed that changing the container would impact the ImageCell.

Here's a commit where I went from the bad layout to the good layout: https://github.com/michaellperry/Festify/commit/3d956e26fd6c78aef11ad9174db20db5c8d7e798

And again, this is only on iOS. On Android and Windows Phone, the ImageCell displays two separate lines.


Viewing all articles
Browse latest Browse all 58056

Trending Articles