Fix cardview margin

This commit is contained in:
J-Jamet
2020-03-18 09:42:36 +01:00
parent c5aef6b561
commit 385b701b38
4 changed files with 25 additions and 28 deletions

View File

@@ -27,7 +27,10 @@
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/default_margin"> android:layout_marginTop="@dimen/default_margin"
android:layout_marginBottom="@dimen/default_margin"
android:layout_marginStart="@dimen/card_view_margin"
android:layout_marginEnd="@dimen/card_view_margin">
<LinearLayout <LinearLayout
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -182,10 +185,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone" android:visibility="gone"
android:layout_marginStart="@dimen/default_margin" android:layout_marginStart="@dimen/card_view_margin"
android:layout_marginEnd="@dimen/default_margin" android:layout_marginEnd="@dimen/card_view_margin"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_marginBottom="@dimen/default_margin"> android:layout_marginBottom="@dimen/default_margin">
<LinearLayout <LinearLayout
android:id="@+id/extra_strings" android:id="@+id/extra_strings"
@@ -200,10 +201,8 @@
android:id="@+id/entry_attachments_container" android:id="@+id/entry_attachments_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/default_margin" android:layout_marginStart="@dimen/card_view_margin"
android:layout_marginEnd="@dimen/default_margin" android:layout_marginEnd="@dimen/card_view_margin"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_marginBottom="@dimen/default_margin"> android:layout_marginBottom="@dimen/default_margin">
<LinearLayout <LinearLayout
android:layout_height="wrap_content" android:layout_height="wrap_content"
@@ -230,11 +229,9 @@
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/default_margin" android:layout_marginStart="@dimen/card_view_margin"
android:layout_marginEnd="@dimen/default_margin" android:layout_marginEnd="@dimen/card_view_margin"
android:layout_marginBottom="@dimen/default_margin" android:layout_marginBottom="@dimen/default_margin">
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin">
<LinearLayout <LinearLayout
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -313,10 +310,8 @@
android:id="@+id/entry_history_container" android:id="@+id/entry_history_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/default_margin" android:layout_marginStart="@dimen/card_view_margin"
android:layout_marginEnd="@dimen/default_margin" android:layout_marginEnd="@dimen/card_view_margin"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_marginBottom="@dimen/default_margin"> android:layout_marginBottom="@dimen/default_margin">
<LinearLayout <LinearLayout
android:layout_height="wrap_content" android:layout_height="wrap_content"
@@ -401,10 +396,8 @@
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/default_margin" android:layout_marginStart="@dimen/card_view_margin"
android:layout_marginEnd="@dimen/default_margin" android:layout_marginEnd="@dimen/card_view_margin"
android:layout_marginLeft="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin"
android:layout_marginBottom="@dimen/default_margin"> android:layout_marginBottom="@dimen/default_margin">
<LinearLayout <LinearLayout
android:layout_height="wrap_content" android:layout_height="wrap_content"

View File

@@ -29,7 +29,10 @@
android:id="@+id/entry_edit_container" android:id="@+id/entry_edit_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/default_margin" android:layout_marginTop="@dimen/default_margin"
android:layout_marginBottom="@dimen/default_margin"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<LinearLayout <LinearLayout
android:orientation="vertical" android:orientation="vertical"
@@ -143,7 +146,7 @@
android:hint="@string/entry_url"/> android:hint="@string/entry_url"/>
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
<!-- Comment --> <!-- Notes -->
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">

View File

@@ -23,10 +23,10 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/default_margin" android:layout_marginTop="0dp"
android:layout_marginLeft="@dimen/default_margin" android:layout_marginBottom="@dimen/default_margin"
android:layout_marginRight="@dimen/default_margin" android:layout_marginStart="0dp"
android:layout_marginBottom="@dimen/default_margin"> android:layout_marginEnd="0dp">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -22,6 +22,7 @@
<dimen name="image_button_margin">8dp</dimen> <dimen name="image_button_margin">8dp</dimen>
<dimen name="image_list_margin">12dp</dimen> <dimen name="image_list_margin">12dp</dimen>
<dimen name="button_margin">6dp</dimen> <dimen name="button_margin">6dp</dimen>
<dimen name="card_view_margin">12dp</dimen>
<dimen name="icon_size">32dp</dimen> <dimen name="icon_size">32dp</dimen>