Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 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 <!-- Horizontal row of buttons (Voicemail + DialButton + Delete.) -->
     18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:id="@+id/dialpadAdditionalButtons"
     20     android:layout_width="match_parent"
     21     android:layout_height="0px"
     22     android:layout_weight="@integer/dialpad_layout_weight_additional_buttons"
     23     android:layout_gravity="center_horizontal"
     24     android:background="@drawable/dialpad_background"
     25     android:orientation="horizontal">
     26 
     27     <!-- Onscreen "All contacts" button.
     28          TODO: rename this id. -->
     29     <ImageButton android:id="@+id/searchButton"
     30         android:layout_width="0px"
     31         android:layout_weight="0.30"
     32         android:layout_height="match_parent"
     33         android:layout_gravity="center_vertical"
     34         android:state_enabled="false"
     35         android:background="?android:attr/selectableItemBackground"
     36         android:contentDescription="@string/description_search_button"
     37         android:src="@drawable/ic_dial_action_search"/>
     38 
     39     <View
     40         android:layout_width="1dip"
     41         android:layout_height="24dip"
     42         android:layout_gravity="center_vertical"
     43         android:background="?android:attr/dividerVertical" />
     44 
     45     <!-- Onscreen "Dial" button, diused on all platforms by
     46          default. Its usage can be disabled using resources (see
     47          config.xml.) -->
     48     <ImageButton android:id="@+id/dialButton"
     49         android:layout_width="0px"
     50         android:layout_weight="0.40"
     51         android:layout_height="match_parent"
     52         android:layout_gravity="center_vertical"
     53         android:state_enabled="false"
     54         android:background="@drawable/btn_call"
     55         android:contentDescription="@string/description_dial_button"
     56         android:src="@drawable/ic_dial_action_call" />
     57 
     58     <View
     59         android:layout_width="1dip"
     60         android:layout_height="24dip"
     61         android:layout_gravity="center_vertical"
     62         android:background="?android:attr/dividerVertical" />
     63 
     64     <!-- Onscreen "Backspace/Delete" button -->
     65     <ImageButton android:id="@+id/deleteButton"
     66         android:layout_width="0px"
     67         android:layout_weight="0.30"
     68         android:layout_height="match_parent"
     69         android:layout_gravity="center_vertical"
     70         android:state_enabled="false"
     71         android:background="?android:attr/selectableItemBackground"
     72         android:contentDescription="@string/description_delete_button"
     73         android:src="@drawable/ic_dial_action_delete" />
     74 </LinearLayout>
     75 
     76