From 14454970d83b65f2b736575a92a4fccf68623db3 Mon Sep 17 00:00:00 2001 From: Eoin Mcloughlin Date: Sun, 17 May 2020 16:32:51 +0100 Subject: [PATCH] Center level-select items in view --- .../res/layout/fragment_training_level.xml | 89 ++++++++++--------- .../layout/fragment_training_level_list.xml | 3 +- 2 files changed, 50 insertions(+), 42 deletions(-) diff --git a/app/src/main/res/layout/fragment_training_level.xml b/app/src/main/res/layout/fragment_training_level.xml index 58fd722..a073a66 100644 --- a/app/src/main/res/layout/fragment_training_level.xml +++ b/app/src/main/res/layout/fragment_training_level.xml @@ -1,56 +1,63 @@ - - - - - + android:layout_marginTop="@dimen/lesson_select_margin" + android:layout_marginBottom="@dimen/lesson_select_margin" + android:background="@color/cardview_light_background" + android:elevation="2dp" + android:gravity="center" + android:orientation="horizontal"> + android:textColor="?android:attr/textColorSecondary" + android:textSize="36sp" /> - - + android:background="?android:attr/listDivider" /> - + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_training_level_list.xml b/app/src/main/res/layout/fragment_training_level_list.xml index 75990af..6495463 100644 --- a/app/src/main/res/layout/fragment_training_level_list.xml +++ b/app/src/main/res/layout/fragment_training_level_list.xml @@ -4,8 +4,9 @@ xmlns:tools="http://schemas.android.com/tools" android:id="@+id/list" android:name="es.eoinrul.ecwt.TrainingLevelFragment" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="match_parent" + android:layout_gravity="center_horizontal" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" app:layoutManager="LinearLayoutManager"