fix: logo getting cropped in landscape mode of login page (#6106)

* Fixed logo getting cropped in landscape mode of login page

* Indentation added at line 12

* New Dimension created in dimens.xml which is used in land\activity_login.xml
This commit is contained in:
Nachiket Jadhav 2025-01-08 01:03:41 +05:30 committed by GitHub
parent b2159ed87f
commit fdbe504ca9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 5 deletions

View file

@ -12,7 +12,7 @@
android:layout_width="@dimen/landscape_width" android:layout_width="@dimen/landscape_width"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginTop="@dimen/small_gap"> android:layout_marginTop="@dimen/login_gap">
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -2,12 +2,14 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:layout_gravity="center_vertical">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:layout_gravity="center_vertical">
<FrameLayout <FrameLayout
android:layout_width="@dimen/landscape_width" android:layout_width="@dimen/landscape_width"

View file

@ -1,13 +1,15 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:layout_gravity="center_vertical">
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto" <LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fillViewport="true" android:fillViewport="true"
android:orientation="vertical"> android:orientation="vertical"
android:layout_gravity="center_vertical">
<FrameLayout <FrameLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -20,6 +20,7 @@
<dimen name="gigantic_gap">64dp</dimen> <dimen name="gigantic_gap">64dp</dimen>
<dimen name="standard_gap">16dp</dimen> <dimen name="standard_gap">16dp</dimen>
<dimen name="small_gap">8dp</dimen> <dimen name="small_gap">8dp</dimen>
<dimen name="login_gap">20dp</dimen>
<dimen name="small_height">7dp</dimen> <dimen name="small_height">7dp</dimen>
<dimen name="tiny_gap">4dp</dimen> <dimen name="tiny_gap">4dp</dimen>
<dimen name="very_tiny_gap">2dp</dimen> <dimen name="very_tiny_gap">2dp</dimen>