From 3174c38873f6d3dc63f0b4b58274b351d524716a Mon Sep 17 00:00:00 2001 From: Archit Date: Mon, 29 Jan 2024 23:45:32 +0530 Subject: [PATCH] fix: large back icon on some devices --- app/src/main/res/layout-sw400dp/num_pad.xml | 1 + app/src/main/res/layout/num_pad.xml | 10 +++--- app/src/main/res/layout/scientific_pad.xml | 36 ++++++++++----------- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/app/src/main/res/layout-sw400dp/num_pad.xml b/app/src/main/res/layout-sw400dp/num_pad.xml index d897133..dfe8a40 100644 --- a/app/src/main/res/layout-sw400dp/num_pad.xml +++ b/app/src/main/res/layout-sw400dp/num_pad.xml @@ -56,6 +56,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:src="@drawable/delete" + android:scaleType="centerInside" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/closeBracket" app:layout_constraintTop_toTopOf="parent" diff --git a/app/src/main/res/layout/num_pad.xml b/app/src/main/res/layout/num_pad.xml index 76fdce5..2369902 100644 --- a/app/src/main/res/layout/num_pad.xml +++ b/app/src/main/res/layout/num_pad.xml @@ -55,7 +55,7 @@ style="@style/Widget.CalculatorPlus.NumPad.Primary.IconOnly" android:layout_width="0dp" android:layout_height="match_parent" - android:scaleType="fitCenter" + android:scaleType="centerInside" android:src="@drawable/delete" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/closeBracket" @@ -125,7 +125,7 @@ android:layout_height="match_parent" android:text="\u00F7" android:textColor="?attr/operatorBtnColor" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle2" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/nine" app:layout_constraintTop_toTopOf="parent" @@ -194,7 +194,7 @@ android:layout_height="match_parent" android:text="\u00D7" android:textColor="?attr/operatorBtnColor" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle2" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/six" app:layout_constraintTop_toTopOf="parent" @@ -263,7 +263,7 @@ android:layout_height="match_parent" android:text="\u002B" android:textColor="?attr/operatorBtnColor" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle2" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/three" app:layout_constraintTop_toTopOf="parent" @@ -333,7 +333,7 @@ android:text="\u2212" android:textColor="?attr/operatorBtnColor" android:stateListAnimator="@null" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle2" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/equal" app:layout_constraintTop_toTopOf="parent" diff --git a/app/src/main/res/layout/scientific_pad.xml b/app/src/main/res/layout/scientific_pad.xml index 76270d8..c31c8b6 100644 --- a/app/src/main/res/layout/scientific_pad.xml +++ b/app/src/main/res/layout/scientific_pad.xml @@ -20,7 +20,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="sin" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintEnd_toStartOf="@id/cos" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" @@ -32,7 +32,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="cos" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintEnd_toStartOf="@id/tan" app:layout_constraintStart_toEndOf="@id/sin" app:layout_constraintTop_toTopOf="parent" @@ -44,7 +44,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="tan" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/cos" app:layout_constraintTop_toTopOf="parent" @@ -66,7 +66,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="sin\u207B\u00b9" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/acos" app:layout_constraintStart_toStartOf="parent" @@ -78,7 +78,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="cos\u207B\u00b9" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/atan" app:layout_constraintStart_toEndOf="@id/asin" @@ -90,7 +90,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="tan\u207B\u00b9" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/acos" @@ -112,7 +112,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="e" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/log" app:layout_constraintStart_toStartOf="parent" @@ -124,7 +124,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="log" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/naturalLog" app:layout_constraintStart_toEndOf="@id/exponential" @@ -136,7 +136,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="ln" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/pi" app:layout_constraintStart_toEndOf="@id/log" @@ -148,7 +148,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="\u03C0" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/naturalLog" @@ -170,7 +170,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="!" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/squareRoot" app:layout_constraintStart_toStartOf="parent" @@ -182,7 +182,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="\u221A" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/cubeRoot" app:layout_constraintStart_toEndOf="@id/factorial" @@ -194,7 +194,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="\u221b" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/power" app:layout_constraintStart_toEndOf="@id/squareRoot" @@ -206,7 +206,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="^" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/cubeRoot" @@ -228,7 +228,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="MS" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/memoryRestore" app:layout_constraintStart_toStartOf="parent" @@ -240,7 +240,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="MR" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/memoryAdd" app:layout_constraintStart_toEndOf="@id/memoryStore" @@ -252,7 +252,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="M+" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/memorySub" app:layout_constraintStart_toEndOf="@id/memoryRestore" @@ -264,7 +264,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:text="M-" - android:textAppearance="@style/TextAppearance.CalculatorPlus.Headline5" + android:textAppearance="@style/TextAppearance.CalculatorPlus.Subtitle1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/memoryAdd"