aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/res/layout/kau_iitem_card.xml
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-29 16:16:15 -0700
committerAllan Wang <me@allanwang.ca>2017-06-29 16:16:15 -0700
commitbfb16f2d56dd4da8d302a924efb7ea119582fde0 (patch)
tree2fd6ae1f5ffe305ce761ad88609692c163e6ebb3 /library/src/main/res/layout/kau_iitem_card.xml
parent8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c (diff)
downloadkau-bfb16f2d56dd4da8d302a924efb7ea119582fde0.tar.gz
kau-bfb16f2d56dd4da8d302a924efb7ea119582fde0.tar.bz2
kau-bfb16f2d56dd4da8d302a924efb7ea119582fde0.zip
Finalize about activity
Diffstat (limited to 'library/src/main/res/layout/kau_iitem_card.xml')
-rw-r--r--library/src/main/res/layout/kau_iitem_card.xml25
1 files changed, 14 insertions, 11 deletions
diff --git a/library/src/main/res/layout/kau_iitem_card.xml b/library/src/main/res/layout/kau_iitem_card.xml
index 4967a2e..621da2e 100644
--- a/library/src/main/res/layout/kau_iitem_card.xml
+++ b/library/src/main/res/layout/kau_iitem_card.xml
@@ -3,22 +3,21 @@
<!--
Generic card with an imageview, title, description, and button
-->
-
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/kau_card_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/kau_padding_normal"
- android:foreground="?android:selectableItemBackground"
- android:minHeight="?android:listPreferredItemHeight"
- android:paddingBottom="@dimen/kau_padding_normal"
- android:paddingEnd="@dimen/kau_padding_normal"
- android:paddingTop="@dimen/kau_padding_normal">
+ android:background="?android:selectableItemBackground"
+ android:minHeight="?android:listPreferredItemHeight">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_height="wrap_content"
+ android:paddingBottom="@dimen/kau_padding_normal"
+ android:paddingEnd="@dimen/kau_padding_normal"
+ android:paddingTop="@dimen/kau_padding_normal">
<ImageView
android:id="@+id/kau_card_image"
@@ -27,11 +26,12 @@
android:layout_marginEnd="@dimen/kau_avatar_margin"
android:layout_marginStart="@dimen/kau_avatar_margin"
android:padding="@dimen/kau_avatar_padding"
- android:visibility="gone"
android:scaleType="fitCenter"
+ android:visibility="gone"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
+
<TextView
android:id="@+id/kau_card_title"
android:layout_width="0dp"
@@ -39,7 +39,8 @@
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/kau_card_image"
- app:layout_constraintTop_toTopOf="parent" />
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_goneMarginStart="@dimen/kau_padding_normal" />
<TextView
android:id="@+id/kau_card_description"
@@ -48,7 +49,8 @@
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/kau_card_image"
- app:layout_constraintTop_toBottomOf="@id/kau_card_title" />
+ app:layout_constraintTop_toBottomOf="@id/kau_card_title"
+ app:layout_goneMarginStart="@dimen/kau_padding_normal" />
<LinearLayout
android:id="@+id/kau_card_bottom_row"
@@ -59,7 +61,8 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/kau_card_image"
- app:layout_constraintTop_toBottomOf="@id/kau_card_description">
+ app:layout_constraintTop_toBottomOf="@id/kau_card_description"
+ app:layout_goneMarginStart="@dimen/kau_padding_normal">
<Button
android:id="@+id/kau_card_button"