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

ListView row is alway expanding when inside image fits to size

$
0
0

Hallo
I have a listview with a grid inside the itemtemplate. The grid looks like following:

<Grid RowSpacing="0">
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="7*"/>
              <ColumnDefinition Width="29*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
              <RowDefinition Height="Auto"/>
              <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <AbsoluteLayout Grid.RowSpan="2">              
              <Image Aspect="AspectFit" Source="Historie.png" AbsoluteLayout.LayoutBounds="0.5, 0.5, 1, .8" AbsoluteLayout.LayoutFlags="All"/>
            </AbsoluteLayout>
            <Label Text="Name" LineBreakMode="TailTruncation" TextColor="Black" Grid.Column="1"/>
            <Label Text="Date" TextColor="#999999" FontSize="Small" Grid.Column="1" Grid.Row="1"/>
          </Grid>

HasUnevenRows is enabled.
The size of image is correct (Fit to size of both rows). But the height of listview-row seems to expand to the original height of image (just like image is insight one autosize row and takes its original size).
What can i do to get expected behavior without setting rowheight explicitly.

I'm using an android-phone (Nexus 5 with Lollipop) for testing.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>