Home | History | Annotate | Download | only in layout
      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="horizontal"
     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         </RadioGroup>
     90         <CheckBox
     91             android:id="@+id/call_type_video"
     92             android:layout_width="match_parent"
     93             android:layout_height="wrap_content"
     94             android:text="@string/call_type_video"
     95             android:textSize="9sp"
     96             />
     97     </LinearLayout>
     98     <LinearLayout
     99         android:orientation="horizontal"
    100         android:layout_width="match_parent"
    101         android:layout_height="wrap_content"
    102         android:gravity="left"
    103         >
    104         <TextView
    105             android:layout_width="wrap_content"
    106             android:layout_height="wrap_content"
    107             android:text="@string/call_date"
    108             />
    109         <TextView
    110             android:id="@+id/call_date"
    111             android:paddingStart="16dp"
    112             android:layout_width="120dp"
    113             android:layout_height="wrap_content"
    114             />
    115         <Button
    116             android:layout_width="wrap_content"
    117             android:layout_height="wrap_content"
    118             android:text="@string/edit"
    119             android:onClick="showDatePickerDialog" />
    120     </LinearLayout>
    121     <LinearLayout
    122         android:orientation="horizontal"
    123         android:layout_width="match_parent"
    124         android:layout_height="wrap_content"
    125         android:gravity="left"
    126         >
    127         <TextView
    128             android:layout_width="wrap_content"
    129             android:layout_height="wrap_content"
    130             android:text="@string/call_time"
    131             />
    132         <TextView
    133             android:id="@+id/call_time"
    134             android:paddingStart="16dp"
    135             android:layout_width="120dp"
    136             android:layout_height="wrap_content"
    137             />
    138         <Button
    139             android:layout_width="wrap_content"
    140             android:layout_height="wrap_content"
    141             android:text="@string/edit"
    142             android:onClick="showTimePickerDialog" />
    143     </LinearLayout>
    144     <TextView
    145         android:layout_width="wrap_content"
    146         android:layout_height="wrap_content"
    147         android:text="@string/call_presentation"
    148         />
    149     <RadioGroup
    150         android:layout_width="match_parent"
    151         android:layout_height="wrap_content"
    152         android:orientation="horizontal">
    153         <RadioButton
    154             android:id="@+id/presentation_allowed"
    155             android:layout_width="wrap_content"
    156             android:layout_height="wrap_content"
    157             android:text="@string/presentation_allowed"
    158             android:textSize="9sp" />
    159         <RadioButton
    160             android:id="@+id/presentation_restricted"
    161             android:layout_width="wrap_content"
    162             android:layout_height="wrap_content"
    163             android:text="@string/presentation_restricted"
    164             android:textSize="9sp" />
    165         <RadioButton
    166             android:id="@+id/presentation_unknown"
    167             android:layout_width="wrap_content"
    168             android:layout_height="wrap_content"
    169             android:text="@string/presentation_unknown"
    170             android:textSize="9sp" />
    171         <RadioButton
    172             android:id="@+id/presentation_payphone"
    173             android:layout_width="wrap_content"
    174             android:layout_height="wrap_content"
    175             android:text="@string/presentation_payphone"
    176             android:textSize="9sp" />
    177     </RadioGroup>
    178     <LinearLayout
    179         android:orientation="horizontal"
    180         android:layout_width="match_parent"
    181         android:layout_height="wrap_content"
    182         android:gravity="left"
    183         >
    184         <TextView
    185             android:layout_width="wrap_content"
    186             android:layout_height="wrap_content"
    187             android:text="@string/number"
    188             />
    189         <EditText
    190             android:id="@+id/phone_number"
    191             android:layout_width="180dp"
    192             android:layout_height="wrap_content"
    193             android:inputType="phone"
    194             />
    195     </LinearLayout>
    196     <TextView
    197         android:layout_width="wrap_content"
    198         android:layout_height="wrap_content"
    199         android:text="@string/call_account" />
    200     <RadioGroup
    201         android:layout_width="match_parent"
    202         android:layout_height="wrap_content"
    203         android:orientation="horizontal">
    204         <RadioButton
    205             android:id="@+id/account0"
    206             android:layout_width="wrap_content"
    207             android:layout_height="wrap_content"
    208             android:text="@string/account0"
    209             android:textSize="9sp" />
    210         <RadioButton
    211             android:id="@+id/account1"
    212             android:layout_width="wrap_content"
    213             android:layout_height="wrap_content"
    214             android:text="@string/account1"
    215             android:textSize="9sp" />
    216         <RadioButton
    217             android:id="@+id/no_account"
    218             android:layout_width="wrap_content"
    219             android:layout_height="wrap_content"
    220             android:text="@string/no_account"
    221             android:textSize="9sp" />
    222     </RadioGroup>
    223     <Button
    224         android:id="@+id/add_custom"
    225         android:layout_width="match_parent"
    226         android:layout_height="wrap_content"
    227         android:text="@string/addToCallLogButton"
    228         android:onClick="addManualEntry"
    229         />
    230     <LinearLayout
    231         android:orientation="horizontal"
    232         android:layout_width="match_parent"
    233         android:layout_height="wrap_content"
    234         android:gravity="left"
    235         >
    236         <TextView
    237             android:layout_width="wrap_content"
    238             android:layout_height="wrap_content"
    239             android:text="@string/delta_after_add"
    240             />
    241         <EditText
    242             android:id="@+id/delta_after_add"
    243             android:layout_width="90dp"
    244             android:layout_height="wrap_content"
    245             android:text="-1"
    246             android:inputType="number"
    247             />
    248     </LinearLayout>
    249 </LinearLayout>
    250