<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
androidx.constraintlayout.widget.ConstraintLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
tools:context
=
".MainActivity"
android:background
=
"@color/teal_200"
>
<
TextView
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:text
=
"Leap year or Not"
android:textColor
=
"@color/black"
android:textSize
=
"26sp"
app:layout_constraintBottom_toTopOf
=
"@+id/textView"
app:layout_constraintEnd_toEndOf
=
"parent"
app:layout_constraintStart_toStartOf
=
"parent"
app:layout_constraintTop_toTopOf
=
"parent"
app:layout_constraintVertical_bias
=
"0.491"
/>
<
TextView
android:id
=
"@+id/textView"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:text
=
"Enter a year to check it is leap year or not"
android:textColor
=
"@color/black"
android:textSize
=
"18sp"
app:layout_constraintBottom_toBottomOf
=
"parent"
app:layout_constraintHorizontal_bias
=
"0.494"
app:layout_constraintLeft_toLeftOf
=
"parent"
app:layout_constraintRight_toRightOf
=
"parent"
app:layout_constraintTop_toTopOf
=
"parent"
app:layout_constraintVertical_bias
=
"0.4"
/>
<
EditText
android:id
=
"@+id/etYear"
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
android:layout_margin
=
"10dp"
android:hint
=
"ENTER THE YEAR"
android:inputType
=
"number"
app:layout_constraintEnd_toEndOf
=
"@+id/textView"
app:layout_constraintStart_toStartOf
=
"@+id/textView"
app:layout_constraintTop_toBottomOf
=
"@+id/textView"
/>
<
Button
android:id
=
"@+id/btnCheck"
android:layout_width
=
"149dp"
android:layout_height
=
"50dp"
android:layout_margin
=
"10dp"
android:layout_marginTop
=
"16dp"
android:backgroundTint
=
"@color/black"
android:text
=
"Check"
android:textColor
=
"@color/teal_700"
app:layout_constraintBottom_toBottomOf
=
"parent"
app:layout_constraintEnd_toEndOf
=
"@+id/etYear"
app:layout_constraintHorizontal_bias
=
"0.496"
app:layout_constraintStart_toStartOf
=
"@+id/etYear"
app:layout_constraintTop_toBottomOf
=
"@+id/etYear"
app:layout_constraintVertical_bias
=
"0.113"
/>
</
androidx.constraintlayout.widget.ConstraintLayout
>