From 985d0b521957792793010f14d369019b5523b2c9 Mon Sep 17 00:00:00 2001 From: SebasKoedam Date: Thu, 30 May 2024 16:32:10 +0200 Subject: [PATCH] refactor: Update layout for FitnessActivity This commit updates the layout for the FitnessActivity by making the following changes: - Adjusted the width of the LinearLayout to wrap its content - Added padding to the LinearLayout and its child views - Updated the dimensions of the VideoView and PersonalMotionPreviewElement These changes improve the visual presentation and alignment of the elements in the FitnessActivity layout. --- .../src/main/res/layout/activity_fitness.xml | 91 +++++++++++++------ .../Fitbot/app/src/main/res/values/styles.xml | 1 + 2 files changed, 66 insertions(+), 26 deletions(-) diff --git a/code/src/Fitbot/app/src/main/res/layout/activity_fitness.xml b/code/src/Fitbot/app/src/main/res/layout/activity_fitness.xml index a619a72..70a555b 100644 --- a/code/src/Fitbot/app/src/main/res/layout/activity_fitness.xml +++ b/code/src/Fitbot/app/src/main/res/layout/activity_fitness.xml @@ -1,42 +1,67 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/darkBlue" + android:fitsSystemWindows="true" + tools:context=".ui.activities.FitnessActivity" + tools:openDrawer="start"> - + - + + + + + + + + + @@ -44,7 +69,7 @@ tools:openDrawer="start"> android:id="@+id/homeButtonFitness" android:layout_width="150dp" android:layout_height="75dp" - android:layout_marginStart="404dp" + android:layout_marginStart="200dp" android:layout_marginBottom="30dp" android:background="@drawable/red_button_gradient" android:drawableTop="@drawable/ic_baseline_home_48" @@ -54,4 +79,18 @@ tools:openDrawer="start"> app:layout_constraintStart_toStartOf="parent" tools:ignore="SpeakableTextPresentCheck" /> +