diff options
author | Marvin Borner | 2018-05-19 20:11:35 +0200 |
---|---|---|
committer | Marvin Borner | 2018-05-19 20:11:35 +0200 |
commit | 7cd9f3cf3a86edc8425a2775d59cab6ff98d9dab (patch) | |
tree | 71d46b15d0b33171e4e36d755cfc18058d7ae940 /app/src/main/res/layout |
Initial design and functionality
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_main.xml | 296 |
1 files changed, 296 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..d39b400 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,296 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".MainActivity"> + + <TableLayout + android:id="@+id/tableLayout2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="16dp" + android:layout_marginEnd="16dp" + android:layout_marginTop="16dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@+id/tableLayout" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.648"> + + <TableRow + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/buttondiv" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="÷" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" /> + + <Button + android:id="@+id/buttonC" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="C" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + </TableRow> + + <TableRow + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/buttonmul" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="×" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" /> + + </TableRow> + + <TableRow + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/buttonadd" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="+" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" /> + + </TableRow> + + <TableRow + android:layout_width="match_parent" + android:layout_height="92dp"> + + <Button + android:id="@+id/buttonsub" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="-" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" /> + + <Button + android:id="@+id/buttoneql" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="=" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" /> + + </TableRow> + + </TableLayout> + + <TableLayout + android:id="@+id/tableLayout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="16dp" + android:layout_marginStart="16dp" + android:layout_marginTop="16dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@+id/tableLayout2" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.649"> + + <TableRow + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/button1" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="1" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + <Button + android:id="@+id/button2" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="2" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + <Button + android:id="@+id/button3" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="3" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + </TableRow> + + <TableRow + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/button4" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="4" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + <Button + android:id="@+id/button5" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="5" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + <Button + android:id="@+id/button6" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="6" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + </TableRow> + + <TableRow + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/button7" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="7" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + <Button + android:id="@+id/button8" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="8" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + <Button + android:id="@+id/button9" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="9" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + </TableRow> + + <TableRow + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/button10" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="." + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + <Button + android:id="@+id/button0" + android:layout_width="80dp" + android:layout_height="80dp" + android:fontFamily="monospace" + android:text="0" + android:textAppearance="@style/TextAppearance.AppCompat" + android:textSize="30sp" + android:typeface="monospace" + tools:layout_editor_absoluteX="16dp" + tools:layout_editor_absoluteY="16dp" /> + + </TableRow> + + </TableLayout> + + <TextView + android:id="@+id/edt1" + android:layout_width="334dp" + android:layout_height="wrap_content" + android:layout_marginBottom="52dp" + android:layout_marginEnd="16dp" + android:layout_marginStart="16dp" + android:fontFamily="monospace" + android:maxLines="1" + android:scrollbars="horizontal" + android:textSize="50sp" + android:typeface="monospace" + app:layout_constraintBottom_toTopOf="@+id/tableLayout" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" /> + +</android.support.constraint.ConstraintLayout>
\ No newline at end of file |