• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3     Licensed under the Apache License, Version 2.0 (the "License");
4     you may not use this file except in compliance with the License.
5     You may obtain a copy of the License at
6       http://www.apache.org/licenses/LICENSE-2.0
7     Unless required by applicable law or agreed to in writing, software
8     distributed under the License is distributed on an "AS IS" BASIS,
9     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10     See the License for the specific language governing permissions and
11     limitations under the License.
12-->
13<com.android.car.ui.FocusArea
14    xmlns:android="http://schemas.android.com/apk/res/android"
15    xmlns:app="http://schemas.android.com/apk/res-auto"
16    android:layout_width="match_parent"
17    android:layout_height="match_parent">
18
19    <FrameLayout
20        android:layout_width="match_parent"
21        android:layout_height="match_parent"
22        android:elevation="@dimen/dialer_card_elevation"
23        android:background="@drawable/on_hold_background">
24
25        <androidx.constraintlayout.widget.ConstraintLayout
26            android:layout_width="match_parent"
27            android:layout_height="match_parent"
28            android:id="@+id/swap_calls_view"
29            android:background="?android:attr/selectableItemBackground">
30
31            <androidx.constraintlayout.widget.Guideline
32                android:layout_width="wrap_content"
33                android:layout_height="wrap_content"
34                android:id="@+id/guideline"
35                android:orientation="vertical"
36                app:layout_constraintGuide_begin="@dimen/onhold_profile_guideline"/>
37
38            <ImageView
39                android:id="@+id/icon"
40                android:layout_width="@dimen/small_avatar_icon_size"
41                android:layout_height="@dimen/small_avatar_icon_size"
42                android:scaleType="centerCrop"
43                android:layout_marginStart="@dimen/onhold_profile_avatar_margin"
44                app:layout_constraintTop_toTopOf="parent"
45                app:layout_constraintBottom_toBottomOf="parent"
46                app:layout_constraintStart_toStartOf="parent"/>
47
48            <TextView
49                android:id="@+id/title"
50                android:layout_width="wrap_content"
51                android:layout_height="wrap_content"
52                android:theme="@style/Theme.Dialer.BidiText"
53                android:textAppearance="?android:attr/textAppearanceLarge"
54                android:singleLine="true"
55                app:layout_constraintTop_toTopOf="parent"
56                app:layout_constraintBottom_toBottomOf="parent"
57                app:layout_constraintStart_toStartOf="@id/guideline"
58                app:layout_constraintEnd_toStartOf="@+id/title_separator"/>
59
60            <TextView
61                android:id="@id/title_separator"
62                android:layout_width="wrap_content"
63                android:layout_height="wrap_content"
64                android:layout_marginStart="@dimen/onhold_profile_status_margin"
65                android:layout_marginEnd="@dimen/onhold_profile_status_margin"
66                android:textAppearance="?android:attr/textAppearanceLarge"
67                android:singleLine="true"
68                android:text="@string/onhold_call_separator"
69                app:layout_constraintTop_toTopOf="parent"
70                app:layout_constraintBottom_toBottomOf="parent"
71                app:layout_constraintStart_toEndOf="@id/title"
72                app:layout_constraintEnd_toStartOf="@+id/time"/>
73
74            <Chronometer
75                android:id="@id/time"
76                android:layout_width="wrap_content"
77                android:layout_height="wrap_content"
78                android:textAppearance="?android:attr/textAppearanceLarge"
79                android:textColor="@color/onhold_time_color"
80                android:singleLine="true"
81                app:layout_constraintTop_toTopOf="parent"
82                app:layout_constraintBottom_toBottomOf="parent"
83                app:layout_constraintStart_toEndOf="@id/title_separator"
84                app:layout_constraintEnd_toStartOf="@+id/time_separator"/>
85
86            <TextView
87                android:id="@id/time_separator"
88                android:layout_width="wrap_content"
89                android:layout_height="wrap_content"
90                android:layout_marginStart="@dimen/onhold_profile_status_margin"
91                android:layout_marginEnd="@dimen/onhold_profile_status_margin"
92                android:textAppearance="?android:attr/textAppearanceLarge"
93                android:singleLine="true"
94                android:text="@string/onhold_call_separator"
95                app:layout_constraintTop_toTopOf="parent"
96                app:layout_constraintBottom_toBottomOf="parent"
97                app:layout_constraintStart_toEndOf="@id/time"
98                app:layout_constraintEnd_toStartOf="@+id/onhold_label"/>
99
100            <TextView
101                android:id="@id/onhold_label"
102                android:layout_width="0dp"
103                android:layout_height="wrap_content"
104                android:textAppearance="?android:attr/textAppearanceLarge"
105                android:singleLine="true"
106                android:text="@string/call_state_hold"
107                android:textColor="@color/onhold_label_color"
108                app:layout_constraintTop_toTopOf="parent"
109                app:layout_constraintBottom_toBottomOf="parent"
110                app:layout_constraintStart_toEndOf="@id/time_separator"
111                app:layout_constraintEnd_toStartOf="@+id/swap_call"/>
112
113            <TextView
114                android:id="@id/swap_call"
115                android:layout_width="wrap_content"
116                android:layout_height="wrap_content"
117                android:layout_marginEnd="@dimen/onhold_profile_avatar_margin"
118                android:text="@string/swap_call_label"
119                android:textAppearance="?android:attr/textAppearanceLarge"
120                android:singleLine="true"
121                android:textColor="?android:attr/colorAccent"
122                app:layout_constraintTop_toTopOf="parent"
123                app:layout_constraintBottom_toBottomOf="parent"
124                app:layout_constraintEnd_toEndOf="parent"/>
125        </androidx.constraintlayout.widget.ConstraintLayout>
126
127    </FrameLayout>
128
129</com.android.car.ui.FocusArea>
130