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