|
39 | 39 | Color="{Binding Source={x:Reference photosTab},Path=TextColor}" |
40 | 40 | FontFamily="PhotoGallery"/> |
41 | 41 | </tabView:SfTabItem.ImageSource> |
42 | | - <listView:SfListView x:Name="listViewPhotos" ItemsSource="{Binding Photos}" ItemSize="200" ItemSpacing="10" |
43 | | - ItemTapped="OnPhotosItemTapped"> |
| 42 | + <listView:SfListView x:Name="listViewPhotos" ItemsSource="{Binding Photos}" SelectionMode="None" |
| 43 | + ItemSize="90" ItemSpacing="5" ItemTapped="OnPhotosItemTapped"> |
44 | 44 |
|
45 | 45 | <listView:SfListView.ItemsLayout> |
46 | | - <listView:GridLayout SpanCount="3" /> |
| 46 | + <listView:GridLayout SpanCount="4" /> |
47 | 47 | </listView:SfListView.ItemsLayout> |
48 | 48 | <listView:SfListView.ItemTemplate> |
49 | 49 | <DataTemplate> |
50 | | - <Image Source="{Binding Image}" Aspect="AspectFill"/> |
| 50 | + <Image Source="{Binding Image}" Aspect="AspectFill" HeightRequest="88" WidthRequest="88"/> |
51 | 51 | </DataTemplate> |
52 | 52 | </listView:SfListView.ItemTemplate> |
53 | 53 | </listView:SfListView> |
|
60 | 60 | FontFamily="PhotoGallery"/> |
61 | 61 | </tabView:SfTabItem.ImageSource> |
62 | 62 |
|
63 | | - <listView:SfListView ItemsSource="{Binding Albums}" ItemSize="200" ItemSpacing="10" |
64 | | - ItemTapped="OnAlbumsItemTapped"> |
| 63 | + <listView:SfListView ItemsSource="{Binding Albums}" ItemSize="230" |
| 64 | + ItemTapped="OnAlbumsItemTapped" SelectionMode="None"> |
65 | 65 | <listView:SfListView.ItemsLayout> |
66 | | - <listView:GridLayout SpanCount="3" /> |
| 66 | + <listView:GridLayout SpanCount="2" /> |
67 | 67 | </listView:SfListView.ItemsLayout> |
68 | 68 | <listView:SfListView.ItemTemplate> |
69 | 69 | <DataTemplate> |
70 | 70 | <Grid RowDefinitions="*,20,20"> |
71 | | - <Image Source="{Binding CoverImage}" Aspect="AspectFill" /> |
72 | | - <Label Text="{Binding AlbumName}" FontSize="15" Grid.Row="1"/> |
73 | | - <Label Text="{Binding Count}" FontSize="12" Grid.Row="2" /> |
| 71 | + <Image Source="{Binding CoverImage}" Aspect="Fill" HeightRequest="180" WidthRequest="180"/> |
| 72 | + <Label Text="{Binding AlbumName}" FontSize="15" Margin="10,0,0,0" Grid.Row="1"/> |
| 73 | + <Label Text="{Binding Count, StringFormat='{0} items'}" Margin="10,0,0,0" FontSize="12" Grid.Row="2" /> |
74 | 74 | </Grid> |
75 | 75 | </DataTemplate> |
76 | 76 | </listView:SfListView.ItemTemplate> |
|
83 | 83 | Color="{Binding Source={x:Reference favoritesTab},Path=TextColor}" |
84 | 84 | FontFamily="PhotoGallery"/> |
85 | 85 | </tabView:SfTabItem.ImageSource> |
86 | | - <listView:SfListView ItemsSource="{Binding Favorites, Mode=TwoWay}" ItemSize="300" ItemSpacing="10" |
87 | | - ItemTapped="OnPhotosItemTapped"> |
88 | | - <listView:SfListView.ItemsLayout> |
89 | | - <listView:GridLayout SpanCount="2" /> |
90 | | - </listView:SfListView.ItemsLayout> |
| 86 | + <listView:SfListView x:Name="listViewFavorites" ItemsSource="{Binding Favorites, Mode=TwoWay}" ItemSpacing="10" |
| 87 | + SelectionMode="None" AutoFitMode="Height" ItemTapped="OnPhotosItemTapped"> |
91 | 88 | <listView:SfListView.ItemTemplate> |
92 | 89 | <DataTemplate> |
93 | | - <Grid RowDefinitions="20,*"> |
94 | | - <Label Text="{Binding DateTime, StringFormat='{0:ddd, dd MMM, yyyy}'}" /> |
| 90 | + <Grid RowDefinitions="30,*"> |
| 91 | + <Label Text="{Binding DateTime, StringFormat='{0:ddd, dd MMM, yyyy}'}" |
| 92 | + FontAttributes="Bold" FontSize="15" /> |
95 | 93 | <Image Source="{Binding Image}" Aspect="AspectFill" Grid.Row="1"/> |
96 | 94 | </Grid> |
97 | 95 | </DataTemplate> |
|
0 commit comments