mmayoub

XO, 16-23.10.2021, activity_game.xml

Oct 16th, 2021 (edited)
1,165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.33 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:layout_margin="16dp"
  8.    android:orientation="vertical"
  9.    tools:context=".MainActivity">
  10.  
  11.     <TextView
  12.        android:id="@+id/tvTitle"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="0dp"
  15.        android:layout_gravity="center"
  16.        android:layout_weight="1.5"
  17.        android:background="#DFABAB"
  18.        android:gravity="center"
  19.        android:text="Wellcome to my XO"
  20.        android:textSize="34sp"
  21.        android:textStyle="bold" />
  22.  
  23.     <TextView
  24.        android:id="@+id/tvTitle3"
  25.        android:layout_width="match_parent"
  26.        android:layout_height="0dp"
  27.        android:layout_gravity="center"
  28.        android:layout_marginTop="24dp"
  29.        android:layout_marginBottom="24dp"
  30.        android:layout_weight="0.1"
  31.        android:background="#E41212"
  32.        android:gravity="center"
  33.        android:textSize="20sp"
  34.        android:textStyle="bold" />
  35.  
  36.     <TextView
  37.        android:id="@+id/tvRows"
  38.        android:layout_width="match_parent"
  39.        android:layout_height="0dp"
  40.        android:layout_gravity="center"
  41.        android:layout_weight="1"
  42.        android:background="#CAD189"
  43.        android:gravity="center"
  44.        android:text="Rows = 3"
  45.        android:textSize="20sp"
  46.        android:textStyle="bold" />
  47.  
  48.     <SeekBar
  49.        android:id="@+id/skbRows"
  50.        style="@style/Widget.AppCompat.SeekBar.Discrete"
  51.        android:layout_width="match_parent"
  52.        android:layout_height="0dp"
  53.        android:layout_weight="0.5"
  54.        android:max="10"
  55.        android:min="3"
  56.  
  57.        android:progress="3" />
  58.  
  59.     <TextView
  60.        android:id="@+id/tvTitle4"
  61.        android:layout_width="match_parent"
  62.        android:layout_height="0dp"
  63.        android:layout_gravity="center"
  64.        android:layout_weight="1"
  65.        android:gravity="center"
  66.        android:textSize="20sp"
  67.        android:textStyle="bold" />
  68.  
  69.     <TextView
  70.        android:id="@+id/tvCols"
  71.        android:layout_width="match_parent"
  72.        android:layout_height="0dp"
  73.        android:layout_gravity="center"
  74.        android:layout_weight="1"
  75.        android:background="#CAD189"
  76.        android:gravity="center"
  77.        android:text="Cols = 3"
  78.        android:textSize="20sp"
  79.        android:textStyle="bold" />
  80.  
  81.     <SeekBar
  82.        android:id="@+id/skbCols"
  83.        style="@style/Widget.AppCompat.SeekBar.Discrete"
  84.        android:layout_width="match_parent"
  85.        android:layout_height="0dp"
  86.        android:layout_weight="0.5"
  87.        android:max="10"
  88.        android:min="3"
  89.  
  90.        android:progress="3" />
  91.  
  92.     <TextView
  93.        android:id="@+id/tvTitle5"
  94.        android:layout_width="match_parent"
  95.        android:layout_height="0dp"
  96.        android:layout_gravity="center"
  97.        android:layout_weight="1"
  98.        android:gravity="center"
  99.        android:textSize="20sp"
  100.        android:textStyle="bold" />
  101.  
  102.     <LinearLayout
  103.        android:layout_width="match_parent"
  104.        android:layout_height="0dp"
  105.        android:layout_weight="1"
  106.        android:orientation="horizontal">
  107.  
  108.         <Button
  109.            android:id="@+id/btnEasy"
  110.            android:layout_width="wrap_content"
  111.            android:layout_height="match_parent"
  112.            android:layout_margin="6dp"
  113.            android:layout_weight="1"
  114.            android:onClick="startGame"
  115.            android:text="Easy" />
  116.  
  117.         <Button
  118.            android:id="@+id/btnMedium"
  119.            android:layout_width="wrap_content"
  120.            android:layout_height="match_parent"
  121.            android:layout_margin="6dp"
  122.            android:layout_weight="1"
  123.            android:onClick="startGame"
  124.            android:text="Medium" />
  125.  
  126.         <Button
  127.            android:id="@+id/btnHard"
  128.            android:layout_width="wrap_content"
  129.            android:layout_height="match_parent"
  130.            android:layout_margin="6dp"
  131.            android:layout_weight="1"
  132.            android:onClick="startGame"
  133.            android:text="Hard" />
  134.     </LinearLayout>
  135.  
  136. </LinearLayout>
Add Comment
Please, Sign In to add comment