Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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">
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineV01"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintGuide_percent="0.25" />
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineV02"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintGuide_percent="0.5" />
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineV03"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintGuide_percent="0.75" />
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineH01"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent="0.28"/>
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineH02"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent="0.4"/>
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineH03"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent="0.52"/>
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineH04"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent="0.64"/>
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineH05"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent="0.76"/>
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guidelineH06"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent="0.88"/>
- <Button
- android:id="@+id/buttonCE"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="CE"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="@id/guidelineV02"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH02"
- app:layout_constraintTop_toTopOf="@id/guidelineH01"
- />
- <Button
- android:id="@+id/buttonX"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="X"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
- app:layout_constraintRight_toRightOf="@id/guidelineV03"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH02"
- app:layout_constraintTop_toTopOf="@id/guidelineH01"
- />
- <Button
- android:id="@+id/buttonDziel"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="/"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH02"
- app:layout_constraintTop_toTopOf="@id/guidelineH01"
- />
- <Button
- android:id="@+id/buttonPercent"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="%"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="@id/guidelineV01"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH03"
- app:layout_constraintTop_toTopOf="@id/guidelineH02"
- />
- <Button
- android:id="@+id/buttonSQRT"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="SQRT"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
- app:layout_constraintRight_toRightOf="@id/guidelineV02"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH03"
- app:layout_constraintTop_toTopOf="@id/guidelineH02"
- />
- <Button
- android:id="@+id/buttonSYR"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="syr"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
- app:layout_constraintRight_toRightOf="@id/guidelineV03"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH03"
- app:layout_constraintTop_toTopOf="@id/guidelineH02"
- />
- <Button
- android:id="@+id/buttonMnoz"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="*"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH03"
- app:layout_constraintTop_toTopOf="@id/guidelineH02"
- />
- <Button
- android:id="@+id/button7"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="7"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="@id/guidelineV01"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH04"
- app:layout_constraintTop_toTopOf="@id/guidelineH03"
- />
- <Button
- android:id="@+id/button8"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="8"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
- app:layout_constraintRight_toRightOf="@id/guidelineV02"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH04"
- app:layout_constraintTop_toTopOf="@id/guidelineH03"
- />
- <Button
- android:id="@+id/button9"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:text="9"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
- app:layout_constraintRight_toRightOf="@id/guidelineV03"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH04"
- app:layout_constraintTop_toTopOf="@id/guidelineH03"
- />
- <Button
- android:id="@+id/buttonMinus"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH04"
- app:layout_constraintTop_toTopOf="@id/guidelineH03"
- />
- <Button
- android:id="@+id/button4"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="@id/guidelineV01"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH05"
- app:layout_constraintTop_toTopOf="@id/guidelineH04"
- />
- <Button
- android:id="@+id/button5"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
- app:layout_constraintRight_toRightOf="@id/guidelineV02"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH05"
- app:layout_constraintTop_toTopOf="@id/guidelineH04"
- />
- <Button
- android:id="@+id/button6"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
- app:layout_constraintRight_toRightOf="@id/guidelineV03"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH05"
- app:layout_constraintTop_toTopOf="@id/guidelineH04"
- />
- <Button
- android:id="@+id/buttonPlus"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH05"
- app:layout_constraintTop_toTopOf="@id/guidelineH04"
- />
- <Button
- android:id="@+id/button1"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="@id/guidelineV01"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH06"
- app:layout_constraintTop_toTopOf="@id/guidelineH05"
- />
- <Button
- android:id="@+id/button2"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
- app:layout_constraintRight_toRightOf="@id/guidelineV02"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH06"
- app:layout_constraintTop_toTopOf="@id/guidelineH05"
- />
- <Button
- android:id="@+id/button3"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
- app:layout_constraintRight_toRightOf="@id/guidelineV03"
- app:layout_constraintBottom_toBottomOf="@id/guidelineH06"
- app:layout_constraintTop_toTopOf="@id/guidelineH05"
- />
- <Button
- android:id="@+id/buttonWynik"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV03"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toTopOf="@id/guidelineH05"
- />
- <Button
- android:id="@+id/buttonPlusMinus"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="@id/guidelineV01"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toTopOf="@id/guidelineH06"
- />
- <Button
- android:id="@+id/button0"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV01"
- app:layout_constraintRight_toRightOf="@id/guidelineV02"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toTopOf="@id/guidelineH06"
- />
- <Button
- android:id="@+id/buttonPrzecinek"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guidelineV02"
- app:layout_constraintRight_toRightOf="@id/guidelineV03"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toTopOf="@id/guidelineH06"
- />
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement