1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
|
3
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
4
|
android:orientation="vertical"
|
5
|
android:layout_width="match_parent"
|
6
|
android:layout_height="match_parent">
|
7
|
|
8
|
<TableLayout
|
9
|
android:layout_width="match_parent"
|
10
|
android:layout_height="wrap_content"
|
11
|
android:stretchColumns="1,2,3"
|
12
|
android:shrinkColumns="1,2,3">
|
13
|
|
14
|
<TableRow
|
15
|
android:layout_width="match_parent"
|
16
|
android:layout_height="match_parent">
|
17
|
|
18
|
<TextView
|
19
|
android:layout_width="wrap_content"
|
20
|
android:layout_height="wrap_content"
|
21
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
22
|
android:text="@string/Create"
|
23
|
android:id="@+id/textView2"
|
24
|
android:layout_gravity="center_vertical"
|
25
|
android:layout_marginLeft="10dp"/>
|
26
|
|
27
|
<Spinner
|
28
|
android:layout_width="fill_parent"
|
29
|
android:layout_height="50dp"
|
30
|
android:id="@+id/objectpicker_spinnerType"
|
31
|
android:layout_span="3"/>
|
32
|
</TableRow>
|
33
|
|
34
|
<TableRow
|
35
|
android:layout_width="match_parent"
|
36
|
android:layout_height="match_parent">
|
37
|
|
38
|
<TextView
|
39
|
android:layout_width="wrap_content"
|
40
|
android:layout_height="wrap_content"
|
41
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
42
|
android:text="@string/rows"
|
43
|
android:id="@+id/textView8"
|
44
|
android:layout_gravity="center_vertical"
|
45
|
android:layout_marginLeft="10dp"/>
|
46
|
|
47
|
<NumberPicker
|
48
|
android:id="@+id/objectpicker_rows"
|
49
|
android:layout_width="wrap_content"
|
50
|
android:layout_height="wrap_content"
|
51
|
android:orientation="vertical"
|
52
|
android:layout_span="1"
|
53
|
/>
|
54
|
|
55
|
<TextView
|
56
|
android:layout_width="wrap_content"
|
57
|
android:layout_height="wrap_content"
|
58
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
59
|
android:text="@string/cols"
|
60
|
android:id="@+id/textView9"
|
61
|
android:layout_marginLeft="10dp"
|
62
|
android:layout_gravity="center_vertical"/>
|
63
|
|
64
|
<NumberPicker
|
65
|
android:id="@+id/objectpicker_cols"
|
66
|
android:layout_width="wrap_content"
|
67
|
android:layout_height="wrap_content"
|
68
|
android:orientation="vertical"
|
69
|
/>
|
70
|
</TableRow>
|
71
|
|
72
|
</TableLayout>
|
73
|
|
74
|
<LinearLayout
|
75
|
android:id="@+id/objectpicker_buttongrid"
|
76
|
android:layout_width="match_parent"
|
77
|
android:layout_height="0dp"
|
78
|
android:gravity="center"
|
79
|
android:orientation="vertical"
|
80
|
android:layout_weight="0.8">
|
81
|
</LinearLayout>
|
82
|
|
83
|
<Button
|
84
|
android:id="@+id/objectpicker_create"
|
85
|
android:onClick="Create"
|
86
|
android:text="@string/Create"
|
87
|
android:layout_width="match_parent"
|
88
|
android:layout_height="50dp"
|
89
|
android:layout_span="4"
|
90
|
android:layout_marginTop="5dp"/>
|
91
|
|
92
|
</LinearLayout>
|