Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 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 <TableLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:id="@+id/dialpad"
     20     android:layout_width="match_parent"
     21     android:layout_height="0dp"
     22     android:layout_weight="4"
     23     android:layout_gravity="center_horizontal"
     24     android:paddingLeft="@dimen/dialpad_horizontal_padding"
     25     android:paddingRight="@dimen/dialpad_horizontal_padding"
     26     android:background="@color/background_dialpad"
     27     android:stretchColumns="*"
     28     android:layoutDirection="ltr" >
     29 
     30     <TableRow style="@style/InCallDialpadTableRowStyle">
     31         <include layout="@layout/dialpad_key_incall" android:id="@+id/one"/>
     32         <include layout="@layout/dialpad_key_incall" android:id="@+id/two"/>
     33         <include layout="@layout/dialpad_key_incall" android:id="@+id/three"/>
     34     </TableRow>
     35 
     36     <TableRow style="@style/InCallDialpadTableRowStyle">
     37         <include layout="@layout/dialpad_key_incall" android:id="@+id/four"/>
     38         <include layout="@layout/dialpad_key_incall" android:id="@+id/five"/>
     39         <include layout="@layout/dialpad_key_incall" android:id="@+id/six"/>
     40     </TableRow>
     41 
     42     <TableRow style="@style/InCallDialpadTableRowStyle">
     43         <include layout="@layout/dialpad_key_incall" android:id="@+id/seven"/>
     44         <include layout="@layout/dialpad_key_incall" android:id="@+id/eight"/>
     45         <include layout="@layout/dialpad_key_incall" android:id="@+id/nine"/>
     46     </TableRow>
     47 
     48     <TableRow style="@style/InCallDialpadTableRowStyle">
     49         <com.android.dialer.dialpad.DialpadKeyButton
     50             android:id="@+id/star"
     51             style="@style/InCallDialpadKeyButtonStyle">
     52             <LinearLayout
     53                 style="@style/InCallDialpadKeyInternalLayoutStyle">
     54                 <TextView
     55                     android:id="@+id/dialpad_key_number"
     56                     style="@style/InCallDialpadKeyStarPoundStyle"
     57                     android:textSize="@dimen/dialpad_key_star_size" />
     58                 <View
     59                     android:layout_height="match_parent"
     60                     android:layout_width="@dimen/dialpad_key_letters_width" />
     61             </LinearLayout>
     62         </com.android.dialer.dialpad.DialpadKeyButton>
     63         <include layout="@layout/dialpad_key_incall" android:id="@+id/zero"/>
     64         <com.android.dialer.dialpad.DialpadKeyButton
     65             android:id="@+id/pound"
     66             style="@style/InCallDialpadKeyButtonStyle">
     67             <LinearLayout
     68                 style="@style/InCallDialpadKeyInternalLayoutStyle">
     69                 <TextView
     70                     android:id="@+id/dialpad_key_number"
     71                     style="@style/InCallDialpadKeyStarPoundStyle"
     72                     android:textSize="@dimen/dialpad_key_pound_size" />
     73                 <View
     74                     android:layout_height="match_parent"
     75                     android:layout_width="@dimen/dialpad_key_letters_width" />
     76             </LinearLayout>
     77         </com.android.dialer.dialpad.DialpadKeyButton>
     78     </TableRow>
     79 </TableLayout>
     80