Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 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 <LinearLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="64dp"
     21     android:orientation="horizontal"
     22     android:gravity="center_vertical"
     23     android:paddingStart="16dp"
     24     android:paddingEnd="8dp">
     25 
     26     <!-- Caller information -->
     27     <LinearLayout
     28         android:layout_width="0dp"
     29         android:layout_weight="1"
     30         android:layout_height="match_parent"
     31         android:orientation="horizontal"
     32         android:gravity="center_vertical">
     33 
     34         <ImageView android:id="@+id/callerPhoto"
     35             android:layout_width="@dimen/contact_browser_list_item_photo_size"
     36             android:layout_height="@dimen/contact_browser_list_item_photo_size" />
     37 
     38         <LinearLayout
     39             android:layout_width="match_parent"
     40             android:layout_height="wrap_content"
     41             android:gravity="center_vertical"
     42             android:orientation="vertical"
     43             android:layout_marginStart="16dp"
     44             android:paddingBottom="2dp">
     45 
     46             <!-- Name or number of this caller -->
     47             <TextView android:id="@+id/conferenceCallerName"
     48                 android:textAppearance="?android:attr/textAppearanceLarge"
     49                 android:textSize="16sp"
     50                 android:textColor="@color/conference_call_manager_caller_name_text_color"
     51                 android:singleLine="true"
     52                 android:layout_width="wrap_content"
     53                 android:layout_height="match_parent"
     54                 android:layout_marginEnd="2dp" />
     55 
     56             <!-- Number of this caller if name is supplied above -->
     57             <LinearLayout
     58                  android:layout_width="wrap_content"
     59                  android:layout_height="match_parent"
     60                  android:orientation="horizontal"
     61                  android:gravity="bottom">
     62 
     63                 <!-- Number -->
     64                 <TextView
     65                      android:id="@+id/conferenceCallerNumber"
     66                      android:layout_width="wrap_content"
     67                      android:layout_height="wrap_content"
     68                      android:textSize="14sp"
     69                      android:ellipsize="marquee"
     70                      android:textColor="@color/conference_call_manager_secondary_text_color"
     71                      android:singleLine="true"
     72                      android:layout_marginEnd="8dp" />
     73 
     74                 <!-- Number type -->
     75                 <TextView
     76                     android:id="@+id/conferenceCallerNumberType"
     77                     android:layout_width="wrap_content"
     78                     android:layout_height="wrap_content"
     79                     android:textSize="12sp"
     80                     android:textColor="@color/conference_call_manager_secondary_text_color"
     81                     android:ellipsize="marquee"
     82                     android:singleLine="true"
     83                     android:textAllCaps="true"
     84                     android:gravity="start" />
     85 
     86             </LinearLayout>  <!-- End of caller number -->
     87 
     88         </LinearLayout>  <!-- End of caller information -->
     89 
     90     </LinearLayout>
     91 
     92     <!-- "Separate" (i.e. "go private") button for this caller -->
     93     <ImageView android:id="@+id/conferenceCallerSeparate"
     94         android:src="@drawable/ic_call_split_white_24dp"
     95         android:layout_width="@dimen/conference_call_manager_button_dimension"
     96         android:layout_height="@dimen/conference_call_manager_button_dimension"
     97         android:scaleType="center"
     98         android:contentDescription="@string/goPrivate"
     99         android:tint="@color/conference_call_manager_icon_color"
    100         android:background="@drawable/conference_ripple"
    101         android:clickable="true" />
    102 
    103     <!-- "Disconnect" button which terminates the connection with this caller. -->
    104     <ImageButton
    105         android:id="@+id/conferenceCallerDisconnect"
    106         android:layout_width="@dimen/conference_call_manager_button_dimension"
    107         android:layout_height="@dimen/conference_call_manager_button_dimension"
    108         android:layout_marginStart="8dp"
    109         android:src="@drawable/ic_call_end_white_24dp"
    110         android:scaleType="center"
    111         android:contentDescription="@string/onscreenEndCallText"
    112         android:tint="@color/conference_call_manager_icon_color"
    113         android:background="@drawable/conference_ripple"
    114         android:clickable="true" />
    115 
    116 </LinearLayout>  <!-- End of single list element -->
    117