Skip to content

Instantly share code, notes, and snippets.

@sthewissen
Created June 20, 2017 15:52
Show Gist options
  • Save sthewissen/93708d73f32e856b824b97bccaedeb90 to your computer and use it in GitHub Desktop.
Save sthewissen/93708d73f32e856b824b97bccaedeb90 to your computer and use it in GitHub Desktop.
The look and feel for the YouTube sample
<ListView ItemsSource="{Binding Items}" HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Vertical" Padding="15,20,15,20">
<Image Source="{Binding HighThumbnailUrl}" Aspect="AspectFill" />
<Label Text="{Binding Title}" TextColor="Black" Margin="0,5,0,0" FontSize="15"/>
<Label Text="{Binding ChannelTitle}" Margin="0,-5,0,0" TextColor="#767676" FontSize="13"/>
<StackLayout Orientation="Horizontal">
<Label Text="{Binding ViewCount, StringFormat='{0:n0} views'}" TextColor="#767676" FontSize="13"/>
<Label Text="{Binding PublishedAtHumanized}" TextColor="#767676" FontSize="13"/>
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment