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 xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:orientation="vertical"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:gravity="center_vertical">
     22 
     23     <!-- List element -->
     24     <LinearLayout
     25         android:orientation="horizontal"
     26         android:layout_width="match_parent"
     27         android:layout_height="wrap_content"
     28         android:gravity="center_vertical">
     29 
     30         <!-- "End" button for this caller -->
     31         <ImageButton
     32             android:id="@+id/conferenceCallerDisconnect"
     33             style="?android:attr/buttonStyleSmall"
     34             android:src="@drawable/ic_button_conference_end"
     35             android:layout_width="46dp"
     36             android:layout_height="46dp"
     37             android:layout_marginTop="2dp"
     38             android:layout_marginLeft="6dp"
     39             android:scaleType="center"
     40             android:contentDescription="@string/onscreenEndCallText" />
     41 
     42         <!-- Caller information -->
     43         <LinearLayout
     44             android:orientation="vertical"
     45             android:layout_width="1dp"
     46             android:layout_weight="1"
     47             android:layout_height="wrap_content"
     48             android:gravity="center_vertical"
     49             android:layout_marginLeft="4dp">
     50 
     51             <!-- Name or number of this caller -->
     52             <TextView
     53                 android:id="@+id/conferenceCallerName"
     54                 android:textAppearance="?android:attr/textAppearanceLarge"
     55                 android:textSize="22sp"
     56                 android:singleLine="true"
     57                 android:layout_width="wrap_content"
     58                 android:layout_height="match_parent"
     59                 android:layout_marginRight="2dp"
     60                 />
     61 
     62             <!-- Number of this caller if name is supplied above -->
     63             <LinearLayout
     64                 android:orientation="horizontal"
     65                 android:layout_width="wrap_content"
     66                 android:layout_height="match_parent"
     67                 android:gravity="center_vertical">
     68 
     69                 <!-- Number type -->
     70                 <TextView
     71                     android:id="@+id/conferenceCallerNumberType"
     72                     android:textAppearance="?android:attr/textAppearanceSmall"
     73                     android:textStyle="bold"
     74                     android:singleLine="true"
     75                     android:layout_width="wrap_content"
     76                     android:layout_height="match_parent"
     77                     android:layout_marginRight="4dp"
     78                     android:layout_marginBottom="2dp"/>
     79 
     80                 <!-- Number -->
     81                 <TextView
     82                     android:id="@+id/conferenceCallerNumber"
     83                     android:textAppearance="?android:attr/textAppearanceSmall"
     84                     android:singleLine="true"
     85                     android:layout_width="wrap_content"
     86                     android:layout_height="match_parent"/>
     87 
     88             </LinearLayout>  <!-- End of caller number -->
     89 
     90         </LinearLayout>  <!-- End of caller information -->
     91 
     92         <!-- "Separate" (i.e. "go private") button for this caller -->
     93         <ImageButton
     94             android:id="@+id/conferenceCallerSeparate"
     95             style="?android:attr/buttonStyleSmall"
     96             android:src="@drawable/ic_button_conference_private"
     97             android:layout_width="46dp"
     98             android:layout_height="46dp"
     99             android:layout_marginTop="2dp"
    100             android:layout_marginRight="6dp"
    101             android:scaleType="center"
    102             android:contentDescription="@string/goPrivate"/>
    103 
    104     </LinearLayout>  <!-- End of single list element -->
    105 
    106     <!-- List Divider -->
    107     <ImageView
    108         android:layout_width="match_parent"
    109         android:layout_height="wrap_content"
    110         android:src="@android:drawable/divider_horizontal_dark"
    111         android:scaleType="fitXY"
    112         android:layout_marginTop="8dp"
    113         android:layout_marginBottom="8dp"/>
    114 
    115 </LinearLayout>
    116