<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
androidx.constraintlayout.widget.ConstraintLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:background
=
"@color/green"
tools:context
=
".MainActivity"
>
<
TextView
android:id
=
"@+id/textView"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_marginTop
=
"23dp"
android:text
=
"GFG Tic Tac Toe"
android:textSize
=
"45sp"
android:textStyle
=
"bold"
app:fontFamily
=
"cursive"
app:layout_constraintLeft_toLeftOf
=
"parent"
app:layout_constraintRight_toRightOf
=
"parent"
app:layout_constraintTop_toTopOf
=
"parent"
/>
<
ImageView
android:id
=
"@+id/imageView"
android:layout_width
=
"0dp"
android:layout_height
=
"wrap_content"
android:contentDescription
=
"Start"
app:layout_constraintEnd_toEndOf
=
"parent"
app:layout_constraintStart_toStartOf
=
"parent"
app:layout_constraintTop_toBottomOf
=
"@+id/textView"
app:srcCompat
=
"@drawable/grid"
/>
<
LinearLayout
android:id
=
"@+id/linearLayout"
android:layout_width
=
"0dp"
android:layout_height
=
"420dp"
android:orientation
=
"vertical"
app:layout_constraintBottom_toBottomOf
=
"@+id/imageView"
app:layout_constraintEnd_toEndOf
=
"@+id/imageView"
app:layout_constraintStart_toStartOf
=
"@+id/imageView"
app:layout_constraintTop_toTopOf
=
"@+id/imageView"
>
<
LinearLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:orientation
=
"horizontal"
>
<
ImageView
android:id
=
"@+id/imageView0"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"0"
/>
<
ImageView
android:id
=
"@+id/imageView1"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"1"
/>
<
ImageView
android:id
=
"@+id/imageView2"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"2"
/>
</
LinearLayout
>
<
LinearLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:orientation
=
"horizontal"
>
<
ImageView
android:id
=
"@+id/imageView3"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"3"
/>
<
ImageView
android:id
=
"@+id/imageView4"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"4"
/>
<
ImageView
android:id
=
"@+id/imageView5"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"5"
/>
</
LinearLayout
>
<
LinearLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:orientation
=
"horizontal"
>
<
ImageView
android:id
=
"@+id/imageView6"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"6"
/>
<
ImageView
android:id
=
"@+id/imageView7"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"7"
/>
<
ImageView
android:id
=
"@+id/imageView8"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
android:layout_weight
=
"1"
android:onClick
=
"playerTap"
android:padding
=
"20sp"
android:tag
=
"8"
/>
</
LinearLayout
>
</
LinearLayout
>
<
TextView
android:id
=
"@+id/status"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_marginBottom
=
"15sp"
android:text
=
"Status"
android:textSize
=
"28sp"
android:textStyle
=
"italic"
app:layout_constraintBottom_toBottomOf
=
"parent"
app:layout_constraintEnd_toEndOf
=
"parent"
app:layout_constraintStart_toStartOf
=
"parent"
app:layout_constraintTop_toBottomOf
=
"@+id/linearLayout"
/>
</
androidx.constraintlayout.widget.ConstraintLayout
>