Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2013 The Android Open Source Project
      4   ~
      5   ~ Licensed under the Apache License, Version 2.0 (the "License");
      6   ~ you may not use this file except in compliance with the License.
      7   ~ You may obtain a copy of the License at
      8   ~
      9   ~      http://www.apache.org/licenses/LICENSE-2.0
     10   ~
     11   ~ Unless required by applicable law or agreed to in writing, software
     12   ~ distributed under the License is distributed on an "AS IS" BASIS,
     13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   ~ See the License for the specific language governing permissions and
     15   ~ limitations under the License
     16   -->
     17 
     18 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:background="@color/button_background">
     22     <!-- The buttons here have a text label floating off to the side
     23          (which is necessary because these buttons are used only in
     24          a few rare states, and the meaning of the icon might not be
     25          obvious.)  The entire row (button + text) is clickable. -->
     26 
     27     <!-- "Manage conference" -->
     28     <!-- This button is used only on GSM devices, during a conference call. -->
     29     <LinearLayout android:id="@+id/manageConferenceButton"
     30         android:orientation="horizontal"
     31         android:layout_width="match_parent"
     32         android:layout_height="wrap_content"
     33         android:paddingStart="@dimen/button_cluster_side_padding"
     34         android:paddingEnd="@dimen/button_cluster_side_padding"
     35         android:background="?android:attr/selectableItemBackground"
     36         android:visibility="gone">
     37         <!-- The entire LinearLayout here is clickable, so we don't
     38              care about clicks on the ImageButton itself. -->
     39         <ImageButton android:id="@+id/manageConferenceButtonImage"
     40             android:clickable="false"
     41             style="@style/InCallExtraRowButton"
     42             android:src="@drawable/ic_groups_holo_dark"
     43             android:contentDescription="@string/onscreenManageConferenceText" />
     44         <TextView android:id="@+id/manageConferenceButtonLabel"
     45             style="@style/InCallExtraRowButtonLabel"
     46             android:text="@string/onscreenManageConferenceText" />
     47     </LinearLayout>
     48 
     49     <!-- CDMA-specific "Merge" -->
     50     <!-- This button is used only on CDMA devices, where we can't use
     51          the Merge button in the main button row (because the "Add Call"
     52          button might need to be enabled at the same time.) -->
     53     <LinearLayout android:id="@+id/cdmaMergeButton"
     54         android:orientation="horizontal"
     55         android:layout_width="match_parent"
     56         android:layout_height="wrap_content"
     57         android:paddingStart="@dimen/button_cluster_side_padding"
     58         android:paddingEnd="@dimen/button_cluster_side_padding"
     59         android:background="?android:attr/selectableItemBackground"
     60         android:visibility="gone">
     61         <!-- The entire LinearLayout here is clickable, so we don't
     62              care about clicks on the ImageButton itself. -->
     63         <ImageButton android:id="@+id/cdmaMergeButtonImage"
     64             android:clickable="false"
     65             style="@style/InCallExtraRowButton"
     66             android:src="@drawable/ic_merge_holo_dark"
     67             android:contentDescription="@string/onscreenMergeCallsText" />
     68         <TextView android:id="@+id/cdmaMergeButtonLabel"
     69             style="@style/InCallExtraRowButtonLabel"
     70             android:text="@string/onscreenMergeCallsText" />
     71     </LinearLayout>
     72 
     73 </FrameLayout>
     74