Skip to content

Commit

Permalink
fix: large back icon on some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
arch10 committed Jan 29, 2024
1 parent 2be201c commit 3174c38
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout-sw400dp/num_pad.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/layout/num_pad.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
36 changes: 18 additions & 18 deletions app/src/main/res/layout/scientific_pad.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 3174c38

Please sign in to comment.