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 <TableLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:id="@+id/dialpad"
     22     android:layout_width="match_parent"
     23     android:layout_height="0px"
     24     android:layout_weight="@integer/dialpad_layout_weight_dialpad"
     25     android:layout_gravity="center_horizontal"
     26     android:layout_marginTop="@dimen/dialpad_vertical_margin"
     27     android:paddingStart="5dip"
     28     android:paddingEnd="5dip"
     29     android:paddingBottom="10dip"
     30     android:background="@drawable/dialpad_background"
     31     android:layoutDirection="ltr">
     32 
     33     <TableRow
     34          android:layout_height="0px"
     35          android:layout_weight="1">
     36         <ImageButton android:id="@+id/one" style="@style/DialpadButtonStyle"
     37             android:src="@drawable/dial_num_1_no_vm_wht"
     38             android:contentDescription="@string/description_image_button_one" />
     39         <ImageButton android:id="@+id/two" style="@style/DialpadButtonStyle"
     40             android:src="@drawable/dial_num_2_wht"
     41             android:contentDescription="@string/description_image_button_two" />
     42         <ImageButton android:id="@+id/three" style="@style/DialpadButtonStyle"
     43             android:src="@drawable/dial_num_3_wht"
     44             android:contentDescription="@string/description_image_button_three" />
     45     </TableRow>
     46 
     47     <TableRow
     48          android:layout_height="0px"
     49          android:layout_weight="1">
     50         <ImageButton android:id="@+id/four" style="@style/DialpadButtonStyle"
     51             android:src="@drawable/dial_num_4_wht"
     52             android:contentDescription="@string/description_image_button_four" />
     53         <ImageButton android:id="@+id/five" style="@style/DialpadButtonStyle"
     54             android:src="@drawable/dial_num_5_wht"
     55             android:contentDescription="@string/description_image_button_five" />
     56         <ImageButton android:id="@+id/six" style="@style/DialpadButtonStyle"
     57             android:src="@drawable/dial_num_6_wht"
     58             android:contentDescription="@string/description_image_button_six" />
     59     </TableRow>
     60 
     61     <TableRow
     62          android:layout_height="0px"
     63          android:layout_weight="1">
     64         <ImageButton android:id="@+id/seven" style="@style/DialpadButtonStyle"
     65             android:src="@drawable/dial_num_7_wht"
     66             android:contentDescription="@string/description_image_button_seven" />
     67         <ImageButton android:id="@+id/eight" style="@style/DialpadButtonStyle"
     68             android:src="@drawable/dial_num_8_wht"
     69             android:contentDescription="@string/description_image_button_eight" />
     70         <ImageButton android:id="@+id/nine" style="@style/DialpadButtonStyle"
     71             android:src="@drawable/dial_num_9_wht"
     72             android:contentDescription="@string/description_image_button_nine" />
     73     </TableRow>
     74 
     75     <TableRow
     76          android:layout_height="0px"
     77          android:layout_weight="1">
     78         <ImageButton android:id="@+id/star" style="@style/DialpadButtonStyle"
     79             android:src="@drawable/dial_num_star_wht"
     80             android:contentDescription="@string/description_image_button_star" />
     81         <ImageButton android:id="@+id/zero" style="@style/DialpadButtonStyle"
     82             android:src="@drawable/dial_num_0_no_plus_wht"
     83             android:contentDescription="@string/description_image_button_zero" />
     84         <ImageButton android:id="@+id/pound" style="@style/DialpadButtonStyle"
     85             android:src="@drawable/dial_num_pound_wht"
     86             android:contentDescription="@string/description_image_button_pound" />
     87     </TableRow>
     88 </TableLayout>
     89