From 7b51de4f264f075d8c947ab72f03203a4df6e32b Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Fri, 1 Jun 2018 19:46:47 +0200 Subject: [PATCH] Update margins for old versions --- app/src/main/res/layout/activity_currency_details.xml | 2 ++ app/src/main/res/layout/cardview_currency.xml | 2 ++ app/src/main/res/layout/cardview_watchlist.xml | 3 +++ app/src/main/res/layout/custom_currency_row.xml | 2 ++ app/src/main/res/layout/fragment_summary_homeactivity.xml | 5 ++++- app/src/main/res/layout/fragment_watchlist_homeactivity.xml | 2 ++ app/src/main/res/layout/summary_drawer_header.xml | 1 + 7 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/activity_currency_details.xml b/app/src/main/res/layout/activity_currency_details.xml index 3dc73a7..786b87a 100644 --- a/app/src/main/res/layout/activity_currency_details.xml +++ b/app/src/main/res/layout/activity_currency_details.xml @@ -18,6 +18,8 @@ android:layout_height="wrap_content" android:layout_marginEnd="0dp" android:layout_marginStart="0dp" + android:layout_marginLeft="0dp" + android:layout_marginRight="0dp" android:background="?android:attr/windowBackground" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" diff --git a/app/src/main/res/layout/cardview_currency.xml b/app/src/main/res/layout/cardview_currency.xml index 380ac72..6ff7032 100644 --- a/app/src/main/res/layout/cardview_currency.xml +++ b/app/src/main/res/layout/cardview_currency.xml @@ -149,6 +149,8 @@ android:layout_width="match_parent" android:layout_height="@dimen/separationLineSize" android:layout_gravity="center_vertical" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="@color/separationColor" /> diff --git a/app/src/main/res/layout/cardview_watchlist.xml b/app/src/main/res/layout/cardview_watchlist.xml index a1cf6a5..03bbb50 100644 --- a/app/src/main/res/layout/cardview_watchlist.xml +++ b/app/src/main/res/layout/cardview_watchlist.xml @@ -48,6 +48,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2dp" + android:layout_marginLeft="2dp" android:gravity="left" android:textColor="@color/secondaryTextViewColor" android:textSize="@dimen/cardViewSecondaryText" /> @@ -140,6 +141,8 @@ android:layout_width="match_parent" android:layout_height="@dimen/separationLineSize" android:layout_gravity="center_vertical" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="@color/separationColor" /> diff --git a/app/src/main/res/layout/custom_currency_row.xml b/app/src/main/res/layout/custom_currency_row.xml index 93ac8d5..f38db39 100644 --- a/app/src/main/res/layout/custom_currency_row.xml +++ b/app/src/main/res/layout/custom_currency_row.xml @@ -18,6 +18,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" + android:layout_marginStart="10dp" android:gravity="center_vertical|center_horizontal" android:text="" android:textColor="@color/mainTextViewColor" @@ -28,6 +29,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" + android:layout_marginStart="10dp" android:gravity="center_vertical|center_horizontal" android:text="" android:textColor="@color/secondaryTextViewColor" diff --git a/app/src/main/res/layout/fragment_summary_homeactivity.xml b/app/src/main/res/layout/fragment_summary_homeactivity.xml index 6166a67..8f4a3ff 100644 --- a/app/src/main/res/layout/fragment_summary_homeactivity.xml +++ b/app/src/main/res/layout/fragment_summary_homeactivity.xml @@ -32,7 +32,8 @@ android:layout_height="?attr/actionBarSize" app:layout_collapseMode="pin" app:popupTheme="@style/AppTheme.PopupOverlay" - android:layout_marginStart="-30dp"> + android:layout_marginStart="-30dp" + android:layout_marginRight="-30dp"> @@ -97,6 +98,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/button_dashed_background" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginBottom="10dp" diff --git a/app/src/main/res/layout/fragment_watchlist_homeactivity.xml b/app/src/main/res/layout/fragment_watchlist_homeactivity.xml index 77cf0bc..7ff6993 100644 --- a/app/src/main/res/layout/fragment_watchlist_homeactivity.xml +++ b/app/src/main/res/layout/fragment_watchlist_homeactivity.xml @@ -101,6 +101,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/button_dashed_background" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginBottom="10dp" diff --git a/app/src/main/res/layout/summary_drawer_header.xml b/app/src/main/res/layout/summary_drawer_header.xml index 1ce7122..a43ad98 100644 --- a/app/src/main/res/layout/summary_drawer_header.xml +++ b/app/src/main/res/layout/summary_drawer_header.xml @@ -16,6 +16,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/ic_launcher_moodl" + android:layout_marginRight="10dp" android:layout_marginEnd="10dp"/>