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:paddingLeft="5dip"
     27     android:paddingRight="5dip"
     28     android:paddingBottom="10dip"
     29     android:background="@drawable/dialpad_background">
     30 
     31     <TableRow
     32          android:layout_height="0px"
     33          android:layout_weight="1">
     34         <ImageButton android:id="@+id/one" style="@style/DialtactsDialpadButtonStyle"
     35             android:src="@drawable/dial_num_1"
     36             android:contentDescription="@string/description_image_button_one" />
     37         <ImageButton android:id="@+id/two" style="@style/DialtactsDialpadButtonStyle"
     38             android:src="@drawable/dial_num_2"
     39             android:contentDescription="@string/description_image_button_two" />
     40         <ImageButton android:id="@+id/three" style="@style/DialtactsDialpadButtonStyle"
     41             android:src="@drawable/dial_num_3"
     42             android:contentDescription="@string/description_image_button_three" />
     43     </TableRow>
     44 
     45     <TableRow
     46          android:layout_height="0px"
     47          android:layout_weight="1">
     48         <ImageButton android:id="@+id/four" style="@style/DialtactsDialpadButtonStyle"
     49             android:src="@drawable/dial_num_4"
     50             android:contentDescription="@string/description_image_button_four" />
     51         <ImageButton android:id="@+id/five" style="@style/DialtactsDialpadButtonStyle"
     52             android:src="@drawable/dial_num_5"
     53             android:contentDescription="@string/description_image_button_five" />
     54         <ImageButton android:id="@+id/six" style="@style/DialtactsDialpadButtonStyle"
     55             android:src="@drawable/dial_num_6"
     56             android:contentDescription="@string/description_image_button_six" />
     57     </TableRow>
     58 
     59     <TableRow
     60          android:layout_height="0px"
     61          android:layout_weight="1">
     62         <ImageButton android:id="@+id/seven" style="@style/DialtactsDialpadButtonStyle"
     63             android:src="@drawable/dial_num_7"
     64             android:contentDescription="@string/description_image_button_seven" />
     65         <ImageButton android:id="@+id/eight" style="@style/DialtactsDialpadButtonStyle"
     66             android:src="@drawable/dial_num_8"
     67             android:contentDescription="@string/description_image_button_eight" />
     68         <ImageButton android:id="@+id/nine" style="@style/DialtactsDialpadButtonStyle"
     69             android:src="@drawable/dial_num_9"
     70             android:contentDescription="@string/description_image_button_nine" />
     71     </TableRow>
     72 
     73     <TableRow
     74          android:layout_height="0px"
     75          android:layout_weight="1">
     76         <ImageButton android:id="@+id/star" style="@style/DialtactsDialpadButtonStyle"
     77             android:src="@drawable/dial_num_star"
     78             android:contentDescription="@string/description_image_button_star" />
     79         <ImageButton android:id="@+id/zero" style="@style/DialtactsDialpadButtonStyle"
     80             android:src="@drawable/dial_num_0"
     81             android:contentDescription="@string/description_image_button_zero" />
     82         <ImageButton android:id="@+id/pound" style="@style/DialtactsDialpadButtonStyle"
     83             android:src="@drawable/dial_num_pound"
     84             android:contentDescription="@string/description_image_button_pound" />
     85     </TableRow>
     86 </TableLayout>
     87