Fix and standardize the material cards all around the app.

This commit is contained in:
Severiano Jaramillo 2019-03-20 21:10:32 -06:00
parent 8e752087e6
commit 6f132c049f
4 changed files with 13 additions and 13 deletions

View file

@ -15,7 +15,7 @@
android:layout_marginTop="@dimen/activity_vertical_margin" android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
app:cardElevation="4dp"> app:cardElevation="@dimen/card_elevation">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -168,7 +168,7 @@
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_weight="2" android:layout_weight="2"
app:cardElevation="4dp"> app:cardElevation="@dimen/card_elevation">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -23,7 +23,7 @@
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
app:contentPadding="@dimen/activity_vertical_margin" app:contentPadding="@dimen/activity_vertical_margin"
app:cardElevation="2dp" app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_radius"> app:cardCornerRadius="@dimen/card_radius">
<LinearLayout <LinearLayout
@ -82,7 +82,7 @@
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
app:contentPadding="@dimen/activity_vertical_margin" app:contentPadding="@dimen/activity_vertical_margin"
app:cardElevation="2dp" app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_radius"> app:cardCornerRadius="@dimen/card_radius">
<LinearLayout <LinearLayout
@ -127,7 +127,7 @@
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
app:contentPadding="@dimen/activity_vertical_margin" app:contentPadding="@dimen/activity_vertical_margin"
app:cardElevation="2dp" app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_radius"> app:cardCornerRadius="@dimen/card_radius">
<LinearLayout <LinearLayout
@ -171,7 +171,7 @@
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
app:contentPadding="@dimen/activity_vertical_margin" app:contentPadding="@dimen/activity_vertical_margin"
app:cardElevation="2dp" app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_radius"> app:cardCornerRadius="@dimen/card_radius">
<LinearLayout <LinearLayout
@ -216,7 +216,7 @@
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
app:contentPadding="@dimen/activity_vertical_margin" app:contentPadding="@dimen/activity_vertical_margin"
app:cardElevation="2dp" app:cardElevation="@dimen/card_elevation"
app:cardCornerRadius="@dimen/card_radius"> app:cardCornerRadius="@dimen/card_radius">
<LinearLayout <LinearLayout

View file

@ -1,14 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
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_gravity="center" android:layout_gravity="center"
card_view:cardElevation="4dp" app:cardElevation="@dimen/card_elevation"
card_view:cardCornerRadius="@dimen/card_radius" app:cardCornerRadius="@dimen/card_radius"
android:layout_margin="@dimen/card_margin"> android:layout_margin="@dimen/card_margin">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
@ -114,9 +113,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:visibility="gone" android:visibility="gone"
card_view:layout_constraintTop_toBottomOf="@id/vSeparator" app:layout_constraintTop_toBottomOf="@id/vSeparator"
card_view:layout_constraintStart_toEndOf="@id/firstVerticalGuideline" app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
card_view:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline"> app:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline">
<TextView <TextView
android:id="@+id/tvMemo" android:id="@+id/tvMemo"

View file

@ -19,6 +19,7 @@
<dimen name="logo_size">180dp</dimen> <dimen name="logo_size">180dp</dimen>
<!-- Transactions --> <!-- Transactions -->
<dimen name="card_elevation">6dp</dimen>
<dimen name="card_margin">4dp</dimen> <dimen name="card_margin">4dp</dimen>
<dimen name="card_radius">4dp</dimen> <dimen name="card_radius">4dp</dimen>