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:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".Test"
- android:background="#292930">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:id="@+id/entireBoard">
- <LinearLayout
- android:id="@+id/row8"
- android:layout_width="344dp"
- android:layout_height="43dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true"
- android:weightSum="8">
- <ImageView
- android:id="@+id/B8"
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/brook"
- android:tag="brook"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/bknight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/bbishop"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/bqueen"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/bking"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/bbishop"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/bknight"/>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardDark"
- android:src="@drawable/brook"/>
- <TextView
- style="@style/textLight"
- android:text="8"
- android:layout_alignParentEnd="true"
- />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row7"
- android:layout_below="@+id/row8"
- android:layout_width="344dp"
- android:layout_height="43dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true"
- android:weightSum="8">
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/bpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/bpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/bpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/bpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/bpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/bpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/bpawn"/>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardLight"
- android:src="@drawable/bpawn"/>
- <TextView
- style="@style/textDark"
- android:text="7"
- android:layout_alignParentEnd="true"
- />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row6"
- android:layout_below="@id/row7"
- android:layout_width="344dp"
- android:layout_height="43dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true"
- android:weightSum="8">
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardDark"/>
- <TextView
- style="@style/textLight"
- android:text="6"
- android:layout_alignParentEnd="true"
- />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row5"
- android:layout_below="@+id/row6"
- android:layout_width="344dp"
- android:layout_height="43dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true"
- android:weightSum="8">
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:id="@+id/moveKingHere"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardLight"/>
- <TextView
- style="@style/textDark"
- android:text="5"
- android:layout_alignParentEnd="true"
- />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row4"
- android:layout_below="@id/row5"
- android:layout_width="344dp"
- android:layout_height="43dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true"
- android:weightSum="8">
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardDark"/>
- <TextView
- style="@style/textLight"
- android:text="4"
- android:layout_alignParentEnd="true"
- />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row3"
- android:layout_below="@+id/row4"
- android:layout_width="344dp"
- android:layout_height="43dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true"
- android:weightSum="8">
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"/>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardLight"/>
- <TextView
- style="@style/textDark"
- android:text="3"
- android:layout_alignParentEnd="true"
- />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row2"
- android:layout_below="@id/row3"
- android:layout_width="344dp"
- android:layout_height="43dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true"
- android:weightSum="8">
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/wpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/wpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/wpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/wpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/wpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardDark"
- android:src="@drawable/wpawn"/>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorBoardLight"
- android:src="@drawable/wpawn"/>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardDark"
- android:src="@drawable/wpawn"/>
- <TextView
- style="@style/textLight"
- android:text="2"
- android:layout_alignParentEnd="true"
- />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row1"
- android:layout_below="@+id/row2"
- android:layout_width="344dp"
- android:layout_height="43dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true"
- android:weightSum="8">
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardDark"
- android:src="@drawable/wrook"/>
- <TextView
- style="@style/textLight"
- android:text="a"
- android:layout_alignParentBottom="true"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardLight"
- android:src="@drawable/wknight"/>
- <TextView
- style="@style/textDark"
- android:text="b"
- android:layout_alignParentBottom="true"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardDark"
- android:src="@drawable/wbishop"/>
- <TextView
- style="@style/textLight"
- android:text="c"
- android:layout_alignParentBottom="true"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardLight"
- android:src="@drawable/wking"/>
- <TextView
- style="@style/textDark"
- android:text="d"
- android:layout_alignParentBottom="true"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardDark"
- android:src="@drawable/wqueen"/>
- <TextView
- style="@style/textLight"
- android:text="e"
- android:layout_alignParentBottom="true"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardLight"
- android:src="@drawable/wbishop"/>
- <TextView
- style="@style/textDark"
- android:text="f"
- android:layout_alignParentBottom="true"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardDark"
- android:src="@drawable/wknight"/>
- <TextView
- style="@style/textLight"
- android:text="g"
- android:layout_alignParentBottom="true"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="43dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBoardLight"
- android:src="@drawable/wrook"/>
- <TextView
- style="@style/textDark"
- android:text="1"
- android:layout_alignParentEnd="true"/>
- <TextView
- style="@style/textDark"
- android:text="h"
- android:layout_alignParentBottom="true"/>
- </RelativeLayout>
- </LinearLayout>
- </RelativeLayout>
- <ImageView
- android:layout_width="43dp"
- android:layout_height="43dp"
- android:id="@+id/moveThis"
- android:src="@drawable/bking"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_above="@+id/testBtn"
- android:text="Pick File"
- android:id="@+id/toastBtn"/>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement