Advertisement
Guest User

my_layout.xml

a guest
Dec 13th, 2018
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 25.36 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    tools:context=".Test"
  8.    android:background="#292930">
  9.  
  10.  
  11.  
  12.  
  13.     <RelativeLayout
  14.        android:layout_width="match_parent"
  15.        android:layout_height="wrap_content"
  16.        android:layout_marginTop="20dp"
  17.        android:id="@+id/entireBoard">
  18.  
  19.         <LinearLayout
  20.            android:id="@+id/row8"
  21.            android:layout_width="344dp"
  22.            android:layout_height="43dp"
  23.            android:orientation="horizontal"
  24.            android:layout_centerHorizontal="true"
  25.            android:weightSum="8">
  26.  
  27.             <ImageView
  28.                android:id="@+id/B8"
  29.                android:layout_width="43dp"
  30.                android:layout_height="match_parent"
  31.                android:layout_weight="1"
  32.                android:background="@color/colorBoardLight"
  33.                android:src="@drawable/brook"
  34.                android:tag="brook"/>
  35.             <ImageView
  36.                android:layout_width="43dp"
  37.                android:layout_height="match_parent"
  38.                android:layout_weight="1"
  39.                android:background="@color/colorBoardDark"
  40.                android:src="@drawable/bknight"/>
  41.             <ImageView
  42.                android:layout_width="43dp"
  43.                android:layout_height="match_parent"
  44.                android:layout_weight="1"
  45.                android:background="@color/colorBoardLight"
  46.                android:src="@drawable/bbishop"/>
  47.  
  48.             <ImageView
  49.                android:layout_width="43dp"
  50.                android:layout_height="match_parent"
  51.                android:layout_weight="1"
  52.                android:background="@color/colorBoardDark"
  53.                android:src="@drawable/bqueen"/>
  54.             <ImageView
  55.                android:layout_width="43dp"
  56.                android:layout_height="match_parent"
  57.                android:layout_weight="1"
  58.                android:background="@color/colorBoardLight"
  59.                android:src="@drawable/bking"/>
  60.  
  61.             <ImageView
  62.                android:layout_width="43dp"
  63.                android:layout_height="match_parent"
  64.                android:layout_weight="1"
  65.                android:background="@color/colorBoardDark"
  66.                android:src="@drawable/bbishop"/>
  67.             <ImageView
  68.                android:layout_width="43dp"
  69.                android:layout_height="match_parent"
  70.                android:layout_weight="1"
  71.                android:background="@color/colorBoardLight"
  72.                android:src="@drawable/bknight"/>
  73.  
  74.             <RelativeLayout
  75.                android:layout_width="43dp"
  76.                android:layout_height="match_parent"
  77.                android:layout_weight="1">
  78.  
  79.                 <ImageView
  80.                    android:layout_width="match_parent"
  81.                    android:layout_height="match_parent"
  82.                    android:background="@color/colorBoardDark"
  83.                    android:src="@drawable/brook"/>
  84.  
  85.                 <TextView
  86.                    style="@style/textLight"
  87.                    android:text="8"
  88.                    android:layout_alignParentEnd="true"
  89.                    />
  90.  
  91.             </RelativeLayout>
  92.  
  93.  
  94.  
  95.  
  96.  
  97.         </LinearLayout>
  98.  
  99.         <LinearLayout
  100.            android:id="@+id/row7"
  101.            android:layout_below="@+id/row8"
  102.            android:layout_width="344dp"
  103.            android:layout_height="43dp"
  104.            android:orientation="horizontal"
  105.            android:layout_centerHorizontal="true"
  106.            android:weightSum="8">
  107.  
  108.             <ImageView
  109.                android:layout_width="43dp"
  110.                android:layout_height="match_parent"
  111.                android:layout_weight="1"
  112.                android:background="@color/colorBoardDark"
  113.                android:src="@drawable/bpawn"/>
  114.  
  115.             <ImageView
  116.                android:layout_width="43dp"
  117.                android:layout_height="match_parent"
  118.                android:layout_weight="1"
  119.                android:background="@color/colorBoardLight"
  120.                android:src="@drawable/bpawn"/>
  121.  
  122.             <ImageView
  123.                android:layout_width="43dp"
  124.                android:layout_height="match_parent"
  125.                android:layout_weight="1"
  126.                android:background="@color/colorBoardDark"
  127.                android:src="@drawable/bpawn"/>
  128.  
  129.             <ImageView
  130.                android:layout_width="43dp"
  131.                android:layout_height="match_parent"
  132.                android:layout_weight="1"
  133.                android:background="@color/colorBoardLight"
  134.                android:src="@drawable/bpawn"/>
  135.             <ImageView
  136.                android:layout_width="43dp"
  137.                android:layout_height="match_parent"
  138.                android:layout_weight="1"
  139.                android:background="@color/colorBoardDark"
  140.                android:src="@drawable/bpawn"/>
  141.  
  142.             <ImageView
  143.                android:layout_width="43dp"
  144.                android:layout_height="match_parent"
  145.                android:layout_weight="1"
  146.                android:background="@color/colorBoardLight"
  147.                android:src="@drawable/bpawn"/>
  148.             <ImageView
  149.                android:layout_width="43dp"
  150.                android:layout_height="match_parent"
  151.                android:layout_weight="1"
  152.                android:background="@color/colorBoardDark"
  153.                android:src="@drawable/bpawn"/>
  154.  
  155.             <RelativeLayout
  156.                android:layout_width="43dp"
  157.                android:layout_height="match_parent"
  158.                android:layout_weight="1">
  159.  
  160.                 <ImageView
  161.                    android:layout_width="match_parent"
  162.                    android:layout_height="match_parent"
  163.                    android:background="@color/colorBoardLight"
  164.                    android:src="@drawable/bpawn"/>
  165.  
  166.                 <TextView
  167.                    style="@style/textDark"
  168.                    android:text="7"
  169.                    android:layout_alignParentEnd="true"
  170.                    />
  171.  
  172.             </RelativeLayout>
  173.  
  174.  
  175.         </LinearLayout>
  176.  
  177.         <LinearLayout
  178.            android:id="@+id/row6"
  179.            android:layout_below="@id/row7"
  180.            android:layout_width="344dp"
  181.            android:layout_height="43dp"
  182.            android:orientation="horizontal"
  183.            android:layout_centerHorizontal="true"
  184.            android:weightSum="8">
  185.  
  186.             <ImageView
  187.                android:layout_width="43dp"
  188.                android:layout_height="match_parent"
  189.                android:layout_weight="1"
  190.                android:background="@color/colorBoardLight"/>
  191.             <ImageView
  192.                android:layout_width="43dp"
  193.                android:layout_height="match_parent"
  194.                android:layout_weight="1"
  195.                android:background="@color/colorBoardDark"/>
  196.             <ImageView
  197.                android:layout_width="43dp"
  198.                android:layout_height="match_parent"
  199.                android:layout_weight="1"
  200.                android:background="@color/colorBoardLight"/>
  201.  
  202.             <ImageView
  203.                android:layout_width="43dp"
  204.                android:layout_height="match_parent"
  205.                android:layout_weight="1"
  206.                android:background="@color/colorBoardDark"/>
  207.             <ImageView
  208.                android:layout_width="43dp"
  209.                android:layout_height="match_parent"
  210.                android:layout_weight="1"
  211.                android:background="@color/colorBoardLight"/>
  212.  
  213.             <ImageView
  214.                android:layout_width="43dp"
  215.                android:layout_height="match_parent"
  216.                android:layout_weight="1"
  217.                android:background="@color/colorBoardDark"/>
  218.             <ImageView
  219.                android:layout_width="43dp"
  220.                android:layout_height="match_parent"
  221.                android:layout_weight="1"
  222.                android:background="@color/colorBoardLight"/>
  223.  
  224.             <RelativeLayout
  225.                android:layout_width="43dp"
  226.                android:layout_height="match_parent"
  227.                android:layout_weight="1">
  228.  
  229.                 <ImageView
  230.                    android:layout_width="match_parent"
  231.                    android:layout_height="match_parent"
  232.                    android:background="@color/colorBoardDark"/>
  233.  
  234.                 <TextView
  235.                    style="@style/textLight"
  236.                    android:text="6"
  237.                    android:layout_alignParentEnd="true"
  238.                    />
  239.  
  240.             </RelativeLayout>
  241.  
  242.  
  243.  
  244.         </LinearLayout>
  245.  
  246.         <LinearLayout
  247.            android:id="@+id/row5"
  248.            android:layout_below="@+id/row6"
  249.            android:layout_width="344dp"
  250.            android:layout_height="43dp"
  251.            android:orientation="horizontal"
  252.            android:layout_centerHorizontal="true"
  253.            android:weightSum="8">
  254.  
  255.             <ImageView
  256.                android:layout_width="43dp"
  257.                android:layout_height="match_parent"
  258.                android:layout_weight="1"
  259.                android:background="@color/colorBoardDark"/>
  260.  
  261.             <ImageView
  262.                android:layout_width="43dp"
  263.                android:layout_height="match_parent"
  264.                android:layout_weight="1"
  265.                android:background="@color/colorBoardLight"/>
  266.  
  267.             <ImageView
  268.                android:layout_width="43dp"
  269.                android:layout_height="match_parent"
  270.                android:layout_weight="1"
  271.                android:background="@color/colorBoardDark"/>
  272.  
  273.             <ImageView
  274.                android:layout_width="43dp"
  275.                android:layout_height="match_parent"
  276.                android:id="@+id/moveKingHere"
  277.                android:layout_weight="1"
  278.                android:background="@color/colorBoardLight"/>
  279.             <ImageView
  280.                android:layout_width="43dp"
  281.                android:layout_height="match_parent"
  282.                android:layout_weight="1"
  283.                android:background="@color/colorBoardDark"/>
  284.  
  285.             <ImageView
  286.                android:layout_width="43dp"
  287.                android:layout_height="match_parent"
  288.                android:layout_weight="1"
  289.                android:background="@color/colorBoardLight"/>
  290.             <ImageView
  291.                android:layout_width="43dp"
  292.                android:layout_height="match_parent"
  293.                android:layout_weight="1"
  294.                android:background="@color/colorBoardDark"/>
  295.  
  296.             <RelativeLayout
  297.                android:layout_width="43dp"
  298.                android:layout_height="match_parent"
  299.                android:layout_weight="1">
  300.  
  301.                 <ImageView
  302.                    android:layout_width="match_parent"
  303.                    android:layout_height="match_parent"
  304.                    android:background="@color/colorBoardLight"/>
  305.  
  306.                 <TextView
  307.                    style="@style/textDark"
  308.                    android:text="5"
  309.                    android:layout_alignParentEnd="true"
  310.                    />
  311.  
  312.             </RelativeLayout>
  313.  
  314.  
  315.         </LinearLayout>
  316.  
  317.         <LinearLayout
  318.            android:id="@+id/row4"
  319.            android:layout_below="@id/row5"
  320.            android:layout_width="344dp"
  321.            android:layout_height="43dp"
  322.            android:orientation="horizontal"
  323.            android:layout_centerHorizontal="true"
  324.            android:weightSum="8">
  325.  
  326.             <ImageView
  327.                android:layout_width="43dp"
  328.                android:layout_height="match_parent"
  329.                android:layout_weight="1"
  330.                android:background="@color/colorBoardLight"/>
  331.             <ImageView
  332.                android:layout_width="43dp"
  333.                android:layout_height="match_parent"
  334.                android:layout_weight="1"
  335.                android:background="@color/colorBoardDark"/>
  336.             <ImageView
  337.                android:layout_width="43dp"
  338.                android:layout_height="match_parent"
  339.                android:layout_weight="1"
  340.                android:background="@color/colorBoardLight"/>
  341.  
  342.             <ImageView
  343.                android:layout_width="43dp"
  344.                android:layout_height="match_parent"
  345.                android:layout_weight="1"
  346.                android:background="@color/colorBoardDark"/>
  347.             <ImageView
  348.                android:layout_width="43dp"
  349.                android:layout_height="match_parent"
  350.                android:layout_weight="1"
  351.                android:background="@color/colorBoardLight"/>
  352.  
  353.             <ImageView
  354.                android:layout_width="43dp"
  355.                android:layout_height="match_parent"
  356.                android:layout_weight="1"
  357.                android:background="@color/colorBoardDark"/>
  358.             <ImageView
  359.                android:layout_width="43dp"
  360.                android:layout_height="match_parent"
  361.                android:layout_weight="1"
  362.                android:background="@color/colorBoardLight"/>
  363.  
  364.             <RelativeLayout
  365.                android:layout_width="43dp"
  366.                android:layout_height="match_parent"
  367.                android:layout_weight="1">
  368.  
  369.                 <ImageView
  370.                    android:layout_width="match_parent"
  371.                    android:layout_height="match_parent"
  372.                    android:background="@color/colorBoardDark"/>
  373.  
  374.                 <TextView
  375.                    style="@style/textLight"
  376.                    android:text="4"
  377.                    android:layout_alignParentEnd="true"
  378.                    />
  379.  
  380.             </RelativeLayout>
  381.  
  382.  
  383.  
  384.         </LinearLayout>
  385.  
  386.         <LinearLayout
  387.            android:id="@+id/row3"
  388.            android:layout_below="@+id/row4"
  389.            android:layout_width="344dp"
  390.            android:layout_height="43dp"
  391.            android:orientation="horizontal"
  392.            android:layout_centerHorizontal="true"
  393.            android:weightSum="8">
  394.  
  395.             <ImageView
  396.                android:layout_width="43dp"
  397.                android:layout_height="match_parent"
  398.                android:layout_weight="1"
  399.                android:background="@color/colorBoardDark"/>
  400.  
  401.             <ImageView
  402.                android:layout_width="43dp"
  403.                android:layout_height="match_parent"
  404.                android:layout_weight="1"
  405.                android:background="@color/colorBoardLight"/>
  406.  
  407.             <ImageView
  408.                android:layout_width="43dp"
  409.                android:layout_height="match_parent"
  410.                android:layout_weight="1"
  411.                android:background="@color/colorBoardDark"/>
  412.  
  413.             <ImageView
  414.                android:layout_width="43dp"
  415.                android:layout_height="match_parent"
  416.                android:layout_weight="1"
  417.                android:background="@color/colorBoardLight"/>
  418.             <ImageView
  419.                android:layout_width="43dp"
  420.                android:layout_height="match_parent"
  421.                android:layout_weight="1"
  422.                android:background="@color/colorBoardDark"/>
  423.  
  424.             <ImageView
  425.                android:layout_width="43dp"
  426.                android:layout_height="match_parent"
  427.                android:layout_weight="1"
  428.                android:background="@color/colorBoardLight"/>
  429.             <ImageView
  430.                android:layout_width="43dp"
  431.                android:layout_height="match_parent"
  432.                android:layout_weight="1"
  433.                android:background="@color/colorBoardDark"/>
  434.  
  435.             <RelativeLayout
  436.                android:layout_width="43dp"
  437.                android:layout_height="match_parent"
  438.                android:layout_weight="1">
  439.  
  440.                 <ImageView
  441.                    android:layout_width="match_parent"
  442.                    android:layout_height="match_parent"
  443.                    android:background="@color/colorBoardLight"/>
  444.  
  445.                 <TextView
  446.                    style="@style/textDark"
  447.                    android:text="3"
  448.                    android:layout_alignParentEnd="true"
  449.                    />
  450.  
  451.             </RelativeLayout>
  452.  
  453.  
  454.         </LinearLayout>
  455.  
  456.         <LinearLayout
  457.            android:id="@+id/row2"
  458.            android:layout_below="@id/row3"
  459.            android:layout_width="344dp"
  460.            android:layout_height="43dp"
  461.            android:orientation="horizontal"
  462.            android:layout_centerHorizontal="true"
  463.            android:weightSum="8">
  464.  
  465.             <ImageView
  466.                android:layout_width="43dp"
  467.                android:layout_height="match_parent"
  468.                android:layout_weight="1"
  469.                android:background="@color/colorBoardLight"
  470.                android:src="@drawable/wpawn"/>
  471.             <ImageView
  472.                android:layout_width="43dp"
  473.                android:layout_height="match_parent"
  474.                android:layout_weight="1"
  475.                android:background="@color/colorBoardDark"
  476.                android:src="@drawable/wpawn"/>
  477.             <ImageView
  478.                android:layout_width="43dp"
  479.                android:layout_height="match_parent"
  480.                android:layout_weight="1"
  481.                android:background="@color/colorBoardLight"
  482.                android:src="@drawable/wpawn"/>
  483.  
  484.             <ImageView
  485.                android:layout_width="43dp"
  486.                android:layout_height="match_parent"
  487.                android:layout_weight="1"
  488.                android:background="@color/colorBoardDark"
  489.                android:src="@drawable/wpawn"/>
  490.             <ImageView
  491.                android:layout_width="43dp"
  492.                android:layout_height="match_parent"
  493.                android:layout_weight="1"
  494.                android:background="@color/colorBoardLight"
  495.                android:src="@drawable/wpawn"/>
  496.  
  497.             <ImageView
  498.                android:layout_width="43dp"
  499.                android:layout_height="match_parent"
  500.                android:layout_weight="1"
  501.                android:background="@color/colorBoardDark"
  502.                android:src="@drawable/wpawn"/>
  503.             <ImageView
  504.                android:layout_width="43dp"
  505.                android:layout_height="match_parent"
  506.                android:layout_weight="1"
  507.                android:background="@color/colorBoardLight"
  508.                android:src="@drawable/wpawn"/>
  509.  
  510.             <RelativeLayout
  511.                android:layout_width="43dp"
  512.                android:layout_height="match_parent"
  513.                android:layout_weight="1">
  514.  
  515.                 <ImageView
  516.                    android:layout_width="match_parent"
  517.                    android:layout_height="match_parent"
  518.                    android:background="@color/colorBoardDark"
  519.                    android:src="@drawable/wpawn"/>
  520.  
  521.                 <TextView
  522.                    style="@style/textLight"
  523.                    android:text="2"
  524.                    android:layout_alignParentEnd="true"
  525.                    />
  526.  
  527.             </RelativeLayout>
  528.  
  529.  
  530.  
  531.         </LinearLayout>
  532.  
  533.         <LinearLayout
  534.            android:id="@+id/row1"
  535.            android:layout_below="@+id/row2"
  536.            android:layout_width="344dp"
  537.            android:layout_height="43dp"
  538.            android:orientation="horizontal"
  539.            android:layout_centerHorizontal="true"
  540.            android:weightSum="8">
  541.  
  542.             <RelativeLayout
  543.                android:layout_width="43dp"
  544.                android:layout_height="match_parent"
  545.                android:layout_weight="1">
  546.  
  547.                 <ImageView
  548.                    android:layout_width="match_parent"
  549.                    android:layout_height="match_parent"
  550.                    android:background="@color/colorBoardDark"
  551.                    android:src="@drawable/wrook"/>
  552.  
  553.                 <TextView
  554.                    style="@style/textLight"
  555.                    android:text="a"
  556.                    android:layout_alignParentBottom="true"/>
  557.  
  558.             </RelativeLayout>
  559.  
  560.             <RelativeLayout
  561.                android:layout_width="43dp"
  562.                android:layout_height="match_parent"
  563.                android:layout_weight="1">
  564.  
  565.                 <ImageView
  566.                    android:layout_width="match_parent"
  567.                    android:layout_height="match_parent"
  568.                    android:background="@color/colorBoardLight"
  569.                    android:src="@drawable/wknight"/>
  570.  
  571.                 <TextView
  572.                    style="@style/textDark"
  573.                    android:text="b"
  574.                    android:layout_alignParentBottom="true"/>
  575.  
  576.             </RelativeLayout>
  577.  
  578.             <RelativeLayout
  579.                android:layout_width="43dp"
  580.                android:layout_height="match_parent"
  581.                android:layout_weight="1">
  582.  
  583.                 <ImageView
  584.                    android:layout_width="match_parent"
  585.                    android:layout_height="match_parent"
  586.                    android:background="@color/colorBoardDark"
  587.                    android:src="@drawable/wbishop"/>
  588.  
  589.                 <TextView
  590.                    style="@style/textLight"
  591.                    android:text="c"
  592.                    android:layout_alignParentBottom="true"/>
  593.  
  594.             </RelativeLayout>
  595.  
  596.             <RelativeLayout
  597.                android:layout_width="43dp"
  598.                android:layout_height="match_parent"
  599.                android:layout_weight="1">
  600.  
  601.                 <ImageView
  602.                    android:layout_width="match_parent"
  603.                    android:layout_height="match_parent"
  604.                    android:background="@color/colorBoardLight"
  605.                    android:src="@drawable/wking"/>
  606.  
  607.                 <TextView
  608.                    style="@style/textDark"
  609.                    android:text="d"
  610.                    android:layout_alignParentBottom="true"/>
  611.  
  612.             </RelativeLayout>
  613.  
  614.             <RelativeLayout
  615.                android:layout_width="43dp"
  616.                android:layout_height="match_parent"
  617.                android:layout_weight="1">
  618.  
  619.                 <ImageView
  620.                    android:layout_width="match_parent"
  621.                    android:layout_height="match_parent"
  622.                    android:background="@color/colorBoardDark"
  623.                    android:src="@drawable/wqueen"/>
  624.  
  625.                 <TextView
  626.                    style="@style/textLight"
  627.                    android:text="e"
  628.                    android:layout_alignParentBottom="true"/>
  629.  
  630.             </RelativeLayout>
  631.  
  632.             <RelativeLayout
  633.                android:layout_width="43dp"
  634.                android:layout_height="match_parent"
  635.                android:layout_weight="1">
  636.  
  637.                 <ImageView
  638.                    android:layout_width="match_parent"
  639.                    android:layout_height="match_parent"
  640.                    android:background="@color/colorBoardLight"
  641.                    android:src="@drawable/wbishop"/>
  642.  
  643.                 <TextView
  644.                    style="@style/textDark"
  645.                    android:text="f"
  646.                    android:layout_alignParentBottom="true"/>
  647.  
  648.             </RelativeLayout>
  649.  
  650.             <RelativeLayout
  651.                android:layout_width="43dp"
  652.                android:layout_height="match_parent"
  653.                android:layout_weight="1">
  654.  
  655.                 <ImageView
  656.                    android:layout_width="match_parent"
  657.                    android:layout_height="match_parent"
  658.                    android:background="@color/colorBoardDark"
  659.                    android:src="@drawable/wknight"/>
  660.  
  661.                 <TextView
  662.                    style="@style/textLight"
  663.                    android:text="g"
  664.                    android:layout_alignParentBottom="true"/>
  665.  
  666.             </RelativeLayout>
  667.  
  668.             <RelativeLayout
  669.                android:layout_width="43dp"
  670.                android:layout_height="match_parent"
  671.                android:layout_weight="1">
  672.  
  673.                 <ImageView
  674.                    android:layout_width="match_parent"
  675.                    android:layout_height="match_parent"
  676.                    android:background="@color/colorBoardLight"
  677.                    android:src="@drawable/wrook"/>
  678.  
  679.                 <TextView
  680.                    style="@style/textDark"
  681.                    android:text="1"
  682.                    android:layout_alignParentEnd="true"/>
  683.  
  684.                 <TextView
  685.                    style="@style/textDark"
  686.                    android:text="h"
  687.                    android:layout_alignParentBottom="true"/>
  688.  
  689.             </RelativeLayout>
  690.  
  691.  
  692.         </LinearLayout>
  693.  
  694.  
  695.     </RelativeLayout>
  696.  
  697.  
  698.     <ImageView
  699.        android:layout_width="43dp"
  700.        android:layout_height="43dp"
  701.        android:id="@+id/moveThis"
  702.        android:src="@drawable/bking"/>
  703.  
  704.  
  705.     <Button
  706.        android:layout_width="match_parent"
  707.        android:layout_height="wrap_content"
  708.        android:layout_above="@+id/testBtn"
  709.        android:text="Pick File"
  710.        android:id="@+id/toastBtn"/>
  711.  
  712.  
  713.  
  714. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement