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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1141 - (hide annotations) (download) (as text)
Mon Sep 27 18:26:09 2010 UTC (13 years, 8 months ago) by torben
File MIME type: text/xml
File size: 2812 byte(s)
Load the spinner values direct from xml
1 torben 745 <?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 torben 1141 android:entries="@array/methods"
14 torben 745 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 torben 1135
26     android:hint="@string/from"
27 torben 753 android:maxLength="11"
28 torben 745 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 torben 1135 android:hint="@string/to"
37 torben 745 android:selectAllOnFocus="true"
38     />
39    
40     <EditText android:id="@+id/message"
41     android:layout_width="fill_parent"
42     android:layout_height="wrap_content"
43 torben 1135 android:hint="@string/message"
44 torben 745 android:selectAllOnFocus="true"
45 torben 753 android:maxLength="440"
46 torben 745
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 torben 1135 android:layout_width="0px"
59 torben 745 android:layout_height="wrap_content"
60     android:layout_weight="1"
61     android:text="Count:"
62     />
63     <EditText android:id="@+id/count"
64 torben 1135 android:layout_width="0px"
65 torben 745 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 torben 1135 android:layout_width="0px"
80 torben 745 android:layout_height="wrap_content"
81     android:layout_weight="1"
82     android:text="Interval:"
83     />
84     <EditText android:id="@+id/interval"
85 torben 1135 android:layout_width="0px"
86 torben 745 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