Untitled
unknown
xml
3 years ago
3.2 kB
2
Indexable
Never
<?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/tempNo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/zero" app:layout_constraintBottom_toTopOf="@+id/calculate" app:layout_constraintEnd_toStartOf="@+id/addition" app:layout_constraintHorizontal_bias="0.497" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@+id/subtraction" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.065" /> <Button android:id="@+id/subtraction" android:onClick="subtract" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:text="@string/subtractSign" app:layout_constraintEnd_toStartOf="@+id/addition" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/addition" android:onClick="add" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/addSign" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/calculate" android:onClick="calculate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="196dp" android:text="@string/calculate" app:layout_constraintBottom_toTopOf="@+id/clear" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> <Button android:id="@+id/clear" android:onClick="clear" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="176dp" android:text="@string/clear" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.498" app:layout_constraintStart_toStartOf="parent" /> <TextView android:id="@+id/result" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0" app:layout_constraintBottom_toTopOf="@+id/clear" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/calculate" /> </androidx.constraintlayout.widget.ConstraintLayout>