Advertisement
SarahT1111

Curling Counter XML

Mar 26th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 33.01 KB | None | 0 0
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    tools:context=".MainActivity">
  6.  
  7.     <ImageView
  8.        android:layout_width="match_parent"
  9.        android:layout_height="match_parent"
  10.        android:background="@drawable/curlingmain"
  11.        android:scaleType="centerCrop">
  12.  
  13.     </ImageView>
  14.  
  15.     <LinearLayout
  16.        android:layout_width="match_parent"
  17.        android:layout_height="wrap_content"
  18.        android:orientation="horizontal">
  19.  
  20.         <LinearLayout
  21.            android:layout_width="0dp"
  22.            android:layout_height="wrap_content"
  23.            android:layout_weight="2"
  24.            android:orientation="vertical">
  25.  
  26.             <Button
  27.  
  28.                android:layout_width="wrap_content"
  29.                android:layout_height="51dp"
  30.                android:background="@drawable/curlingicon"
  31.                android:fontFamily="sans-serif-medium"
  32.                android:padding="16dp"
  33.                android:text=" " />
  34.  
  35.             <TextView
  36.                android:id="@+id/team_a"
  37.                android:layout_width="match_parent"
  38.                android:layout_height="wrap_content"
  39.                android:background="@android:color/holo_red_light"
  40.                android:fontFamily="sans-serif-medium"
  41.                android:gravity="center"
  42.                android:padding="10dp"
  43.                android:text="Team A"
  44.                android:textAllCaps="true"
  45.                android:textColor="@android:color/white"
  46.                android:textStyle="bold" />
  47.  
  48.             <Button
  49.                android:id="@+id/blank"
  50.                android:layout_width="match_parent"
  51.                android:layout_height="wrap_content"
  52.                android:layout_marginBottom="0dp"
  53.                android:layout_marginLeft="0dp"
  54.                android:layout_marginRight="0dp"
  55.                android:background="@android:color/holo_red_light"
  56.                android:onClick="incrementThreeA"
  57.                android:visibility="invisible" />
  58.  
  59.  
  60.             <TextView
  61.                android:id="@+id/team_b"
  62.                android:layout_width="match_parent"
  63.                android:layout_height="wrap_content"
  64.                android:background="@color/colorPrimaryDark"
  65.                android:fontFamily="sans-serif-medium"
  66.                android:gravity="center"
  67.                android:padding="10dp"
  68.                android:text="Team B"
  69.                android:textAllCaps="true"
  70.                android:textColor="@android:color/white"
  71.                android:textStyle="bold" />
  72.  
  73.             <Button
  74.                android:id="@+id/plus"
  75.                android:layout_width="match_parent"
  76.                android:layout_height="wrap_content"
  77.                android:layout_marginLeft="0dp"
  78.                android:layout_marginRight="0dp"
  79.                android:background="@color/colorPrimaryDark"
  80.                android:onClick="incrementThreeA"
  81.                android:visibility="invisible" />
  82.  
  83.  
  84.         </LinearLayout>
  85.  
  86.         <LinearLayout
  87.            android:layout_width="0dp"
  88.            android:layout_height="wrap_content"
  89.            android:layout_weight="1"
  90.            android:orientation="vertical">
  91.  
  92.             <TextView
  93.                android:layout_width="match_parent"
  94.                android:layout_height="wrap_content"
  95.                android:background="@color/colorAccent"
  96.                android:fontFamily="sans-serif-medium"
  97.                android:gravity="center"
  98.                android:padding="16dp"
  99.                android:text="1"
  100.                android:textColor="@android:color/white"
  101.                android:textSize="14sp"
  102.                android:visibility="visible" />
  103.  
  104.             <TextView
  105.                android:id="@+id/team_a_score"
  106.                android:layout_width="match_parent"
  107.                android:layout_height="wrap_content"
  108.                android:fontFamily="sans-serif-light"
  109.                android:gravity="center"
  110.                android:padding="10dp"
  111.                android:textColor="#000000"
  112.                android:textSize="14sp"
  113.                android:textStyle="bold" />
  114.  
  115.  
  116.             <Button
  117.                android:id="@+id/team_a_button"
  118.                style="@style/Widget.AppCompat.Button.Borderless.Colored"
  119.                android:layout_width="match_parent"
  120.                android:layout_height="wrap_content"
  121.                android:layout_marginLeft="0dp"
  122.                android:layout_marginRight="0dp"
  123.                android:onClick="incrementTeamA"
  124.                android:text="+"
  125.                android:textColor="@android:color/holo_red_light"
  126.                android:textSize="18sp" />
  127.  
  128.  
  129.             <TextView
  130.                android:id="@+id/team_b_score"
  131.                android:layout_width="match_parent"
  132.                android:layout_height="wrap_content"
  133.                android:fontFamily="sans-serif-light"
  134.                android:gravity="center"
  135.                android:padding="10dp"
  136.                android:textColor="#000000"
  137.                android:textSize="14sp"
  138.                android:textStyle="bold" />
  139.  
  140.             <Button
  141.                android:id="@+id/team_b_button"
  142.                style="@style/Widget.AppCompat.Button.Borderless"
  143.                android:layout_width="match_parent"
  144.                android:layout_height="wrap_content"
  145.                android:layout_marginLeft="0dp"
  146.                android:layout_marginRight="0dp"
  147.                android:onClick="incrementTeamB"
  148.                android:text="+"
  149.                android:textColor="@color/colorPrimaryDark"
  150.                android:textSize="18sp" />
  151.  
  152.         </LinearLayout>
  153.  
  154.         <LinearLayout
  155.            android:layout_width="0dp"
  156.            android:layout_height="wrap_content"
  157.            android:layout_weight="1"
  158.            android:orientation="vertical">
  159.  
  160.             <TextView
  161.                android:layout_width="match_parent"
  162.                android:layout_height="wrap_content"
  163.                android:background="@color/colorAccent"
  164.                android:fontFamily="sans-serif-medium"
  165.                android:gravity="center"
  166.                android:padding="16dp"
  167.                android:text="2"
  168.                android:textColor="@android:color/white"
  169.                android:textSize="14sp"
  170.                android:visibility="visible" />
  171.  
  172.             <TextView
  173.                android:id="@+id/team_a_score2"
  174.                android:layout_width="match_parent"
  175.                android:layout_height="wrap_content"
  176.                android:fontFamily="sans-serif-light"
  177.                android:gravity="center"
  178.                android:padding="10dp"
  179.                android:textColor="#000000"
  180.                android:textSize="14sp"
  181.                android:textStyle="bold" />
  182.  
  183.             <Button
  184.                android:id="@+id/team_a_button2"
  185.                style="@style/Widget.AppCompat.Button.Borderless"
  186.                android:layout_width="match_parent"
  187.                android:layout_height="wrap_content"
  188.                android:layout_marginLeft="0dp"
  189.                android:layout_marginRight="0dp"
  190.                android:onClick="incrementTeamA2"
  191.                android:text="+"
  192.                android:textColor="@android:color/holo_red_light"
  193.                android:textSize="18sp" />
  194.  
  195.  
  196.             <TextView
  197.                android:id="@+id/team_b_score2"
  198.                android:layout_width="match_parent"
  199.                android:layout_height="wrap_content"
  200.                android:fontFamily="sans-serif-light"
  201.                android:gravity="center"
  202.                android:padding="10dp"
  203.                android:textColor="#000000"
  204.                android:textSize="14sp"
  205.                android:textStyle="bold" />
  206.  
  207.             <Button
  208.                android:id="@+id/team_b_button2"
  209.                style="@style/Widget.AppCompat.Button.Borderless"
  210.                android:layout_width="match_parent"
  211.                android:layout_height="wrap_content"
  212.                android:layout_marginLeft="0dp"
  213.                android:layout_marginRight="0dp"
  214.                android:onClick="incrementTeamB2"
  215.                android:text="+"
  216.                android:textColor="@color/colorPrimaryDark"
  217.                android:textSize="18sp" />
  218.         </LinearLayout>
  219.  
  220.         <LinearLayout
  221.            android:layout_width="0dp"
  222.            android:layout_height="wrap_content"
  223.            android:layout_weight="1"
  224.            android:orientation="vertical">
  225.  
  226.             <TextView
  227.                android:layout_width="match_parent"
  228.                android:layout_height="wrap_content"
  229.                android:background="@color/colorAccent"
  230.                android:fontFamily="sans-serif-medium"
  231.                android:gravity="center"
  232.                android:padding="16dp"
  233.                android:text="3"
  234.                android:textColor="@android:color/white"
  235.                android:textSize="14sp"
  236.                android:visibility="visible" />
  237.  
  238.             <TextView
  239.                android:id="@+id/team_a_score3"
  240.                android:layout_width="match_parent"
  241.                android:layout_height="wrap_content"
  242.                android:fontFamily="sans-serif-light"
  243.                android:gravity="center"
  244.                android:padding="10dp"
  245.                android:textColor="#000000"
  246.                android:textSize="14sp"
  247.                android:textStyle="bold" />
  248.  
  249.             <Button
  250.                android:id="@+id/team_a_button3"
  251.                style="@style/Widget.AppCompat.Button.Borderless"
  252.                android:layout_width="match_parent"
  253.                android:layout_height="wrap_content"
  254.                android:layout_marginLeft="0dp"
  255.                android:layout_marginRight="0dp"
  256.                android:onClick="incrementTeamA3"
  257.                android:text="+"
  258.                android:textColor="@android:color/holo_red_light"
  259.                android:textSize="18sp" />
  260.  
  261.  
  262.             <TextView
  263.                android:id="@+id/team_b_score3"
  264.                android:layout_width="match_parent"
  265.                android:layout_height="wrap_content"
  266.                android:fontFamily="sans-serif-light"
  267.                android:gravity="center"
  268.                android:padding="10dp"
  269.                android:textColor="#000000"
  270.                android:textSize="14sp"
  271.                android:textStyle="bold" />
  272.  
  273.             <Button
  274.                android:id="@+id/team_b_button3"
  275.                style="@style/Widget.AppCompat.Button.Borderless"
  276.                android:layout_width="match_parent"
  277.                android:layout_height="wrap_content"
  278.                android:layout_marginLeft="0dp"
  279.                android:layout_marginRight="0dp"
  280.                android:onClick="incrementTeamB3"
  281.                android:text="+"
  282.                android:textColor="@color/colorPrimaryDark"
  283.                android:textSize="18sp" />
  284.         </LinearLayout>
  285.  
  286.         <LinearLayout
  287.            android:layout_width="0dp"
  288.            android:layout_height="wrap_content"
  289.            android:layout_weight="1"
  290.            android:orientation="vertical">
  291.  
  292.             <TextView
  293.                android:layout_width="match_parent"
  294.                android:layout_height="wrap_content"
  295.                android:background="@color/colorAccent"
  296.                android:fontFamily="sans-serif-medium"
  297.                android:gravity="center"
  298.                android:padding="16dp"
  299.                android:text="4"
  300.                android:textColor="@android:color/white"
  301.                android:textSize="14sp"
  302.                android:visibility="visible" />
  303.  
  304.             <TextView
  305.                android:id="@+id/team_a_score4"
  306.                android:layout_width="match_parent"
  307.                android:layout_height="wrap_content"
  308.                android:fontFamily="sans-serif-light"
  309.                android:gravity="center"
  310.                android:padding="10dp"
  311.                android:textColor="#000000"
  312.                android:textSize="14sp"
  313.                android:textStyle="bold" />
  314.  
  315.             <Button
  316.                android:id="@+id/team_a_button4"
  317.                style="@style/Widget.AppCompat.Button.Borderless"
  318.                android:layout_width="match_parent"
  319.                android:layout_height="wrap_content"
  320.                android:layout_marginLeft="0dp"
  321.                android:layout_marginRight="0dp"
  322.                android:onClick="incrementTeamA4"
  323.                android:text="+"
  324.                android:textColor="@android:color/holo_red_light"
  325.                android:textSize="18sp" />
  326.  
  327.  
  328.             <TextView
  329.                android:id="@+id/team_b_score4"
  330.                android:layout_width="match_parent"
  331.                android:layout_height="wrap_content"
  332.                android:fontFamily="sans-serif-light"
  333.                android:gravity="center"
  334.                android:padding="10dp"
  335.                android:textColor="#000000"
  336.                android:textSize="14sp"
  337.                android:textStyle="bold" />
  338.  
  339.             <Button
  340.                android:id="@+id/team_b_button4"
  341.                style="@style/Widget.AppCompat.Button.Borderless"
  342.                android:layout_width="match_parent"
  343.                android:layout_height="wrap_content"
  344.                android:layout_marginLeft="0dp"
  345.                android:layout_marginRight="0dp"
  346.                android:onClick="incrementTeamB4"
  347.                android:text="+"
  348.                android:textColor="@color/colorPrimaryDark"
  349.                android:textSize="18sp" />
  350.         </LinearLayout>
  351.  
  352.         <LinearLayout
  353.            android:layout_width="0dp"
  354.            android:layout_height="wrap_content"
  355.            android:layout_weight="1"
  356.            android:orientation="vertical">
  357.  
  358.             <TextView
  359.                android:layout_width="match_parent"
  360.                android:layout_height="wrap_content"
  361.                android:background="@color/colorAccent"
  362.                android:fontFamily="sans-serif-medium"
  363.                android:gravity="center"
  364.                android:padding="16dp"
  365.                android:text="5"
  366.                android:textColor="@android:color/white"
  367.                android:textSize="14sp"
  368.                android:visibility="visible" />
  369.  
  370.             <TextView
  371.                android:id="@+id/team_a_score5"
  372.                android:layout_width="match_parent"
  373.                android:layout_height="wrap_content"
  374.                android:fontFamily="sans-serif-light"
  375.                android:gravity="center"
  376.                android:padding="10dp"
  377.                android:textColor="#000000"
  378.                android:textSize="14sp"
  379.                android:textStyle="bold" />
  380.  
  381.             <Button
  382.                android:id="@+id/team_a_button5"
  383.                style="@style/Widget.AppCompat.Button.Borderless"
  384.                android:layout_width="match_parent"
  385.                android:layout_height="wrap_content"
  386.                android:layout_marginLeft="0dp"
  387.                android:layout_marginRight="0dp"
  388.                android:onClick="incrementTeamA5"
  389.                android:text="+"
  390.                android:textColor="@android:color/holo_red_light"
  391.                android:textSize="18sp" />
  392.  
  393.  
  394.             <TextView
  395.                android:id="@+id/team_b_score5"
  396.                android:layout_width="match_parent"
  397.                android:layout_height="wrap_content"
  398.                android:fontFamily="sans-serif-light"
  399.                android:gravity="center"
  400.                android:padding="10dp"
  401.                android:textColor="#000000"
  402.                android:textSize="14sp"
  403.                android:textStyle="bold" />
  404.  
  405.             <Button
  406.                android:id="@+id/team_b_button5"
  407.                style="@style/Widget.AppCompat.Button.Borderless"
  408.                android:layout_width="match_parent"
  409.                android:layout_height="wrap_content"
  410.                android:layout_marginLeft="0dp"
  411.                android:layout_marginRight="0dp"
  412.                android:onClick="incrementTeamB5"
  413.                android:text="+"
  414.                android:textColor="@color/colorPrimaryDark"
  415.                android:textSize="18sp" />
  416.         </LinearLayout>
  417.  
  418.         <LinearLayout
  419.            android:layout_width="0dp"
  420.            android:layout_height="wrap_content"
  421.            android:layout_weight="1"
  422.            android:orientation="vertical">
  423.  
  424.             <TextView
  425.                android:layout_width="match_parent"
  426.                android:layout_height="wrap_content"
  427.                android:background="@color/colorAccent"
  428.                android:fontFamily="sans-serif-medium"
  429.                android:gravity="center"
  430.                android:padding="16dp"
  431.                android:text="6"
  432.                android:textColor="@android:color/white"
  433.                android:textSize="14sp"
  434.                android:visibility="visible" />
  435.  
  436.             <TextView
  437.                android:id="@+id/team_a_score6"
  438.                android:layout_width="match_parent"
  439.                android:layout_height="wrap_content"
  440.                android:fontFamily="sans-serif-light"
  441.                android:gravity="center"
  442.                android:padding="10dp"
  443.                android:textColor="#000000"
  444.                android:textSize="14sp"
  445.                android:textStyle="bold" />
  446.  
  447.             <Button
  448.                android:id="@+id/team_a_button6"
  449.                style="@style/Widget.AppCompat.Button.Borderless"
  450.                android:layout_width="match_parent"
  451.                android:layout_height="wrap_content"
  452.                android:layout_marginLeft="0dp"
  453.                android:layout_marginRight="0dp"
  454.                android:onClick="incrementTeamA6"
  455.                android:text="+"
  456.                android:textColor="@android:color/holo_red_light"
  457.                android:textSize="18sp" />
  458.  
  459.  
  460.             <TextView
  461.                android:id="@+id/team_b_score6"
  462.                android:layout_width="match_parent"
  463.                android:layout_height="wrap_content"
  464.                android:fontFamily="sans-serif-light"
  465.                android:gravity="center"
  466.                android:padding="10dp"
  467.                android:textColor="#000000"
  468.                android:textSize="14sp"
  469.                android:textStyle="bold" />
  470.  
  471.             <Button
  472.                android:id="@+id/team_b_button6"
  473.                style="@style/Widget.AppCompat.Button.Borderless"
  474.                android:layout_width="match_parent"
  475.                android:layout_height="wrap_content"
  476.                android:layout_marginLeft="0dp"
  477.                android:layout_marginRight="0dp"
  478.                android:onClick="incrementTeamB6"
  479.                android:text="+"
  480.                android:textColor="@color/colorPrimaryDark"
  481.                android:textSize="18sp" />
  482.         </LinearLayout>
  483.  
  484.         <LinearLayout
  485.            android:layout_width="0dp"
  486.            android:layout_height="wrap_content"
  487.            android:layout_weight="1"
  488.            android:orientation="vertical">
  489.  
  490.             <TextView
  491.                android:layout_width="match_parent"
  492.                android:layout_height="wrap_content"
  493.                android:background="@color/colorAccent"
  494.                android:fontFamily="sans-serif-medium"
  495.                android:gravity="center"
  496.                android:padding="16dp"
  497.                android:text="7"
  498.                android:textColor="@android:color/white"
  499.                android:textSize="14sp"
  500.                android:visibility="visible" />
  501.  
  502.             <TextView
  503.                android:id="@+id/team_a_score7"
  504.                android:layout_width="match_parent"
  505.                android:layout_height="wrap_content"
  506.                android:fontFamily="sans-serif-light"
  507.                android:gravity="center"
  508.                android:padding="10dp"
  509.                android:textColor="#000000"
  510.                android:textSize="14sp"
  511.                android:textStyle="bold" />
  512.  
  513.             <Button
  514.                android:id="@+id/team_a_button7"
  515.                style="@style/Widget.AppCompat.Button.Borderless"
  516.                android:layout_width="match_parent"
  517.                android:layout_height="wrap_content"
  518.                android:layout_marginLeft="0dp"
  519.                android:layout_marginRight="0dp"
  520.                android:onClick="incrementTeamA7"
  521.                android:text="+"
  522.                android:textColor="@android:color/holo_red_light"
  523.                android:textSize="18sp" />
  524.  
  525.  
  526.             <TextView
  527.                android:id="@+id/team_b_score7"
  528.                android:layout_width="match_parent"
  529.                android:layout_height="wrap_content"
  530.                android:fontFamily="sans-serif-light"
  531.                android:gravity="center"
  532.                android:padding="10dp"
  533.                android:textColor="#000000"
  534.                android:textSize="14sp"
  535.                android:textStyle="bold" />
  536.  
  537.             <Button
  538.                android:id="@+id/team_b_button7"
  539.                style="@style/Widget.AppCompat.Button.Borderless"
  540.                android:layout_width="match_parent"
  541.                android:layout_height="wrap_content"
  542.                android:layout_marginLeft="0dp"
  543.                android:layout_marginRight="0dp"
  544.                android:onClick="incrementTeamB7"
  545.                android:text="+"
  546.                android:textColor="@color/colorPrimaryDark"
  547.                android:textSize="18sp" />
  548.  
  549.         </LinearLayout>
  550.  
  551.         <LinearLayout
  552.            android:layout_width="0dp"
  553.            android:layout_height="wrap_content"
  554.            android:layout_weight="1"
  555.            android:orientation="vertical">
  556.  
  557.             <TextView
  558.                android:layout_width="match_parent"
  559.                android:layout_height="wrap_content"
  560.                android:background="@color/colorAccent"
  561.                android:fontFamily="sans-serif-medium"
  562.                android:gravity="center"
  563.                android:padding="16dp"
  564.                android:text="8"
  565.                android:textColor="@android:color/white"
  566.                android:textSize="14sp"
  567.                android:visibility="visible" />
  568.  
  569.             <TextView
  570.                android:id="@+id/team_a_score8"
  571.                android:layout_width="match_parent"
  572.                android:layout_height="wrap_content"
  573.                android:fontFamily="sans-serif-light"
  574.                android:gravity="center"
  575.                android:padding="10dp"
  576.                android:textColor="#000000"
  577.                android:textSize="14sp"
  578.                android:textStyle="bold" />
  579.  
  580.             <Button
  581.                android:id="@+id/team_a_button8"
  582.                style="@style/Widget.AppCompat.Button.Borderless"
  583.                android:layout_width="match_parent"
  584.                android:layout_height="wrap_content"
  585.                android:layout_marginLeft="0dp"
  586.                android:layout_marginRight="0dp"
  587.                android:onClick="incrementTeamA8"
  588.                android:text="+"
  589.                android:textColor="@android:color/holo_red_light"
  590.                android:textSize="18sp" />
  591.  
  592.  
  593.             <TextView
  594.                android:id="@+id/team_b_score8"
  595.                android:layout_width="match_parent"
  596.                android:layout_height="wrap_content"
  597.                android:fontFamily="sans-serif-light"
  598.                android:gravity="center"
  599.                android:padding="10dp"
  600.                android:textColor="#000000"
  601.                android:textSize="14sp"
  602.                android:textStyle="bold" />
  603.  
  604.             <Button
  605.                android:id="@+id/team_b_button8"
  606.                style="@style/Widget.AppCompat.Button.Borderless"
  607.                android:layout_width="match_parent"
  608.                android:layout_height="wrap_content"
  609.                android:layout_marginLeft="0dp"
  610.                android:layout_marginRight="0dp"
  611.                android:onClick="incrementTeamB8"
  612.                android:text="+"
  613.                android:textColor="@color/colorPrimaryDark"
  614.                android:textSize="18sp" />
  615.  
  616.         </LinearLayout>
  617.  
  618.         <LinearLayout
  619.            android:layout_width="0dp"
  620.            android:layout_height="wrap_content"
  621.            android:layout_weight="1"
  622.            android:orientation="vertical">
  623.  
  624.             <TextView
  625.                android:layout_width="match_parent"
  626.                android:layout_height="wrap_content"
  627.                android:background="@color/colorAccent"
  628.                android:fontFamily="sans-serif-medium"
  629.                android:gravity="center"
  630.                android:padding="16dp"
  631.                android:text="9"
  632.                android:textColor="@android:color/white"
  633.                android:textSize="14sp"
  634.                android:visibility="visible" />
  635.  
  636.             <TextView
  637.                android:id="@+id/team_a_score9"
  638.                android:layout_width="match_parent"
  639.                android:layout_height="wrap_content"
  640.                android:fontFamily="sans-serif-light"
  641.                android:gravity="center"
  642.                android:padding="10dp"
  643.                android:textColor="#000000"
  644.                android:textSize="14sp"
  645.                android:textStyle="bold" />
  646.  
  647.             <Button
  648.                android:id="@+id/team_a_button9"
  649.                style="@style/Widget.AppCompat.Button.Borderless"
  650.                android:layout_width="match_parent"
  651.                android:layout_height="wrap_content"
  652.                android:layout_marginLeft="0dp"
  653.                android:layout_marginRight="0dp"
  654.                android:onClick="incrementTeamA9"
  655.                android:text="+"
  656.                android:textColor="@android:color/holo_red_light"
  657.                android:textSize="18sp" />
  658.  
  659.  
  660.             <TextView
  661.                android:id="@+id/team_b_score9"
  662.                android:layout_width="match_parent"
  663.                android:layout_height="wrap_content"
  664.                android:fontFamily="sans-serif-light"
  665.                android:gravity="center"
  666.                android:padding="10dp"
  667.                android:textColor="#000000"
  668.                android:textSize="14sp"
  669.                android:textStyle="bold" />
  670.  
  671.             <Button
  672.                android:id="@+id/team_b_button9"
  673.                style="@style/Widget.AppCompat.Button.Borderless"
  674.                android:layout_width="match_parent"
  675.                android:layout_height="wrap_content"
  676.                android:layout_marginLeft="0dp"
  677.                android:layout_marginRight="0dp"
  678.                android:onClick="incrementTeamB9"
  679.                android:text="+"
  680.                android:textColor="@color/colorPrimaryDark"
  681.                android:textSize="18sp" />
  682.         </LinearLayout>
  683.  
  684.         <LinearLayout
  685.            android:layout_width="0dp"
  686.            android:layout_height="wrap_content"
  687.            android:layout_weight="2"
  688.            android:orientation="vertical">
  689.  
  690.             <TextView
  691.                android:layout_width="match_parent"
  692.                android:layout_height="wrap_content"
  693.                android:background="@color/colorAccent"
  694.                android:fontFamily="sans-serif-medium"
  695.                android:gravity="center"
  696.                android:padding="16dp"
  697.                android:text="10"
  698.                android:textColor="@android:color/white"
  699.                android:textSize="14sp"
  700.                android:visibility="visible" />
  701.  
  702.             <TextView
  703.                android:id="@+id/team_a_score10"
  704.                android:layout_width="match_parent"
  705.                android:layout_height="wrap_content"
  706.                android:fontFamily="sans-serif-light"
  707.                android:gravity="center"
  708.                android:padding="10dp"
  709.                android:textColor="#000000"
  710.                android:textSize="14sp"
  711.                android:textStyle="bold" />
  712.  
  713.             <Button
  714.                android:id="@+id/team_a_button10"
  715.                style="@style/Widget.AppCompat.Button.Borderless"
  716.                android:layout_width="match_parent"
  717.                android:layout_height="wrap_content"
  718.                android:layout_marginLeft="0dp"
  719.                android:layout_marginRight="0dp"
  720.                android:onClick="incrementTeamA10"
  721.                android:text="+"
  722.                android:textColor="@android:color/holo_red_light"
  723.                android:textSize="18sp" />
  724.  
  725.  
  726.             <TextView
  727.                android:id="@+id/team_b_score10"
  728.                android:layout_width="match_parent"
  729.                android:layout_height="wrap_content"
  730.                android:fontFamily="sans-serif-light"
  731.                android:gravity="center"
  732.                android:padding="10dp"
  733.                android:textColor="#000000"
  734.                android:textSize="14sp"
  735.                android:textStyle="bold" />
  736.  
  737.             <Button
  738.                android:id="@+id/team_b_button10"
  739.                style="@style/Widget.AppCompat.Button.Borderless"
  740.                android:layout_width="match_parent"
  741.                android:layout_height="wrap_content"
  742.                android:layout_marginLeft="0dp"
  743.                android:layout_marginRight="0dp"
  744.                android:onClick="incrementTeamB10"
  745.                android:text="+"
  746.                android:textColor="@color/colorPrimaryDark"
  747.                android:textSize="18sp" />
  748.         </LinearLayout>
  749.  
  750.         <View
  751.            android:layout_width="1dp"
  752.            android:layout_height="match_parent"
  753.            android:layout_marginTop="0dp"
  754.            android:background="@android:color/darker_gray" />
  755.  
  756.         <LinearLayout
  757.            android:layout_width="0dp"
  758.            android:layout_height="wrap_content"
  759.            android:layout_weight="2"
  760.            android:orientation="vertical">
  761.  
  762.             <TextView
  763.                android:layout_width="match_parent"
  764.                android:layout_height="wrap_content"
  765.                android:background="@color/colorAccent"
  766.                android:fontFamily="sans-serif-medium"
  767.                android:gravity="center"
  768.                android:padding="16dp"
  769.                android:text="Final"
  770.                android:textColor="@android:color/white"
  771.                android:textSize="14sp"
  772.                android:visibility="visible" />
  773.  
  774.             <TextView
  775.                android:id="@+id/team_a_score11"
  776.                android:layout_width="match_parent"
  777.                android:layout_height="wrap_content"
  778.                android:fontFamily="sans-serif-light"
  779.                android:gravity="center"
  780.                android:padding="10dp"
  781.                android:textColor="#000000"
  782.                android:textSize="14sp"
  783.                android:textStyle="bold" />
  784.  
  785.             <Button
  786.                android:id="@+id/team_a_button11"
  787.                android:layout_width="match_parent"
  788.                android:layout_height="wrap_content"
  789.                android:layout_marginLeft="0dp"
  790.                android:layout_marginRight="0dp"
  791.                android:backgroundTint="@android:color/holo_red_light"
  792.                android:onClick="incrementTeamA11"
  793.                android:text="Total"
  794.                android:textColor="@android:color/white"
  795.                android:textSize="14sp"
  796.                android:textStyle="bold" />
  797.  
  798.  
  799.             <TextView
  800.                android:id="@+id/team_b_score11"
  801.                android:layout_width="match_parent"
  802.                android:layout_height="wrap_content"
  803.                android:fontFamily="sans-serif-light"
  804.                android:gravity="center"
  805.                android:padding="10dp"
  806.                android:textColor="#000000"
  807.                android:textSize="14sp"
  808.                android:textStyle="bold" />
  809.  
  810.             <Button
  811.                android:id="@+id/team_b_score11"
  812.                android:layout_width="match_parent"
  813.                android:layout_height="wrap_content"
  814.                android:layout_marginLeft="0dp"
  815.                android:layout_marginRight="0dp"
  816.                android:backgroundTint="@color/colorPrimaryDark"
  817.                android:onClick="incrementTeamB11"
  818.                android:text="Total"
  819.                android:textColor="@android:color/white"
  820.                android:textStyle="bold" />
  821.         </LinearLayout>
  822.  
  823.     </LinearLayout>
  824.  
  825.     <Button
  826.        android:id="@+id/reset"
  827.        style="@style/Widget.AppCompat.Button"
  828.        android:layout_width="wrap_content"
  829.        android:layout_height="wrap_content"
  830.        android:layout_alignParentBottom="true"
  831.        android:layout_centerInParent="true"
  832.        android:layout_marginBottom="32dp"
  833.        android:backgroundTint="#F9E356"
  834.        android:onClick="reset"
  835.        android:text="RESET" />
  836.  
  837. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement