padding on cipher list item

This commit is contained in:
Kyle Spearrin 2019-06-10 10:37:47 -04:00
parent 5485bb574e
commit 31d39e0626
3 changed files with 30 additions and 18 deletions

View file

@ -124,8 +124,6 @@ namespace Bit.Droid.Renderers
SharedIcon.SetTextSize(ComplexUnitType.Sp, small); SharedIcon.SetTextSize(ComplexUnitType.Sp, small);
AttachmentsIcon.SetTextSize(ComplexUnitType.Sp, small); AttachmentsIcon.SetTextSize(ComplexUnitType.Sp, small);
MoreButton.SetTextSize(ComplexUnitType.Sp, 25); MoreButton.SetTextSize(ComplexUnitType.Sp, 25);
MoreButton.SetPadding(0, 0, 0, 0);
MoreButton.SetBackgroundColor(Xamarin.Forms.Color.Black.ToAndroid());
AddView(view); AddView(view);
} }

View file

@ -6,11 +6,20 @@
android:gravity="center_vertical"> android:gravity="center_vertical">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:paddingLeft="2dp">
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingHorizontal="7dp"
android:paddingVertical="5dp"
android:gravity="center">
<bit.droid.renderers.IconImageView <bit.droid.renderers.IconImageView
android:id="@+id/CipherCellIconImage" android:id="@+id/CipherCellIconImage"
android:layout_width="24dp" android:layout_width="26dp"
android:layout_height="24dp" android:layout_height="26dp"
android:gravity="center" android:gravity="center"
android:layout_gravity="center_vertical" /> android:layout_gravity="center_vertical" />
<TextView <TextView
@ -20,13 +29,15 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:gravity="center" android:gravity="center"
android:text="[X]" /> android:text="[X]" />
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/CipherCellContent" android:id="@+id/CipherCellContent"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:layout_gravity="center_vertical"> android:layout_gravity="center_vertical"
android:paddingVertical="5dp">
<LinearLayout <LinearLayout
android:id="@+id/CipherCellContentTop" android:id="@+id/CipherCellContentTop"
android:orientation="horizontal" android:orientation="horizontal"
@ -43,12 +54,14 @@
android:id="@+id/CipherCellSharedIcon" android:id="@+id/CipherCellSharedIcon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:singleLine="true" android:singleLine="true"
android:text="&#xf1e0;" /> android:text="&#xf1e0;" />
<TextView <TextView
android:id="@+id/CipherCellAttachmentsIcon" android:id="@+id/CipherCellAttachmentsIcon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:singleLine="true" android:singleLine="true"
android:text="&#xf0c6;" /> android:text="&#xf0c6;" />
</LinearLayout> </LinearLayout>
@ -65,6 +78,7 @@
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="&#xe5d4;" android:text="&#xe5d4;"
android:gravity="center"/> android:gravity="center"
android:padding="0dp" />
</LinearLayout> </LinearLayout>
</RelativeLayout> </RelativeLayout>

View file

@ -178,7 +178,7 @@
<Style TargetType="Grid" <Style TargetType="Grid"
Class="list-row"> Class="list-row">
<Setter Property="Padding" <Setter Property="Padding"
Value="2, 5" /> Value="2, 5, 0, 5" />
</Style> </Style>
<Style TargetType="BoxView" <Style TargetType="BoxView"
Class="list-section-separator"> Class="list-section-separator">