Skip to content

Commit e47bc5e

Browse files
committed
project #8: add last row
1 parent ed22072 commit e47bc5e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Calculator/app/src/main/res/layout/activity_main.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,5 +225,26 @@
225225

226226
</LinearLayout>
227227

228+
<!-- Row 5-->
229+
230+
<LinearLayout
231+
android:layout_width="match_parent"
232+
android:layout_height="0dp"
233+
android:layout_marginTop="2dp"
234+
android:layout_weight="1"
235+
android:orientation="horizontal">
236+
237+
<Button
238+
android:id="@+id/btnEqual"
239+
android:layout_width="0dp"
240+
android:layout_height="match_parent"
241+
android:layout_weight="1"
242+
android:onClick="onDigit"
243+
android:text="@string/equal"
244+
android:textSize="30sp"
245+
tools:ignore="ButtonStyle,NestedWeights" />
246+
247+
248+
</LinearLayout>
228249

229250
</LinearLayout>

Calculator/app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
<string name="clear">CLR</string>
1717
<string name="_0">0</string>
1818
<string name="dot">.</string>
19+
<string name="equal">=</string>
1920
</resources>

0 commit comments

Comments
 (0)