Advertisement
ms_olin

Untitled

Feb 27th, 2017
3,838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.90 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:paddingTop="30dp">
  8.     <!-- by Mode Vertical  -->
  9.     <Button
  10.        android:id="@+id/button9"
  11.        android:layout_width="wrap_content"
  12.        android:layout_height="wrap_content"
  13.        android:layout_alignParentBottom="true"
  14.        android:layout_centerHorizontal="true"
  15.        android:layout_marginBottom="8dp"
  16.        android:layout_marginLeft="22dp"
  17.        android:layout_marginRight="22dp"
  18.        android:background="@color/colorPrimary"
  19.        android:textColor="#ffff"
  20.        android:onClick="resetPoint"
  21.        android:text="Reset"/>
  22.  
  23.     <LinearLayout
  24.  
  25.        android:id="@+id/activity_main"
  26.        android:layout_width="match_parent"
  27.        android:layout_height="wrap_content"
  28.        android:layout_alignParentStart="true"
  29.        android:layout_alignParentTop="true"
  30.        tools:context="com.okedroid.penghitungscore.MainActivity"
  31.        >
  32.  
  33.         <LinearLayout
  34.            android:layout_width="0dp"
  35.            android:layout_height="wrap_content"
  36.            android:layout_weight="1"
  37.            android:orientation="vertical">
  38.  
  39.  
  40.             <TextView
  41.                android:id="@+id/textView"
  42.                android:layout_width="match_parent"
  43.                android:layout_height="wrap_content"
  44.                android:fontFamily="sans-serif-medium"
  45.                android:gravity="center"
  46.                android:padding="4dp"
  47.                android:paddingBottom="16dp"
  48.                android:paddingTop="16dp"
  49.                android:text="Team A"
  50.                android:textAllCaps="true"
  51.                android:textColor="#616161"
  52.                android:textSize="16sp"
  53.                android:textStyle="bold" />
  54.  
  55.             <TextView
  56.                android:id="@+id/team_a_score"
  57.                android:layout_width="match_parent"
  58.                android:layout_height="wrap_content"
  59.                android:fontFamily="sans-serif-light"
  60.                android:gravity="center"
  61.                android:paddingBottom="24dp"
  62.                android:text="0"
  63.                android:textColor="#000"
  64.                android:textSize="56sp" />
  65.  
  66.             <Button
  67.                android:id="@+id/button"
  68.                android:layout_width="match_parent"
  69.                android:layout_height="wrap_content"
  70.                android:layout_marginBottom="8dp"
  71.                android:layout_marginLeft="24dp"
  72.                android:layout_marginRight="24dp"
  73.                android:background="@color/colorPrimary"
  74.                android:textColor="#ffff"
  75.                android:onClick="tigaPointA"
  76.                android:text="+3 Points" />
  77.  
  78.             <Button
  79.                android:id="@+id/button2"
  80.                android:layout_width="match_parent"
  81.                android:layout_height="wrap_content"
  82.                android:layout_marginBottom="8dp"
  83.                android:layout_marginLeft="24dp"
  84.                android:layout_marginRight="24dp"
  85.                android:background="@color/colorPrimary"
  86.                android:textColor="#ffff"
  87.                android:onClick="duaPointA"
  88.                android:text="+2 Points " />
  89.            
  90.             <Button
  91.                android:id="@+id/button3"
  92.                android:layout_width="match_parent"
  93.                android:layout_height="wrap_content"
  94.                android:layout_marginBottom="8dp"
  95.                android:layout_marginLeft="24dp"
  96.                android:layout_marginRight="24dp"
  97.                android:background="@color/colorPrimary"
  98.                android:textColor="#ffff"
  99.                android:onClick="satuPointA"
  100.                android:text="FREE THROW" />
  101.            
  102.         </LinearLayout>
  103.  
  104.         <View
  105.            android:layout_width="1dp"
  106.            android:layout_height="match_parent"
  107.            android:layout_marginTop="16dp"/>
  108.  
  109.         <LinearLayout
  110.            android:layout_width="0dp"
  111.            android:layout_height="wrap_content"
  112.            android:layout_weight="1"
  113.            android:orientation="vertical">
  114.  
  115.             <TextView
  116.                android:id="@+id/textView3"
  117.                android:layout_width="match_parent"
  118.                android:layout_height="wrap_content"
  119.                android:fontFamily="sans-serif-medium"
  120.                android:gravity="center"
  121.                android:padding="4dp"
  122.                android:paddingBottom="16dp"
  123.                android:paddingTop="16dp"
  124.                android:text="Team B"
  125.                android:textAllCaps="true"
  126.                android:textColor="#616161"
  127.                android:textSize="16sp"
  128.                android:textStyle="bold"/>
  129.  
  130.             <TextView
  131.                android:id="@+id/team_b_score"
  132.                android:layout_width="match_parent"
  133.                android:layout_height="wrap_content"
  134.                android:fontFamily="sans-serif-light"
  135.                android:gravity="center"
  136.                android:paddingBottom="24dp"
  137.                android:text="0"
  138.                android:textColor="#000"
  139.                android:textSize="56sp"/>
  140.  
  141.             <Button
  142.                android:id="@+id/button4"
  143.                android:layout_width="match_parent"
  144.                android:layout_height="wrap_content"
  145.                android:layout_marginBottom="8dp"
  146.                android:layout_marginLeft="24dp"
  147.                android:layout_marginRight="24dp"
  148.                android:background="@color/colorPrimary"
  149.                android:textColor="#ffff"
  150.                android:onClick="tigaPointB"
  151.                android:text="+3 points" />
  152.  
  153.             <Button
  154.                android:id="@+id/button5"
  155.                android:layout_width="match_parent"
  156.                android:layout_height="wrap_content"
  157.                android:layout_marginBottom="8dp"
  158.                android:layout_marginLeft="24dp"
  159.                android:layout_marginRight="24dp"
  160.                android:background="@color/colorPrimary"
  161.                android:textColor="#ffff"
  162.                android:onClick="duaPointB"
  163.                android:text="+2 points" />
  164.  
  165.             <Button
  166.                android:id="@+id/button6"
  167.                android:layout_width="match_parent"
  168.                android:layout_height="wrap_content"
  169.                android:layout_marginBottom="8dp"
  170.                android:layout_marginLeft="24dp"
  171.                android:layout_marginRight="24dp"
  172.                android:background="@color/colorPrimary"
  173.                android:textColor="#ffff"
  174.                android:onClick="satuPointB"
  175.                android:text="Free Throw" />
  176.            
  177.         </LinearLayout>
  178.     </LinearLayout>
  179. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement