summaryrefslogtreecommitdiffstats
path: root/java/com/android/dialer/callstats/res/layout/call_stats_detail.xml
blob: c12dbfa679e58fdc9d4133677b33c51a85445cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/call_stats_detail"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:layout_alignParentStart="true"
  android:layout_alignParentTop="true"
  android:background="?android:attr/colorBackground">

  <com.android.dialer.widget.DialerToolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>

  <!-- Caller information "card" -->
  <LinearLayout
    android:id="@+id/caller_information"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="@dimen/call_details_top_margin"
    android:paddingStart="@dimen/contact_container_padding_top_start"
    android:paddingEnd="@dimen/contact_container_padding_bottom_end"
    android:paddingTop="@dimen/contact_container_padding_top_start"
    android:paddingBottom="@dimen/contact_container_padding_bottom_end"
    android:baselineAligned="false"
    android:orientation="horizontal"
    android:focusable="true">

    <QuickContactBadge
      android:id="@+id/quick_contact_photo"
      android:layout_width="@dimen/contact_photo_size"
      android:layout_height="@dimen/contact_photo_size"
      android:layout_gravity="center_vertical"
      android:focusable="true" />

    <LinearLayout
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:layout_gravity="center_vertical"
      android:orientation="vertical"
      android:layout_marginStart="@dimen/photo_text_margin">

      <TextView
        android:id="@+id/caller_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        style="@style/Dialer.TextAppearance.Primary" />

      <TextView
        android:id="@+id/caller_number"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        style="@style/Dialer.TextAppearance.Secondary" />

    </LinearLayout>

    <ImageView
      android:id="@+id/call_back_button"
      android:layout_width="@dimen/call_back_button_size"
      android:layout_height="@dimen/call_back_button_size"
      android:background="?android:attr/selectableItemBackgroundBorderless"
      android:src="@drawable/quantum_ic_call_white_24"
      android:scaleType="center"
      android:tint="?android:attr/textColorSecondary"
      android:contentDescription="@string/call"
      android:visibility="gone" />

  </LinearLayout>

  <ScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical">

      <!-- The actual details -->
      <include layout="@layout/call_stats_detail_info" />

      <View
        android:id="@+id/separator"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_below="@id/out_average"
        android:layout_marginTop="@dimen/ec_divider_top_bottom_margin"
        android:layout_marginBottom="@dimen/ec_divider_top_bottom_margin"
        android:background="#12000000" />

      <TextView
        android:id="@+id/call_detail_action_copy"
        style="@style/CallDetailsActionItemStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:drawableStart="@drawable/quantum_ic_content_copy_grey600_24"
        android:text="@string/call_details_copy_number"/>

      <TextView
        android:id="@+id/call_detail_action_edit_before_call"
        style="@style/CallDetailsActionItemStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:drawableStart="@drawable/quantum_ic_edit_grey600_24"
        android:text="@string/call_details_edit_number"/>

    </LinearLayout>

  </ScrollView>

</LinearLayout>