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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:layout_width="match_parent"
     18     android:layout_height="match_parent" >
     19 
     20     <LinearLayout
     21         android:id="@+id/call_detail"
     22         android:layout_width="match_parent"
     23         android:layout_height="match_parent"
     24         android:orientation="vertical"
     25         android:layout_alignParentStart="true"
     26         android:layout_alignParentTop="true"
     27         android:background="@color/background_dialer_details_list_items" >
     28         <!-- Caller information "card" -->
     29         <LinearLayout
     30             android:id="@+id/caller_information"
     31             android:layout_width="match_parent"
     32             android:layout_height="wrap_content"
     33             android:paddingStart="@dimen/call_detail_horizontal_margin"
     34             android:paddingTop="@dimen/call_detail_top_margin"
     35             android:paddingBottom="@dimen/call_detail_bottom_margin"
     36             android:baselineAligned="false"
     37             android:orientation="horizontal"
     38             android:translationZ="@dimen/call_detail_translation_z"
     39             android:focusable="true"
     40             android:background="@color/background_dialer_white" >
     41 
     42             <QuickContactBadge
     43                 android:id="@+id/quick_contact_photo"
     44                 android:layout_width="@dimen/contact_photo_size"
     45                 android:layout_height="@dimen/contact_photo_size"
     46                 android:layout_alignParentStart="true"
     47                 android:layout_gravity="top"
     48                 android:layout_marginTop="3dp"
     49                 android:focusable="true"
     50                 />
     51 
     52             <LinearLayout
     53                 android:layout_width="wrap_content"
     54                 android:layout_height="wrap_content"
     55                 android:orientation="vertical"
     56                 android:gravity="center_vertical"
     57                 android:layout_marginStart="@dimen/call_detail_horizontal_margin"
     58                 >
     59                 <TextView
     60                     android:id="@+id/caller_name"
     61                     android:layout_width="wrap_content"
     62                     android:layout_height="wrap_content"
     63                     android:textColor="?attr/call_log_primary_text_color"
     64                     android:textSize="@dimen/call_log_primary_text_size"
     65                     android:includeFontPadding="false"
     66                     android:layout_marginBottom="5dp"
     67                     android:singleLine="true"
     68                     />
     69                 <TextView
     70                     android:id="@+id/caller_number"
     71                     android:layout_width="wrap_content"
     72                     android:layout_height="wrap_content"
     73                     android:textColor="?attr/call_log_secondary_text_color"
     74                     android:textSize="@dimen/call_log_secondary_text_size"
     75                     android:layout_marginBottom="1dp"
     76                     android:singleLine="true"
     77                     />
     78                 <TextView
     79                     android:id="@+id/phone_account_label"
     80                     android:layout_width="wrap_content"
     81                     android:layout_height="wrap_content"
     82                     android:textColor="?attr/call_log_secondary_text_color"
     83                     android:textSize="@dimen/call_log_secondary_text_size"
     84                     android:singleLine="true"
     85                     android:visibility="gone"
     86                     />
     87             </LinearLayout>
     88         </LinearLayout>
     89 
     90         <!--
     91           The list view is under everything.
     92           It contains a first header element which is hidden under the controls UI.
     93           When scrolling, the controls move up until the name bar hits the top.
     94           -->
     95         <ListView
     96             android:id="@+id/history"
     97             android:layout_width="match_parent"
     98             android:layout_height="fill_parent"
     99         />
    100 
    101 
    102     </LinearLayout>
    103     <!--
    104          Used to hide the UI when playing a voicemail and the proximity sensor
    105          is detecting something near the screen.
    106       -->
    107     <View
    108         android:id="@+id/blank"
    109         android:layout_width="match_parent"
    110         android:layout_height="match_parent"
    111         android:background="@android:color/black"
    112         android:visibility="gone"
    113         android:clickable="true"
    114         android:layout_alignParentStart="true"
    115         android:layout_alignParentTop="true"
    116         />
    117 </RelativeLayout>
    118