https://android.googlesource.com/platform/packages/apps/Contacts/+/193fc1c37de959a31469a2b7e1eb3b29c4f87377/res/layout


https://android.googlesource.com/platform/packages/apps/Contacts/+/193fc1c37de959a31469a2b7e1eb3b29c4f87377/res/layout/dialpad.xml






  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2006 The Android Open Source Project

  3.      Licensed under the Apache License, Version 2.0 (the "License");
  4.      you may not use this file except in compliance with the License.
  5.      You may obtain a copy of the License at

  6.           http://www.apache.org/licenses/LICENSE-2.0

  7.      Unless required by applicable law or agreed to in writing, software
  8.      distributed under the License is distributed on an "AS IS" BASIS,
  9.      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10.      See the License for the specific language governing permissions and
  11.      limitations under the License.
  12. -->

  13. <!-- Dialpad in the Phone app. -->
  14. <TableLayout
  15.     xmlns:android="http://schemas.android.com/apk/res/android"
  16.     android:id="@+id/dialpad"
  17.     android:layout_width="match_parent"
  18.     android:layout_height="0px"
  19.     android:layout_weight="@integer/dialpad_layout_weight_dialpad"
  20.     android:layout_gravity="center_horizontal"
  21.     android:layout_marginTop="@dimen/dialpad_vertical_margin"
  22.     android:paddingLeft="5dip"
  23.     android:paddingRight="5dip"
  24.     android:paddingBottom="10dip"
  25.     android:background="@drawable/dialpad_background">

  26.     <TableRow
  27.          android:layout_height="0px"
  28.          android:layout_weight="1">
  29.         <com.android.contacts.dialpad.DialpadImageButton
  30.             android:id="@+id/one" style="@style/DialtactsDialpadButtonStyle"
  31.             android:src="@drawable/dial_num_1"
  32.             android:contentDescription="@string/description_image_button_one" />
  33.         <com.android.contacts.dialpad.DialpadImageButton
  34.             android:id="@+id/two" style="@style/DialtactsDialpadButtonStyle"
  35.             android:src="@drawable/dial_num_2"
  36.             android:contentDescription="@string/description_image_button_two" />
  37.         <com.android.contacts.dialpad.DialpadImageButton
  38.             android:id="@+id/three" style="@style/DialtactsDialpadButtonStyle"
  39.             android:src="@drawable/dial_num_3"
  40.             android:contentDescription="@string/description_image_button_three" />
  41.     </TableRow>

  42.     <TableRow
  43.          android:layout_height="0px"
  44.          android:layout_weight="1">
  45.         <com.android.contacts.dialpad.DialpadImageButton
  46.             android:id="@+id/four" style="@style/DialtactsDialpadButtonStyle"
  47.             android:src="@drawable/dial_num_4"
  48.             android:contentDescription="@string/description_image_button_four" />
  49.         <com.android.contacts.dialpad.DialpadImageButton
  50.             android:id="@+id/five" style="@style/DialtactsDialpadButtonStyle"
  51.             android:src="@drawable/dial_num_5"
  52.             android:contentDescription="@string/description_image_button_five" />
  53.         <com.android.contacts.dialpad.DialpadImageButton
  54.             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.     <TableRow
  59.          android:layout_height="0px"
  60.          android:layout_weight="1">
  61.         <com.android.contacts.dialpad.DialpadImageButton
  62.             android:id="@+id/seven" style="@style/DialtactsDialpadButtonStyle"
  63.             android:src="@drawable/dial_num_7"
  64.             android:contentDescription="@string/description_image_button_seven" />
  65.         <com.android.contacts.dialpad.DialpadImageButton
  66.             android:id="@+id/eight" style="@style/DialtactsDialpadButtonStyle"
  67.             android:src="@drawable/dial_num_8"
  68.             android:contentDescription="@string/description_image_button_eight" />
  69.         <com.android.contacts.dialpad.DialpadImageButton
  70.             android:id="@+id/nine" style="@style/DialtactsDialpadButtonStyle"
  71.             android:src="@drawable/dial_num_9"
  72.             android:contentDescription="@string/description_image_button_nine" />
  73.     </TableRow>

  74.     <TableRow
  75.          android:layout_height="0px"
  76.          android:layout_weight="1">
  77.         <com.android.contacts.dialpad.DialpadImageButton
  78.             android:id="@+id/star" style="@style/DialtactsDialpadButtonStyle"
  79.             android:src="@drawable/dial_num_star"
  80.             android:contentDescription="@string/description_image_button_star" />
  81.         <com.android.contacts.dialpad.DialpadImageButton
  82.             android:id="@+id/zero" style="@style/DialtactsDialpadButtonStyle"
  83.             android:src="@drawable/dial_num_0"
  84.             android:contentDescription="@string/description_image_button_zero" />
  85.         <com.android.contacts.dialpad.DialpadImageButton
  86.             android:id="@+id/pound" style="@style/DialtactsDialpadButtonStyle"
  87.             android:src="@drawable/dial_num_pound"
  88.             android:contentDescription="@string/description_image_button_pound" />
  89.     </TableRow>
  90. </TableLayout>