Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkempire78 committed Feb 11, 2023
2 parents ecddbde + b6a2b65 commit 089cf10
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class MainActivity : AppCompatActivity() {
updateDisplay(view, decimalSeparator)
}

fun devideButton(view: View) {
fun divideButton(view: View) {
updateDisplay(view, "÷")
}

Expand Down Expand Up @@ -427,7 +427,7 @@ class MainActivity : AppCompatActivity() {
}
}

fun devideBy100(view: View) {
fun divideBy100(view: View) {
updateDisplay(view, "%")
}

Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/layout-land/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
android:text="@string/square" />

<Button
android:id="@+id/devideBy100Button"
android:id="@+id/divideBy100Button"
style="@style/CalculatorButton.Function"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:onClick="devideBy100"
android:text="@string/devideBy100" />
android:onClick="divideBy100"
android:text="@string/divideBy100" />

<Button
android:id="@+id/factorialButton"
Expand Down Expand Up @@ -94,13 +94,13 @@
android:text="@string/nine" />

<ImageButton
android:id="@+id/devideButton"
android:id="@+id/divideButton"
style="@style/CalculatorButton.Small"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:backgroundTint="?attr/button_symbol_color"
android:onClick="devideButton"
android:onClick="divideButton"
app:srcCompat="@drawable/divide" />

<Button
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/layout-sw720dp-land/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@
android:text="@string/pi" />

<Button
android:id="@+id/devideBy100Button"
android:id="@+id/divideBy100Button"
style="@style/CalculatorButton.Function"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="0dp"
android:layout_weight="1"
android:onClick="devideBy100"
android:text="@string/devideBy100" />
android:onClick="divideBy100"
android:text="@string/divideBy100" />

<Button
android:id="@+id/factorialButton"
Expand Down Expand Up @@ -308,13 +308,13 @@
app:srcCompat="@drawable/exponent" />

<ImageButton
android:id="@+id/devideButton"
android:id="@+id/divideButton"
style="@style/CalculatorButton.Small"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:backgroundTint="?attr/button_symbol_color"
android:onClick="devideButton"
android:onClick="divideButton"
app:srcCompat="@drawable/divide" />
</TableRow>

Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@
android:textSize="26sp" />

<Button
android:id="@+id/devideBy100Button"
android:id="@+id/divideBy100Button"
style="@style/CalculatorButton.Function"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="0dp"
android:layout_weight="1"
android:onClick="devideBy100"
android:text="@string/devideBy100"
android:onClick="divideBy100"
android:text="@string/divideBy100"
android:textSize="26sp" />

<Button
Expand Down Expand Up @@ -309,13 +309,13 @@
app:srcCompat="@drawable/exponent" />

<ImageButton
android:id="@+id/devideButton"
android:id="@+id/divideButton"
style="@style/CalculatorButton"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:backgroundTint="?attr/button_symbol_color"
android:onClick="devideButton"
android:onClick="divideButton"
app:srcCompat="@drawable/divide" />
</TableRow>

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
<string name="substract" translatable="false">−</string>
<string name="point" translatable="false">.</string>
<string name="equals" translatable="false">=</string>
<string name="devide" translatable="false">÷</string>
<string name="divide" translatable="false">÷</string>
<string name="multiply" translatable="false">×</string>
<string name="exponent" translatable="false">^</string>
<string name="backspace" translatable="false"> </string>

<string name="devideBy100" translatable="false">%</string>
<string name="divideBy100" translatable="false">%</string>
<string name="degree" translatable="false">DEG</string>
<string name="sinus" translatable="false">sin</string>
<string name="sinusInv" translatable="false">sin⁻¹</string>
Expand Down

0 comments on commit 089cf10

Please sign in to comment.