From 4229acf87cf5781666be3b771d624bde09bf473e Mon Sep 17 00:00:00 2001 From: Robin Koedood Date: Wed, 16 Dec 2020 11:20:52 +0100 Subject: [PATCH] [ADD] Route Detail Contraints --- .../drawable/ic_baseline_play_arrow_24.xml | 10 ++++ .../main/res/layout/fragment_route_detail.xml | 53 +++++++++++-------- 2 files changed, 42 insertions(+), 21 deletions(-) create mode 100644 app/src/main/res/drawable/ic_baseline_play_arrow_24.xml diff --git a/app/src/main/res/drawable/ic_baseline_play_arrow_24.xml b/app/src/main/res/drawable/ic_baseline_play_arrow_24.xml new file mode 100644 index 0000000..13c137a --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_play_arrow_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/layout/fragment_route_detail.xml b/app/src/main/res/layout/fragment_route_detail.xml index 5d37443..197630c 100644 --- a/app/src/main/res/layout/fragment_route_detail.xml +++ b/app/src/main/res/layout/fragment_route_detail.xml @@ -11,21 +11,24 @@ android:id="@+id/routeDetailBackButton" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_margin="10dp" + android:layout_marginEnd="100dp" android:background="@drawable/ic_back_button_24" + app:layout_constraintBottom_toBottomOf="@id/routeTitle" + app:layout_constraintEnd_toStartOf="@id/routeTitle" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="@id/routeTitle" /> - + - - + + + app:layout_constraintTop_toBottomOf="@id/routeDetailText" /> \ No newline at end of file