/[projects]/android/SmsSend/res/layout/main.xml
ViewVC logotype

Contents of /android/SmsSend/res/layout/main.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1141 - (show annotations) (download) (as text)
Mon Sep 27 18:26:09 2010 UTC (13 years, 7 months ago) by torben
File MIME type: text/xml
File size: 2812 byte(s)
Load the spinner values direct from xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:orientation="vertical"
4 android:layout_width="fill_parent"
5 android:layout_height="fill_parent"
6 >
7
8
9 <Spinner
10 android:id="@+id/method"
11 android:layout_width="fill_parent"
12 android:layout_height="wrap_content"
13 android:entries="@array/methods"
14 android:prompt="@string/method_prompt"/>
15 <Button
16 android:id="@+id/selectNumber"
17 android:layout_width="fill_parent"
18 android:layout_height="wrap_content"
19 android:text="Select receipient"
20 />
21
22 <EditText android:id="@+id/origin"
23 android:layout_width="fill_parent"
24 android:layout_height="wrap_content"
25
26 android:hint="@string/from"
27 android:maxLength="11"
28 android:selectAllOnFocus="true"
29
30 />
31
32 <EditText android:id="@+id/destination"
33 android:layout_width="fill_parent"
34 android:layout_height="wrap_content"
35 android:inputType="phone"
36 android:hint="@string/to"
37 android:selectAllOnFocus="true"
38 />
39
40 <EditText android:id="@+id/message"
41 android:layout_width="fill_parent"
42 android:layout_height="wrap_content"
43 android:hint="@string/message"
44 android:selectAllOnFocus="true"
45 android:maxLength="440"
46
47 android:minLines="3"
48 android:inputType="textMultiLine"/>
49
50
51 <LinearLayout
52 android:orientation="horizontal"
53 android:layout_width="fill_parent"
54 android:layout_height="wrap_content"
55 >
56
57 <TextView
58 android:layout_width="0px"
59 android:layout_height="wrap_content"
60 android:layout_weight="1"
61 android:text="Count:"
62 />
63 <EditText android:id="@+id/count"
64 android:layout_width="0px"
65 android:layout_height="wrap_content"
66 android:layout_weight="1"
67 android:inputType="number"
68 android:text="1"
69 />
70 </LinearLayout>
71
72 <LinearLayout
73 android:orientation="horizontal"
74 android:layout_width="fill_parent"
75 android:layout_height="wrap_content"
76 >
77
78 <TextView
79 android:layout_width="0px"
80 android:layout_height="wrap_content"
81 android:layout_weight="1"
82 android:text="Interval:"
83 />
84 <EditText android:id="@+id/interval"
85 android:layout_width="0px"
86 android:layout_height="wrap_content"
87 android:layout_weight="1"
88 android:inputType="number"
89 android:text="0"
90 android:selectAllOnFocus="true"
91 />
92 </LinearLayout>
93
94
95 <View
96 android:layout_width="fill_parent"
97 android:layout_height="wrap_content"
98 android:layout_weight="1"
99 />
100
101
102 <Button
103 android:id="@+id/send"
104 android:layout_width="fill_parent"
105 android:layout_height="wrap_content"
106 android:text="Send"
107 />
108
109 </LinearLayout>

  ViewVC Help
Powered by ViewVC 1.1.20