Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2006 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 <!-- The grid of buttons used in the onscreen DTMF dialpad;
     18      see dtmf_twelve_key_dialer_view.xml. -->
     19 <LinearLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:id="@+id/dtmf_twelve_key_dialer_view"
     22     android:layout_width="match_parent"
     23     android:layout_height="match_parent"
     24     android:orientation="vertical"
     25     android:layout_marginTop="1dip" >
     26 
     27     <!-- Display of the digits you've typed so far.
     28          This widget appears completely non-interactive to the user: you
     29          can't edit or "hit backspace" since these are DTMF tones you've
     30          already sent over the network.  But it's still an EditText rather
     31          than a TextView because it needs to receive key events from a
     32          hard keyboard, if present (see mDialerKeyListener). -->
     33     <EditText
     34         android:id="@+id/dtmfDialerField"
     35         android:layout_width="match_parent"
     36         android:layout_height="32dp"
     37         android:layout_marginTop="10dp"
     38         android:layout_marginBottom="5dp"
     39         android:layout_marginStart="32dp"
     40         android:layout_marginEnd="32dp"
     41         android:paddingEnd="16dp"
     42         android:paddingStart="16dp"
     43         android:singleLine="true"
     44         android:scrollHorizontally="true"
     45         android:textSize="24sp"
     46         android:gravity="center"
     47         android:freezesText="true"
     48         android:background="@null"
     49         android:textColor="@color/dtmf_dialer_display_text"
     50         android:focusableInTouchMode="false"
     51         android:clickable="false"/>
     52 
     53     <TableLayout
     54         android:id="@+id/dialpad"
     55         android:layout_width="match_parent"
     56         android:layout_height="match_parent"
     57         android:layout_weight="@integer/dialpad_layout_weight_dialpad"
     58         android:layout_gravity="center_horizontal"
     59         android:layout_marginTop="@dimen/dialpad_vertical_margin"
     60         android:paddingStart="5dip"
     61         android:paddingEnd="5dip"
     62         android:paddingBottom="10dip"
     63         android:background="@color/dialpad_background"
     64         android:layoutDirection="ltr">
     65 
     66         <TableRow
     67              android:layout_height="0px"
     68              android:layout_weight="1">
     69             <ImageButton android:id="@+id/one" style="@style/DialpadButtonStyle"
     70                 android:src="@drawable/dial_num_1_no_vm_wht"
     71                 android:contentDescription="@string/description_image_button_one" />
     72             <ImageButton android:id="@+id/two" style="@style/DialpadButtonStyle"
     73                 android:src="@drawable/dial_num_2_wht"
     74                 android:contentDescription="@string/description_image_button_two" />
     75             <ImageButton android:id="@+id/three" style="@style/DialpadButtonStyle"
     76                 android:src="@drawable/dial_num_3_wht"
     77                 android:contentDescription="@string/description_image_button_three" />
     78         </TableRow>
     79 
     80         <TableRow
     81              android:layout_height="0px"
     82              android:layout_weight="1">
     83             <ImageButton android:id="@+id/four" style="@style/DialpadButtonStyle"
     84                 android:src="@drawable/dial_num_4_wht"
     85                 android:contentDescription="@string/description_image_button_four" />
     86             <ImageButton android:id="@+id/five" style="@style/DialpadButtonStyle"
     87                 android:src="@drawable/dial_num_5_wht"
     88                 android:contentDescription="@string/description_image_button_five" />
     89             <ImageButton android:id="@+id/six" style="@style/DialpadButtonStyle"
     90                 android:src="@drawable/dial_num_6_wht"
     91                 android:contentDescription="@string/description_image_button_six" />
     92         </TableRow>
     93 
     94         <TableRow
     95              android:layout_height="0px"
     96              android:layout_weight="1">
     97             <ImageButton android:id="@+id/seven" style="@style/DialpadButtonStyle"
     98                 android:src="@drawable/dial_num_7_wht"
     99                 android:contentDescription="@string/description_image_button_seven" />
    100             <ImageButton android:id="@+id/eight" style="@style/DialpadButtonStyle"
    101                 android:src="@drawable/dial_num_8_wht"
    102                 android:contentDescription="@string/description_image_button_eight" />
    103             <ImageButton android:id="@+id/nine" style="@style/DialpadButtonStyle"
    104                 android:src="@drawable/dial_num_9_wht"
    105                 android:contentDescription="@string/description_image_button_nine" />
    106         </TableRow>
    107 
    108         <TableRow
    109              android:layout_height="0px"
    110              android:layout_weight="1">
    111             <ImageButton android:id="@+id/star" style="@style/DialpadButtonStyle"
    112                 android:src="@drawable/dial_num_star_wht"
    113                 android:contentDescription="@string/description_image_button_star" />
    114             <ImageButton android:id="@+id/zero" style="@style/DialpadButtonStyle"
    115                 android:src="@drawable/dial_num_0_no_plus_wht"
    116                 android:contentDescription="@string/description_image_button_zero" />
    117             <ImageButton android:id="@+id/pound" style="@style/DialpadButtonStyle"
    118                 android:src="@drawable/dial_num_pound_wht"
    119                 android:contentDescription="@string/description_image_button_pound" />
    120         </TableRow>
    121     </TableLayout>
    122 </LinearLayout>
    123