<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
androidx.appcompat.widget.LinearLayoutCompat
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:orientation
=
"vertical"
tools:context
=
".MainActivity"
>
<
TextView
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_gravity
=
"center_horizontal"
android:layout_marginTop
=
"40dp"
android:text
=
"Prime Number Checker"
android:textSize
=
"35sp"
android:textStyle
=
"bold"
app:layout_constraintBottom_toBottomOf
=
"parent"
app:layout_constraintLeft_toLeftOf
=
"parent"
app:layout_constraintRight_toRightOf
=
"parent"
app:layout_constraintTop_toTopOf
=
"parent"
/>
<
TextView
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_gravity
=
"center_horizontal"
android:layout_marginTop
=
"120dp"
android:text
=
"Enter a Number"
android:textSize
=
"30sp"
android:textStyle
=
"bold"
/>
<
EditText
android:id
=
"@+id/number_et"
android:layout_width
=
"190dp"
android:layout_height
=
"wrap_content"
android:layout_gravity
=
"center_horizontal"
android:layout_marginTop
=
"50dp"
/>
<
Button
android:id
=
"@+id/check_btn"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_gravity
=
"center_horizontal"
android:layout_marginTop
=
"40dp"
android:backgroundTint
=
"#E67212"
android:text
=
"Check"
android:textColor
=
"@color/white"
/>
</
androidx.appcompat.widget.LinearLayoutCompat
>