diff options
author | Stefan Niedermann <info@niedermann.it> | 2024-01-15 20:32:25 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2024-01-15 20:32:25 +0300 |
commit | 5efb0875514efa77744a38a7ddc243f8375b5740 (patch) | |
tree | 4d80de3c3dd75375c0902fb96f78cb5782783959 /app/src/main/res/layout/view_card_due_date.xml | |
parent | c97057858e03f0cfc0318a0acbc5dad94fabe7e7 (diff) |
feat(done): Align styling with Deck server app
Refs: #1556
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/res/layout/view_card_due_date.xml')
-rw-r--r-- | app/src/main/res/layout/view_card_due_date.xml | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/app/src/main/res/layout/view_card_due_date.xml b/app/src/main/res/layout/view_card_due_date.xml index dc183fea7..77398f5b1 100644 --- a/app/src/main/res/layout/view_card_due_date.xml +++ b/app/src/main/res/layout/view_card_due_date.xml @@ -9,25 +9,40 @@ android:id="@+id/doneCheck" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginVertical="@dimen/spacer_1hx" android:layout_marginStart="@dimen/spacer_1qx" android:layout_marginEnd="0dp" + android:layout_marginBottom="@dimen/spacer_1hx" android:contentDescription="@null" android:padding="@dimen/spacer_11qx" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:srcCompat="@drawable/ic_check_white_24dp" - app:tint="?attr/colorOnSurface" /> + app:tint="?attr/colorOnSurface" + tools:visibility="gone" /> <TextView android:id="@+id/doneDate" + style="?attr/textAppearanceBody1" android:layout_width="0dp" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/doneCheck" app:layout_constraintEnd_toStartOf="@id/clearDone" app:layout_constraintStart_toEndOf="@id/doneCheck" app:layout_constraintTop_toTopOf="@id/doneCheck" - tools:text="@tools:sample/date/ddmmyy" /> + tools:text="@tools:sample/date/ddmmyy" + tools:visibility="gone" /> + + <TextView + android:id="@+id/done_due_date" + style="?attr/textAppearanceBody1" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/spacer_1x" + app:layout_constraintEnd_toStartOf="@id/clearDone" + app:layout_constraintStart_toEndOf="@id/doneCheck" + app:layout_constraintTop_toBottomOf="@id/doneDate" + tools:text="@tools:sample/date/ddmmyy" + tools:visibility="gone" /> <ImageView android:id="@+id/clearDone" @@ -41,16 +56,8 @@ app:layout_constraintBottom_toBottomOf="@id/doneDate" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@id/doneDate" - app:srcCompat="@drawable/ic_close_circle_grey600" /> - - <TextView - android:id="@+id/done_due_date" - android:layout_width="0dp" - android:layout_height="wrap_content" - app:layout_constraintEnd_toStartOf="@id/clearDone" - app:layout_constraintStart_toEndOf="@id/doneCheck" - app:layout_constraintTop_toBottomOf="@id/doneDate" - tools:text="@tools:sample/date/ddmmyy" /> + app:srcCompat="@drawable/ic_close_circle_grey600" + tools:visibility="gone" /> <com.google.android.material.textfield.TextInputLayout android:id="@+id/dueDateDateWrapper" |