How to Build a Number Shapes Android App in Android Studio?

0

xml model="1.0" encoding="utf-8"?>

<androidx.constraintlayout.widget.ConstraintLayout

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:background="#E3B5B5"

    instruments:context=".MainActivity">

    <TextView

        android:id="@+id/textView2"

        android:layout_width="279dp"

        android:layout_height="51dp"

        android:textual content="Number Shapes"

        android:textColor="#29629A"

        android:textSize="36sp"

        android:textStyle="daring"

        app:layout_constraintBottom_toBottomOf="dad or mum"

        app:layout_constraintHorizontal_bias="0.592"

        app:layout_constraintLeft_toLeftOf="dad or mum"

        app:layout_constraintRight_toRightOf="dad or mum"

        app:layout_constraintTop_toTopOf="dad or mum"

        app:layout_constraintVertical_bias="0.08" />

    <TextView

        android:id="@+id/textView"

        android:layout_width="338dp"

        android:layout_height="47dp"

        android:textual content="Enter a quantity to examine it's triangular,sq.,each or neither."

        android:textColor="#303F9F"

        android:textSize="20sp"

        app:layout_constraintBottom_toBottomOf="dad or mum"

        app:layout_constraintEnd_toEndOf="dad or mum"

        app:layout_constraintHorizontal_bias="1.0"

        app:layout_constraintStart_toStartOf="dad or mum"

        app:layout_constraintTop_toBottomOf="@+id/textView2"

        app:layout_constraintVertical_bias="0.056" />

    <EditText

        android:id="@+id/editTextNumber"

        android:layout_width="0dp"

        android:layout_height="wrap_content"

        android:ems="10"

        android:trace="Enter Number"

        android:inputType="quantity"

        app:layout_constraintBottom_toBottomOf="dad or mum"

        app:layout_constraintEnd_toEndOf="dad or mum"

        app:layout_constraintHorizontal_bias="0.0"

        app:layout_constraintStart_toStartOf="dad or mum"

        app:layout_constraintTop_toBottomOf="@+id/textView"

        app:layout_constraintVertical_bias="0.097" />

    <Button

        android:id="@+id/button"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:onClick="examineNumber"

        android:textual content="Check Number"

        app:layout_constraintBottom_toBottomOf="dad or mum"

        app:layout_constraintEnd_toEndOf="dad or mum"

        app:layout_constraintStart_toStartOf="dad or mum"

        app:layout_constraintTop_toBottomOf="@+id/editTextNumber"

        app:layout_constraintVertical_bias="0.153" />

androidx.constraintlayout.widget.ConstraintLayout>

Leave A Reply

Your email address will not be published.