• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2012 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:orientation="vertical"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:gravity="left"
24>
25    <TextView
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:text="@string/numberOfCallLogEntries"
29    />
30    <EditText
31        android:id="@+id/number"
32        android:layout_width="match_parent"
33        android:layout_height="wrap_content"
34        android:inputType="number"
35        android:text="10"
36        />
37    <CheckBox
38        android:id="@+id/use_random_numbers"
39        android:layout_width="match_parent"
40        android:layout_height="wrap_content"
41        android:text="@string/useRandomNumbers"
42    />
43    <Button
44        android:id="@+id/add"
45        android:layout_width="match_parent"
46        android:layout_height="wrap_content"
47        android:text="@string/addToCallLogButton"
48    />
49    <ProgressBar
50        android:id="@+id/progress"
51        android:layout_width="match_parent"
52        android:layout_height="wrap_content"
53        android:indeterminate="false"
54        android:visibility="gone"
55    />
56    <TextView
57        android:layout_width="match_parent"
58        android:layout_height="wrap_content"
59        android:text="@string/add_custom_entry"
60        />
61    <LinearLayout
62        android:orientation="vertical"
63        android:layout_width="match_parent"
64        android:layout_height="wrap_content"
65        android:gravity="left"
66        >
67        <RadioGroup
68            android:layout_width="wrap_content"
69            android:layout_height="wrap_content"
70            android:orientation="horizontal">
71            <RadioButton
72                android:id="@+id/call_type_incoming"
73                android:layout_width="wrap_content"
74                android:layout_height="wrap_content"
75                android:text="@string/call_type_incoming"
76                android:textSize="9sp" />
77            <RadioButton
78                android:id="@+id/call_type_missed"
79                android:layout_width="wrap_content"
80                android:layout_height="wrap_content"
81                android:text="@string/call_type_missed"
82                android:textSize="9sp" />
83            <RadioButton
84                android:id="@+id/call_type_outgoing"
85                android:layout_width="wrap_content"
86                android:layout_height="wrap_content"
87                android:text="@string/call_type_outgoing"
88                android:textSize="9sp" />
89            <RadioButton
90                android:id="@+id/call_type_voicemail"
91                android:layout_width="wrap_content"
92                android:layout_height="wrap_content"
93                android:text="@string/call_type_voicemail"
94                android:textSize="9sp" />
95            <RadioButton
96                android:id="@+id/call_type_custom"
97                android:layout_width="wrap_content"
98                android:layout_height="wrap_content"
99                android:text="Custom"
100                android:textSize="9sp" />
101            <EditText
102                android:id="@+id/call_type_custom_text"
103                android:layout_width="90dp"
104                android:layout_height="wrap_content"
105                android:text=""
106                android:inputType="number" />
107        </RadioGroup>
108        <CheckBox
109            android:id="@+id/call_type_video"
110            android:layout_width="match_parent"
111            android:layout_height="wrap_content"
112            android:text="@string/call_type_video"
113            android:textSize="9sp"
114            />
115    </LinearLayout>
116    <LinearLayout
117        android:orientation="horizontal"
118        android:layout_width="match_parent"
119        android:layout_height="wrap_content"
120        android:gravity="left"
121        >
122        <TextView
123            android:layout_width="wrap_content"
124            android:layout_height="wrap_content"
125            android:text="@string/call_date"
126            />
127        <TextView
128            android:id="@+id/call_date"
129            android:paddingStart="16dp"
130            android:layout_width="120dp"
131            android:layout_height="wrap_content"
132            />
133        <Button
134            android:layout_width="wrap_content"
135            android:layout_height="wrap_content"
136            android:text="@string/edit"
137            android:onClick="showDatePickerDialog" />
138    </LinearLayout>
139    <LinearLayout
140        android:orientation="horizontal"
141        android:layout_width="match_parent"
142        android:layout_height="wrap_content"
143        android:gravity="left"
144        >
145        <TextView
146            android:layout_width="wrap_content"
147            android:layout_height="wrap_content"
148            android:text="@string/call_time"
149            />
150        <TextView
151            android:id="@+id/call_time"
152            android:paddingStart="16dp"
153            android:layout_width="120dp"
154            android:layout_height="wrap_content"
155            />
156        <Button
157            android:layout_width="wrap_content"
158            android:layout_height="wrap_content"
159            android:text="@string/edit"
160            android:onClick="showTimePickerDialog" />
161    </LinearLayout>
162    <TextView
163        android:layout_width="wrap_content"
164        android:layout_height="wrap_content"
165        android:text="@string/call_presentation"
166        />
167    <RadioGroup
168        android:layout_width="match_parent"
169        android:layout_height="wrap_content"
170        android:orientation="horizontal">
171        <RadioButton
172            android:id="@+id/presentation_allowed"
173            android:layout_width="wrap_content"
174            android:layout_height="wrap_content"
175            android:text="@string/presentation_allowed"
176            android:textSize="9sp" />
177        <RadioButton
178            android:id="@+id/presentation_restricted"
179            android:layout_width="wrap_content"
180            android:layout_height="wrap_content"
181            android:text="@string/presentation_restricted"
182            android:textSize="9sp" />
183        <RadioButton
184            android:id="@+id/presentation_unknown"
185            android:layout_width="wrap_content"
186            android:layout_height="wrap_content"
187            android:text="@string/presentation_unknown"
188            android:textSize="9sp" />
189        <RadioButton
190            android:id="@+id/presentation_payphone"
191            android:layout_width="wrap_content"
192            android:layout_height="wrap_content"
193            android:text="@string/presentation_payphone"
194            android:textSize="9sp" />
195    </RadioGroup>
196    <LinearLayout
197        android:orientation="horizontal"
198        android:layout_width="match_parent"
199        android:layout_height="wrap_content"
200        android:gravity="left"
201        >
202        <TextView
203            android:layout_width="wrap_content"
204            android:layout_height="wrap_content"
205            android:text="@string/number"
206            />
207        <EditText
208            android:id="@+id/phone_number"
209            android:layout_width="180dp"
210            android:layout_height="wrap_content"
211            android:inputType="phone"
212            />
213    </LinearLayout>
214    <TextView
215        android:layout_width="wrap_content"
216        android:layout_height="wrap_content"
217        android:text="@string/call_account" />
218    <RadioGroup
219        android:layout_width="match_parent"
220        android:layout_height="wrap_content"
221        android:orientation="horizontal">
222        <RadioButton
223            android:id="@+id/account0"
224            android:layout_width="wrap_content"
225            android:layout_height="wrap_content"
226            android:text="@string/account0"
227            android:textSize="9sp" />
228        <RadioButton
229            android:id="@+id/account1"
230            android:layout_width="wrap_content"
231            android:layout_height="wrap_content"
232            android:text="@string/account1"
233            android:textSize="9sp" />
234        <RadioButton
235            android:id="@+id/no_account"
236            android:layout_width="wrap_content"
237            android:layout_height="wrap_content"
238            android:text="@string/no_account"
239            android:textSize="9sp" />
240    </RadioGroup>
241    <Button
242        android:id="@+id/add_custom"
243        android:layout_width="match_parent"
244        android:layout_height="wrap_content"
245        android:text="@string/addToCallLogButton"
246        android:onClick="addManualEntry"
247        />
248    <LinearLayout
249        android:orientation="horizontal"
250        android:layout_width="match_parent"
251        android:layout_height="wrap_content"
252        android:gravity="left"
253        >
254        <TextView
255            android:layout_width="wrap_content"
256            android:layout_height="wrap_content"
257            android:text="@string/delta_after_add"
258            />
259        <EditText
260            android:id="@+id/delta_after_add"
261            android:layout_width="90dp"
262            android:layout_height="wrap_content"
263            android:text="-1"
264            android:inputType="number"
265            />
266    </LinearLayout>
267</LinearLayout>
268