220 lines
7.9 KiB
XML
220 lines
7.9 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<androidx.constraintlayout.widget.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">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/input"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tmp_buf_out"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/input" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/buf_out"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/tmp_buf_out" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/RPN_out"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/buf_out" />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/linearLayout2"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/linearLayout"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_1"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="1" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_2"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="2" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_3"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="3" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_4"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="4" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_5"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="5" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_6"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="6" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_7"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="7" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_8"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="8" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_9"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="9" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_0"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="0" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_bro"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="(" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_brc"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text=")" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_equ"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginBottom="8dp"
|
||
|
|
android:text="=" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_add"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="+" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_sub"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="-" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_mul"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="*" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/btn_div"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="/" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<!-- <EditText-->
|
||
|
|
<!-- android:id="@+id/function_in"-->
|
||
|
|
<!-- android:layout_width="0dp"-->
|
||
|
|
<!-- android:layout_height="wrap_content"-->
|
||
|
|
<!-- android:ems="10"-->
|
||
|
|
<!-- android:hint="Введите уравнение:"-->
|
||
|
|
<!-- android:inputType="textPersonName"-->
|
||
|
|
<!-- android:text="y = "-->
|
||
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
||
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||
|
|
<!-- app:layout_constraintTop_toBottomOf="@+id/graph" />-->
|
||
|
|
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|