add a display

This commit is contained in:
tibbi 2015-12-24 13:32:18 +01:00
parent 587db72953
commit 4798537a3a
2 changed files with 13 additions and 1 deletions

View file

@ -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"

View file

@ -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>