Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingTop="30dp">
- <!-- by Mode Vertical -->
- <Button
- android:id="@+id/button9"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:layout_marginBottom="8dp"
- android:layout_marginLeft="22dp"
- android:layout_marginRight="22dp"
- android:background="@color/colorPrimary"
- android:textColor="#ffff"
- android:onClick="resetPoint"
- android:text="Reset"/>
- <LinearLayout
- android:id="@+id/activity_main"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:layout_alignParentTop="true"
- tools:context="com.okedroid.penghitungscore.MainActivity"
- >
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:id="@+id/textView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-medium"
- android:gravity="center"
- android:padding="4dp"
- android:paddingBottom="16dp"
- android:paddingTop="16dp"
- android:text="Team A"
- android:textAllCaps="true"
- android:textColor="#616161"
- android:textSize="16sp"
- android:textStyle="bold"
- />
- <TextView
- android:id="@+id/team_a_score"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-light"
- android:gravity="center"
- android:paddingBottom="24dp"
- android:text="0"
- android:textColor="#000"
- android:textSize="56sp"
- />
- <Button
- android:id="@+id/button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:layout_marginLeft="24dp"
- android:layout_marginRight="24dp"
- android:background="@color/colorPrimary"
- android:textColor="#ffff"
- android:onClick="tigaPointA"
- android:text="+3 Points"
- />
- <Button
- android:id="@+id/button2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:layout_marginLeft="24dp"
- android:layout_marginRight="24dp"
- android:background="@color/colorPrimary"
- android:textColor="#ffff"
- android:onClick="duaPointA"
- android:text="+2 Points "
- />
- <Button
- android:id="@+id/button3"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:layout_marginLeft="24dp"
- android:layout_marginRight="24dp"
- android:background="@color/colorPrimary"
- android:textColor="#ffff"
- android:onClick="satuPointA"
- android:text="FREE THROW"
- />
- </LinearLayout>
- <View
- android:layout_width="1dp"
- android:layout_height="match_parent"
- android:layout_marginTop="16dp"/>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:id="@+id/textView3"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-medium"
- android:gravity="center"
- android:padding="4dp"
- android:paddingBottom="16dp"
- android:paddingTop="16dp"
- android:text="Team B"
- android:textAllCaps="true"
- android:textColor="#616161"
- android:textSize="16sp"
- android:textStyle="bold"/>
- <TextView
- android:id="@+id/team_b_score"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fontFamily="sans-serif-light"
- android:gravity="center"
- android:paddingBottom="24dp"
- android:text="0"
- android:textColor="#000"
- android:textSize="56sp"/>
- <Button
- android:id="@+id/button4"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:layout_marginLeft="24dp"
- android:layout_marginRight="24dp"
- android:background="@color/colorPrimary"
- android:textColor="#ffff"
- android:onClick="tigaPointB"
- android:text="+3 points"
- />
- <Button
- android:id="@+id/button5"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:layout_marginLeft="24dp"
- android:layout_marginRight="24dp"
- android:background="@color/colorPrimary"
- android:textColor="#ffff"
- android:onClick="duaPointB"
- android:text="+2 points"
- />
- <Button
- android:id="@+id/button6"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:layout_marginLeft="24dp"
- android:layout_marginRight="24dp"
- android:background="@color/colorPrimary"
- android:textColor="#ffff"
- android:onClick="satuPointB"
- android:text="Free Throw"
- />
- </LinearLayout>
- </LinearLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement