Advertisement
ms_olin

Untitled

Feb 27th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.02 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.  
  56.             <TextView
  57.                android:id="@+id/team_a_score"
  58.                android:layout_width="match_parent"
  59.                android:layout_height="wrap_content"
  60.                android:fontFamily="sans-serif-light"
  61.                android:gravity="center"
  62.                android:paddingBottom="24dp"
  63.                android:text="0"
  64.                android:textColor="#000"
  65.                android:textSize="56sp"
  66.  
  67.  
  68.                />
  69.  
  70.             <Button
  71.                android:id="@+id/button"
  72.                android:layout_width="match_parent"
  73.                android:layout_height="wrap_content"
  74.                android:layout_marginBottom="8dp"
  75.                android:layout_marginLeft="24dp"
  76.                android:layout_marginRight="24dp"
  77.                android:background="@color/colorPrimary"
  78.                android:textColor="#ffff"
  79.                android:onClick="tigaPointA"
  80.                android:text="+3 Points"
  81.  
  82.                />
  83.  
  84.             <Button
  85.                android:id="@+id/button2"
  86.                android:layout_width="match_parent"
  87.                android:layout_height="wrap_content"
  88.                android:layout_marginBottom="8dp"
  89.                android:layout_marginLeft="24dp"
  90.                android:layout_marginRight="24dp"
  91.                android:background="@color/colorPrimary"
  92.                android:textColor="#ffff"
  93.                android:onClick="duaPointA"
  94.                android:text="+2 Points "
  95.  
  96.  
  97.                />
  98.  
  99.  
  100.             <Button
  101.                android:id="@+id/button3"
  102.                android:layout_width="match_parent"
  103.                android:layout_height="wrap_content"
  104.                android:layout_marginBottom="8dp"
  105.                android:layout_marginLeft="24dp"
  106.                android:layout_marginRight="24dp"
  107.                android:background="@color/colorPrimary"
  108.                android:textColor="#ffff"
  109.                android:onClick="satuPointA"
  110.                android:text="FREE THROW"
  111.  
  112.                />
  113.  
  114.  
  115.         </LinearLayout>
  116.  
  117.         <View
  118.            android:layout_width="1dp"
  119.            android:layout_height="match_parent"
  120.            android:layout_marginTop="16dp"/>
  121.  
  122.         <LinearLayout
  123.            android:layout_width="0dp"
  124.            android:layout_height="wrap_content"
  125.            android:layout_weight="1"
  126.            android:orientation="vertical">
  127.  
  128.             <TextView
  129.                android:id="@+id/textView3"
  130.                android:layout_width="match_parent"
  131.                android:layout_height="wrap_content"
  132.                android:fontFamily="sans-serif-medium"
  133.                android:gravity="center"
  134.                android:padding="4dp"
  135.                android:paddingBottom="16dp"
  136.                android:paddingTop="16dp"
  137.                android:text="Team B"
  138.                android:textAllCaps="true"
  139.                android:textColor="#616161"
  140.                android:textSize="16sp"
  141.                android:textStyle="bold"/>
  142.  
  143.             <TextView
  144.                android:id="@+id/team_b_score"
  145.                android:layout_width="match_parent"
  146.                android:layout_height="wrap_content"
  147.                android:fontFamily="sans-serif-light"
  148.                android:gravity="center"
  149.                android:paddingBottom="24dp"
  150.                android:text="0"
  151.                android:textColor="#000"
  152.                android:textSize="56sp"/>
  153.  
  154.             <Button
  155.                android:id="@+id/button4"
  156.                android:layout_width="match_parent"
  157.                android:layout_height="wrap_content"
  158.                android:layout_marginBottom="8dp"
  159.                android:layout_marginLeft="24dp"
  160.                android:layout_marginRight="24dp"
  161.                android:background="@color/colorPrimary"
  162.                android:textColor="#ffff"
  163.                android:onClick="tigaPointB"
  164.                android:text="+3 points"
  165.                />
  166.  
  167.             <Button
  168.                android:id="@+id/button5"
  169.                android:layout_width="match_parent"
  170.                android:layout_height="wrap_content"
  171.                android:layout_marginBottom="8dp"
  172.                android:layout_marginLeft="24dp"
  173.                android:layout_marginRight="24dp"
  174.                android:background="@color/colorPrimary"
  175.                android:textColor="#ffff"
  176.                android:onClick="duaPointB"
  177.  
  178.                android:text="+2 points"
  179.                />
  180.  
  181.             <Button
  182.                android:id="@+id/button6"
  183.                android:layout_width="match_parent"
  184.                android:layout_height="wrap_content"
  185.                android:layout_marginBottom="8dp"
  186.                android:layout_marginLeft="24dp"
  187.                android:layout_marginRight="24dp"
  188.                android:background="@color/colorPrimary"
  189.                android:textColor="#ffff"
  190.                android:onClick="satuPointB"
  191.                android:text="Free Throw"
  192.  
  193.                />
  194.  
  195.  
  196.         </LinearLayout>
  197.  
  198.  
  199.     </LinearLayout>
  200. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement