<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
androidx.constraintlayout.widget.ConstraintLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
tools:context
=
".MainActivity"
>
<
ImageView
android:id
=
"@+id/imageView"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_marginBottom
=
"180dp"
app:layout_constraintBottom_toBottomOf
=
"parent"
app:layout_constraintStart_toStartOf
=
"parent"
app:srcCompat
=
"@drawable/converttemp"
/>
<
TextView
android:id
=
"@+id/textView"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_marginStart
=
"80dp"
android:layout_marginLeft
=
"80dp"
android:layout_marginTop
=
"8dp"
android:text
=
"Enter the value in Celsius"
android:textAppearance
=
"@style/TextAppearance.AppCompat.Large"
app:layout_constraintStart_toStartOf
=
"@+id/imageView"
app:layout_constraintTop_toBottomOf
=
"@+id/imageView"
/>
<
EditText
android:id
=
"@+id/editTextNumberDecimal"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_marginStart
=
"20dp"
android:layout_marginLeft
=
"20dp"
android:layout_marginTop
=
"12dp"
android:ems
=
"10"
android:hint
=
"the value in Celsius"
android:inputType
=
"numberDecimal"
app:layout_constraintStart_toStartOf
=
"@+id/textView"
app:layout_constraintTop_toBottomOf
=
"@+id/textView"
/>
<
Button
android:id
=
"@+id/button"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_marginBottom
=
"24dp"
android:onClick
=
"OnConverterClick"
android:text
=
"Convert"
app:layout_constraintBottom_toBottomOf
=
"parent"
app:layout_constraintEnd_toEndOf
=
"parent"
app:layout_constraintHorizontal_bias
=
"0.498"
app:layout_constraintStart_toStartOf
=
"parent"
/>
</
androidx.constraintlayout.widget.ConstraintLayout
>