mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
padding on cipher list item
This commit is contained in:
parent
5485bb574e
commit
31d39e0626
3 changed files with 30 additions and 18 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,27 +6,38 @@
|
||||||
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"
|
||||||
<bit.droid.renderers.IconImageView
|
android:paddingLeft="2dp">
|
||||||
android:id="@+id/CipherCellIconImage"
|
<LinearLayout
|
||||||
android:layout_width="24dp"
|
android:orientation="horizontal"
|
||||||
android:layout_height="24dp"
|
android:layout_width="wrap_content"
|
||||||
android:gravity="center"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical" />
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/CipherCellIcon"
|
|
||||||
android:layout_width="26dp"
|
|
||||||
android:layout_height="26dp"
|
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:gravity="center"
|
android:paddingHorizontal="7dp"
|
||||||
android:text="[X]" />
|
android:paddingVertical="5dp"
|
||||||
|
android:gravity="center">
|
||||||
|
<bit.droid.renderers.IconImageView
|
||||||
|
android:id="@+id/CipherCellIconImage"
|
||||||
|
android:layout_width="26dp"
|
||||||
|
android:layout_height="26dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_gravity="center_vertical" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/CipherCellIcon"
|
||||||
|
android:layout_width="26dp"
|
||||||
|
android:layout_height="26dp"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:gravity="center"
|
||||||
|
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="" />
|
android:text="" />
|
||||||
<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="" />
|
android:text="" />
|
||||||
</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=""
|
android:text=""
|
||||||
android:gravity="center"/>
|
android:gravity="center"
|
||||||
|
android:padding="0dp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue