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

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

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

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

<!-- New style in-call DTMF dialpad, for devices that use the
     InCallTouchUi widget, and thus do NOT use a SlidingDrawer
     to contain the dialpad.

     This provides basically the same UI elements as
     dtmf_twelve_key_dialer.xml and dialpad.xml, but in a more
     compact layout, and without the SlidingDrawer container.
     -->
<com.android.phone.DTMFTwelveKeyDialerView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/non_drawer_dtmf_dialer"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:layout_marginTop="1dip"
    android:visibility="gone"
    >

    <!-- Display of the digits you've typed so far -->
    <EditText
        android:id="@+id/dtmfDialerField"
        android:layout_width="match_parent"
        android:layout_height="32dp"
        android:layout_marginTop="10dp"
        android:layout_marginBottom="5dp"
        android:layout_marginLeft="32dp"
        android:layout_marginRight="32dp"
        android:paddingRight="16dp"
        android:paddingLeft="16dp"
        android:maxLines="1"
        android:scrollHorizontally="true"
        android:textSize="24sp"
        android:gravity="center"
        android:freezesText="true"
        android:background="@null"
        android:textColor="@color/dtmf_dialer_display_text"
        android:focusableInTouchMode="false"
        android:clickable="false"/>

    <!-- The dialpad itself -->
    <com.android.phone.ButtonGridLayout
        android:id="@+id/dialpad"
        android:paddingLeft="7dp"
        android:paddingRight="7dp"
        android:paddingTop="6dp"
        android:paddingBottom="6dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        >
        <ImageButton android:id="@+id/one"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_1_no_vm"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/two"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_2"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/three"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_3"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/four"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_4"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/five"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_5"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/six"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_6"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/seven"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_7"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/eight"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_8"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/nine"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_9"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/star"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_star"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/zero"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_0"
                     android:background="@drawable/btn_dial_green"
                     />

        <ImageButton android:id="@+id/pound"
                     android:layout_width="88dp"
                     android:layout_height="50dp"
                     android:src="@drawable/dial_num_pound"
                     android:background="@drawable/btn_dial_green"
                     />
    </com.android.phone.ButtonGridLayout>

</com.android.phone.DTMFTwelveKeyDialerView>