add a display
This commit is contained in:
parent
587db72953
commit
4798537a3a
|
@ -10,9 +10,20 @@
|
|||
android:paddingTop="@dimen/activity_margin"
|
||||
tools:context="calculator.simplemobiletools.com.simple_calculator.MainActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/display"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/activity_margin"
|
||||
android:gravity="right"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:text="0"
|
||||
android:textSize="@dimen/display_text_size"/>
|
||||
|
||||
<TableLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/display">
|
||||
|
||||
<TableRow
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<resources>
|
||||
<dimen name="activity_margin">16dp</dimen>
|
||||
<dimen name="button_text_size">24sp</dimen>
|
||||
<dimen name="display_text_size">36sp</dimen>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue