Home | History | Annotate | Download | only in layout-finger
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <!-- New style in-call DTMF dialpad, for devices that use the
     18      InCallTouchUi widget, and thus do NOT use a SlidingDrawer
     19      to contain the dialpad.
     20 
     21      This provides basically the same UI elements as
     22      dtmf_twelve_key_dialer.xml and dialpad.xml, but in a more
     23      compact layout, and without the SlidingDrawer container.
     24      -->
     25 <com.android.phone.DTMFTwelveKeyDialerView
     26     xmlns:android="http://schemas.android.com/apk/res/android"
     27     android:id="@+id/non_drawer_dtmf_dialer"
     28     android:layout_width="match_parent"
     29     android:layout_height="match_parent"
     30     android:orientation="vertical"
     31     android:layout_marginTop="1dip"
     32     android:visibility="gone"
     33     >
     34 
     35     <!-- Display of the digits you've typed so far -->
     36     <EditText
     37         android:id="@+id/dtmfDialerField"
     38         android:layout_width="match_parent"
     39         android:layout_height="32dp"
     40         android:layout_marginTop="10dp"
     41         android:layout_marginBottom="5dp"
     42         android:layout_marginLeft="32dp"
     43         android:layout_marginRight="32dp"
     44         android:paddingRight="16dp"
     45         android:paddingLeft="16dp"
     46         android:maxLines="1"
     47         android:scrollHorizontally="true"
     48         android:textSize="24sp"
     49         android:gravity="center"
     50         android:freezesText="true"
     51         android:background="@null"
     52         android:textColor="@color/dtmf_dialer_display_text"
     53         android:focusableInTouchMode="false"
     54         android:clickable="false"/>
     55 
     56     <!-- The dialpad itself -->
     57     <com.android.phone.ButtonGridLayout
     58         android:id="@+id/dialpad"
     59         android:paddingLeft="7dp"
     60         android:paddingRight="7dp"
     61         android:paddingTop="6dp"
     62         android:paddingBottom="6dp"
     63         android:layout_width="wrap_content"
     64         android:layout_height="wrap_content"
     65         android:layout_gravity="center_horizontal"
     66         >
     67         <ImageButton android:id="@+id/one"
     68                      android:layout_width="88dp"
     69                      android:layout_height="50dp"
     70                      android:src="@drawable/dial_num_1_no_vm"
     71                      android:background="@drawable/btn_dial_green"
     72                      />
     73 
     74         <ImageButton android:id="@+id/two"
     75                      android:layout_width="88dp"
     76                      android:layout_height="50dp"
     77                      android:src="@drawable/dial_num_2"
     78                      android:background="@drawable/btn_dial_green"
     79                      />
     80 
     81         <ImageButton android:id="@+id/three"
     82                      android:layout_width="88dp"
     83                      android:layout_height="50dp"
     84                      android:src="@drawable/dial_num_3"
     85                      android:background="@drawable/btn_dial_green"
     86                      />
     87 
     88         <ImageButton android:id="@+id/four"
     89                      android:layout_width="88dp"
     90                      android:layout_height="50dp"
     91                      android:src="@drawable/dial_num_4"
     92                      android:background="@drawable/btn_dial_green"
     93                      />
     94 
     95         <ImageButton android:id="@+id/five"
     96                      android:layout_width="88dp"
     97                      android:layout_height="50dp"
     98                      android:src="@drawable/dial_num_5"
     99                      android:background="@drawable/btn_dial_green"
    100                      />
    101 
    102         <ImageButton android:id="@+id/six"
    103                      android:layout_width="88dp"
    104                      android:layout_height="50dp"
    105                      android:src="@drawable/dial_num_6"
    106                      android:background="@drawable/btn_dial_green"
    107                      />
    108 
    109         <ImageButton android:id="@+id/seven"
    110                      android:layout_width="88dp"
    111                      android:layout_height="50dp"
    112                      android:src="@drawable/dial_num_7"
    113                      android:background="@drawable/btn_dial_green"
    114                      />
    115 
    116         <ImageButton android:id="@+id/eight"
    117                      android:layout_width="88dp"
    118                      android:layout_height="50dp"
    119                      android:src="@drawable/dial_num_8"
    120                      android:background="@drawable/btn_dial_green"
    121                      />
    122 
    123         <ImageButton android:id="@+id/nine"
    124                      android:layout_width="88dp"
    125                      android:layout_height="50dp"
    126                      android:src="@drawable/dial_num_9"
    127                      android:background="@drawable/btn_dial_green"
    128                      />
    129 
    130         <ImageButton android:id="@+id/star"
    131                      android:layout_width="88dp"
    132                      android:layout_height="50dp"
    133                      android:src="@drawable/dial_num_star"
    134                      android:background="@drawable/btn_dial_green"
    135                      />
    136 
    137         <ImageButton android:id="@+id/zero"
    138                      android:layout_width="88dp"
    139                      android:layout_height="50dp"
    140                      android:src="@drawable/dial_num_0"
    141                      android:background="@drawable/btn_dial_green"
    142                      />
    143 
    144         <ImageButton android:id="@+id/pound"
    145                      android:layout_width="88dp"
    146                      android:layout_height="50dp"
    147                      android:src="@drawable/dial_num_pound"
    148                      android:background="@drawable/btn_dial_green"
    149                      />
    150     </com.android.phone.ButtonGridLayout>
    151 
    152 </com.android.phone.DTMFTwelveKeyDialerView>
    153