From e9a5b3427c41baf40d13af7683cac4ce4ba44c89 Mon Sep 17 00:00:00 2001 From: s22thong <sylvain.thong@gmail.com> Date: Tue, 11 Mar 2025 16:45:46 +0100 Subject: [PATCH] fix(UI): fixed MenuBar bottom padding on MainActivity --- app/src/main/AndroidManifest.xml | 3 ++- app/src/main/res/layout/activity_display_user.xml | 3 +-- app/src/main/res/layout/activity_main.xml | 6 ++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 84819f1..2429999 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,7 +19,8 @@ tools:targetApi="31"> <activity android:name=".MainActivity" - android:exported="true"> + android:exported="true" + android:windowSoftInputMode="adjustPan"> <intent-filter> <action android:name="android.intent.action.MAIN" /> diff --git a/app/src/main/res/layout/activity_display_user.xml b/app/src/main/res/layout/activity_display_user.xml index 11d2322..5045b28 100644 --- a/app/src/main/res/layout/activity_display_user.xml +++ b/app/src/main/res/layout/activity_display_user.xml @@ -6,8 +6,7 @@ android:id="@+id/displayUserActivity" android:layout_width="match_parent" android:layout_height="match_parent" - android:fitsSystemWindows="true" - tools:context=".MainActivity"> + android:fitsSystemWindows="true"> <ScrollView android:layout_width="match_parent" diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 638ace7..a94586b 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -6,14 +6,12 @@ android:id="@+id/mainActivity" android:layout_width="match_parent" android:layout_height="match_parent" - android:fitsSystemWindows="true" tools:context=".MainActivity"> - <!-- Conteneur où les fragments seront affichés dynamiquement --> - <FrameLayout + <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/fragmentContainer" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?android:attr/windowBackground"/> + android:background="?android:attr/windowBackground" /> </androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file -- GitLab