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