Advertisement
Yonka2019

layoutGame.xml

Oct 12th, 2022
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:weightSum="100"
  4.    android:layoutDirection="ltr"
  5.    android:orientation="vertical"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent">
  8.     <Button
  9.        android:text="player1"
  10.        android:rotation="180"
  11.        android:backgroundTint="#0091ff"
  12.        android:layout_weight="45"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="0sp"
  15.        android:minWidth="25px"
  16.        android:minHeight="25px"
  17.        android:id="@+id/buttonPlayer1" />
  18.     <LinearLayout
  19.        android:orientation="horizontal"
  20.        android:weightSum="100"
  21.        android:minWidth="25px"
  22.        android:minHeight="25px"
  23.        android:layout_weight="10"
  24.        android:layout_width="match_parent"
  25.        android:layout_height="0sp"
  26.        android:id="@+id/linearLayout1" >
  27.         <TextView
  28.            android:text="0"
  29.            android:rotation="180"
  30.            android:textAlignment="center"
  31.            android:layout_weight="25"
  32.            android:textAppearance="?android:attr/textAppearanceLarge"
  33.            android:layout_width="wrap_content"
  34.            android:layout_height="match_parent"
  35.            android:id="@+id/textViewScore1" />
  36.         <TextView
  37.            android:layout_weight="25"
  38.            android:rotation="180"
  39.            android:textAlignment="center"
  40.            android:text="1"
  41.            android:textAppearance="?android:attr/textAppearanceLarge"
  42.            android:layout_width="wrap_content"
  43.            android:layout_height="match_parent"
  44.            android:id="@+id/textViewTimer1" />
  45.         <TextView
  46.            android:layout_weight="25"
  47.            android:textAlignment="center"
  48.            android:text="1"
  49.            android:textAppearance="?android:attr/textAppearanceLarge"
  50.            android:layout_width="wrap_content"
  51.            android:layout_height="match_parent"
  52.            android:id="@+id/textViewTimer2" />
  53.         <TextView
  54.            android:layout_weight="25"
  55.            android:textAlignment="center"
  56.            android:text="0"
  57.            android:textAppearance="?android:attr/textAppearanceLarge"
  58.            android:layout_width="wrap_content"
  59.            android:layout_height="match_parent"
  60.            android:id="@+id/textViewScore2" />
  61.  
  62.     </LinearLayout>
  63.  
  64.     <Button
  65.        android:text="player2"
  66.        android:backgroundTint="#ff669900"
  67.        android:layout_weight="45"
  68.        android:layout_width="match_parent"
  69.        android:layout_height="0sp"
  70.        android:id="@+id/buttonPlayer2" />
  71.  
  72. </LinearLayout>
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement