Fix and standardize the material cards all around the app.
This commit is contained in:
parent
8e752087e6
commit
6f132c049f
4 changed files with 13 additions and 13 deletions
|
@ -15,7 +15,7 @@
|
|||
android:layout_marginTop="@dimen/activity_vertical_margin"
|
||||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
app:cardElevation="4dp">
|
||||
app:cardElevation="@dimen/card_elevation">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -168,7 +168,7 @@
|
|||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
android:layout_weight="2"
|
||||
app:cardElevation="4dp">
|
||||
app:cardElevation="@dimen/card_elevation">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
app:contentPadding="@dimen/activity_vertical_margin"
|
||||
app:cardElevation="2dp"
|
||||
app:cardElevation="@dimen/card_elevation"
|
||||
app:cardCornerRadius="@dimen/card_radius">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -82,7 +82,7 @@
|
|||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
app:contentPadding="@dimen/activity_vertical_margin"
|
||||
app:cardElevation="2dp"
|
||||
app:cardElevation="@dimen/card_elevation"
|
||||
app:cardCornerRadius="@dimen/card_radius">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -127,7 +127,7 @@
|
|||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
app:contentPadding="@dimen/activity_vertical_margin"
|
||||
app:cardElevation="2dp"
|
||||
app:cardElevation="@dimen/card_elevation"
|
||||
app:cardCornerRadius="@dimen/card_radius">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -171,7 +171,7 @@
|
|||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
app:contentPadding="@dimen/activity_vertical_margin"
|
||||
app:cardElevation="2dp"
|
||||
app:cardElevation="@dimen/card_elevation"
|
||||
app:cardCornerRadius="@dimen/card_radius">
|
||||
|
||||
<LinearLayout
|
||||
|
@ -216,7 +216,7 @@
|
|||
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
||||
app:contentPadding="@dimen/activity_vertical_margin"
|
||||
app:cardElevation="2dp"
|
||||
app:cardElevation="@dimen/card_elevation"
|
||||
app:cardCornerRadius="@dimen/card_radius">
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView
|
||||
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
card_view:cardElevation="4dp"
|
||||
card_view:cardCornerRadius="@dimen/card_radius"
|
||||
app:cardElevation="@dimen/card_elevation"
|
||||
app:cardCornerRadius="@dimen/card_radius"
|
||||
android:layout_margin="@dimen/card_margin">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
@ -114,9 +113,9 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
card_view:layout_constraintTop_toBottomOf="@id/vSeparator"
|
||||
card_view:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
|
||||
card_view:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline">
|
||||
app:layout_constraintTop_toBottomOf="@id/vSeparator"
|
||||
app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
|
||||
app:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMemo"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
<dimen name="logo_size">180dp</dimen>
|
||||
|
||||
<!-- Transactions -->
|
||||
<dimen name="card_elevation">6dp</dimen>
|
||||
<dimen name="card_margin">4dp</dimen>
|
||||
<dimen name="card_radius">4dp</dimen>
|
||||
|
||||
|
|
Loading…
Reference in a new issue