181 lines
6.1 KiB
XML
181 lines
6.1 KiB
XML
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/LinearLayout1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
tools:context=".MainActivity" >
|
|
|
|
<fragment
|
|
android:id="@+id/fragment1"
|
|
android:name="com.example.SudokuSolver.SudokuGridlarge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.6" />
|
|
|
|
<TableLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3" >
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.3" >
|
|
|
|
<Button
|
|
android:id="@+id/button1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="1"
|
|
android:textAlignment="center" />
|
|
|
|
<Button
|
|
android:id="@+id/button2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="2"
|
|
android:textAlignment="center" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.3" >
|
|
|
|
<Button
|
|
android:id="@+id/button3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="3"
|
|
android:textAlignment="center" />
|
|
|
|
<Button
|
|
android:id="@+id/button4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="4"
|
|
android:textAlignment="center" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.3" >
|
|
|
|
<Button
|
|
android:id="@+id/button5"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="5"
|
|
android:textAlignment="center" />
|
|
|
|
<Button
|
|
android:id="@+id/button6"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="6"
|
|
android:textAlignment="center" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.3" >
|
|
|
|
<Button
|
|
android:id="@+id/button7"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="7"
|
|
android:textAlignment="center" />
|
|
|
|
<Button
|
|
android:id="@+id/button8"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="8"
|
|
android:textAlignment="center" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.3" >
|
|
|
|
<Button
|
|
android:id="@+id/button9"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="9"
|
|
android:textAlignment="center" />
|
|
|
|
<Button
|
|
android:id="@+id/button0"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3"
|
|
android:onClick="SetInput"
|
|
android:text="0"
|
|
android:textAlignment="center" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.3"
|
|
android:onClick="Send" >
|
|
|
|
<Button
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick="Clear"
|
|
android:text="Clear"
|
|
android:textAlignment="center" />
|
|
|
|
<Button
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick="Send"
|
|
android:text="Send"
|
|
android:textAlignment="center" />
|
|
|
|
</TableRow>
|
|
</TableLayout>
|
|
|
|
</LinearLayout> |