From 55d8fa198a64be2a7e9643bb809b2cf65fed4409 Mon Sep 17 00:00:00 2001 From: Iason Karakostas <iason1907@gmail.com> Date: Sun, 13 Nov 2016 19:53:33 +0200 Subject: [PATCH] color and design changes recent fragments --- app/src/main/res/layout/fragment_recent.xml | 2 +- .../main/res/layout/fragment_recent_row.xml | 27 +++++++++++++------ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/app/src/main/res/layout/fragment_recent.xml b/app/src/main/res/layout/fragment_recent.xml index 41ac000f..9e185aab 100644 --- a/app/src/main/res/layout/fragment_recent.xml +++ b/app/src/main/res/layout/fragment_recent.xml @@ -20,7 +20,7 @@ android:paddingTop="4dp" android:paddingBottom="4dp" android:clipToPadding="false" - android:background="@color/background" + android:background="@color/white" app:layoutManager="LinearLayoutManager" tools:context="gr.thmmy.mthmmy.sections.recent.RecentFragment" tools:listitem="@layout/fragment_recent_row" /> diff --git a/app/src/main/res/layout/fragment_recent_row.xml b/app/src/main/res/layout/fragment_recent_row.xml index 3d9e0420..bfc62f09 100644 --- a/app/src/main/res/layout/fragment_recent_row.xml +++ b/app/src/main/res/layout/fragment_recent_row.xml @@ -14,10 +14,11 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:foreground="?android:attr/selectableItemBackground" - card_view:cardPreventCornerOverlap="false" - card_view:cardUseCompatPadding="true" - card_view:cardCornerRadius="4dp" - card_view:cardBackgroundColor="@color/colorPrimary"> + card_view:cardCornerRadius="0dp" + card_view:cardBackgroundColor="@color/white" + card_view:cardElevation="2dp" + card_view:cardPreventCornerOverlap="true" + card_view:cardUseCompatPadding="true"> <RelativeLayout android:layout_width="wrap_content" @@ -36,16 +37,24 @@ android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:textAppearance="?attr/textAppearanceListItem" - android:textColor="@color/myColor1" /> + android:textColor="@color/md_grey_850" /> + <Space + android:id="@+id/spacer" + android:layout_below="@+id/title" + android:layout_width="match_parent" + android:layout_height="20dp" + android:layout_alignParentBottom="@+id/title" + android:layout_toRightOf="@+id/dateTime" + android:layout_toEndOf="@+id/dateTime"/> <TextView android:id="@+id/dateTime" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_below="@+id/title" + android:layout_below="@+id/spacer" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" - android:textColor="@color/myColor2"/> + android:textColor="@color/md_grey_500"/> <TextView android:id="@+id/lastUser" @@ -56,7 +65,9 @@ android:layout_alignBottom="@+id/dateTime" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" - android:textColor="@color/myColor2"/> + android:textColor="@color/md_grey_500"/> + + </RelativeLayout>