From 5485bb574e70b9ae6b1ead0725912be60bb609ff Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 10 Jun 2019 10:02:09 -0400 Subject: [PATCH] font sizes for cipher cell on android --- src/Android/Renderers/CipherViewCellRenderer.cs | 12 +++++++++++- src/Android/Resources/layout/CipherViewCell.axml | 6 +++--- src/App/Styles/Base.xaml | 4 +++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/Android/Renderers/CipherViewCellRenderer.cs b/src/Android/Renderers/CipherViewCellRenderer.cs index 7ed6f9f91..93d9a507f 100644 --- a/src/Android/Renderers/CipherViewCellRenderer.cs +++ b/src/Android/Renderers/CipherViewCellRenderer.cs @@ -117,6 +117,16 @@ namespace Bit.Droid.Renderers AttachmentsIcon.Typeface = _faTypeface; MoreButton.Typeface = _miTypeface; + var small = (float)Device.GetNamedSize(NamedSize.Small, typeof(Label)); + Icon.SetTextSize(ComplexUnitType.Sp, 22.0952380952381F); + Name.SetTextSize(ComplexUnitType.Sp, (float)Device.GetNamedSize(NamedSize.Medium, typeof(Label))); + SubTitle.SetTextSize(ComplexUnitType.Sp, small); + SharedIcon.SetTextSize(ComplexUnitType.Sp, small); + AttachmentsIcon.SetTextSize(ComplexUnitType.Sp, small); + MoreButton.SetTextSize(ComplexUnitType.Sp, 25); + MoreButton.SetPadding(0, 0, 0, 0); + MoreButton.SetBackgroundColor(Xamarin.Forms.Color.Black.ToAndroid()); + AddView(view); } @@ -144,7 +154,7 @@ namespace Bit.Droid.Renderers } else { - SubTitle.Visibility = ViewStates.Gone; + SubTitle.Visibility = ViewStates.Invisible; } SharedIcon.Visibility = cipher.Shared ? ViewStates.Visible : ViewStates.Gone; AttachmentsIcon.Visibility = cipher.HasAttachments ? ViewStates.Visible : ViewStates.Gone; diff --git a/src/Android/Resources/layout/CipherViewCell.axml b/src/Android/Resources/layout/CipherViewCell.axml index 2304eb9db..f387217ae 100644 --- a/src/Android/Resources/layout/CipherViewCell.axml +++ b/src/Android/Resources/layout/CipherViewCell.axml @@ -15,8 +15,8 @@ android:layout_gravity="center_vertical" /> @@ -62,7 +62,7 @@