From dc91624597a312098185cddad55706ced0a306ea Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 20 Jun 2019 16:02:39 -0400 Subject: [PATCH] some listview styling for iOS --- .../CipherViewCell/CipherViewCell.xaml | 2 +- .../Settings/SettingsPage/SettingsPage.xaml | 13 +++-- .../Vault/GroupingsPage/GroupingsPage.xaml | 17 +++--- .../Vault/GroupingsPage/GroupingsPage.xaml.cs | 8 +++ src/App/Styles/Android.xaml | 19 +++++++ src/App/Styles/Base.xaml | 11 ++-- src/App/Styles/iOS.xaml | 55 +++++++++++++++++++ 7 files changed, 107 insertions(+), 18 deletions(-) diff --git a/src/App/Controls/CipherViewCell/CipherViewCell.xaml b/src/App/Controls/CipherViewCell/CipherViewCell.xaml index 696223100..9c5d7f51d 100644 --- a/src/App/Controls/CipherViewCell/CipherViewCell.xaml +++ b/src/App/Controls/CipherViewCell/CipherViewCell.xaml @@ -76,7 +76,7 @@ IsVisible="{Binding Cipher.HasAttachments, Mode=OneWay}" /> - - - + + + + diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml index f06cd0f69..39e83152b 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml @@ -95,9 +95,10 @@ IsVisible="{Binding ShowList}" ItemsSource="{Binding GroupedItems}" VerticalOptions="FillAndExpand" - HasUnevenRows="true" + HasUnevenRows="True" + RowHeight="-1" RefreshCommand="{Binding RefreshCommand}" - IsPullToRefreshEnabled="true" + IsPullToRefreshEnabled="True" IsRefreshing="{Binding Refreshing}" ItemTemplate="{StaticResource listItemDataTemplateSelector}" IsGroupingEnabled="True" @@ -109,11 +110,12 @@ - - - - + + + + + diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs index 31ea51c53..4d37a34a1 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml.cs @@ -245,5 +245,13 @@ namespace Bit.App.Pages await Navigation.PushModalAsync(new NavigationPage(page)); } } + + private void HeaderBindingContextChanged(object sender, EventArgs e) + { + if(Device.RuntimePlatform == Device.iOS && sender is ViewCell cell) + { + // cell.Height = 50; + } + } } } diff --git a/src/App/Styles/Android.xaml b/src/App/Styles/Android.xaml index 2fef13d8e..c947d54ce 100644 --- a/src/App/Styles/Android.xaml +++ b/src/App/Styles/Android.xaml @@ -52,6 +52,13 @@ + + + diff --git a/src/App/Styles/Base.xaml b/src/App/Styles/Base.xaml index 785eacc29..67ba85dc6 100644 --- a/src/App/Styles/Base.xaml +++ b/src/App/Styles/Base.xaml @@ -141,8 +141,6 @@ @@ -181,11 +179,14 @@ Value="2, 5, 0, 5" /> + + + + + + + + + + + + +