diff options
Diffstat (limited to 'java/com/android/incallui/rtt/impl/res/layout')
4 files changed, 234 insertions, 0 deletions
diff --git a/java/com/android/incallui/rtt/impl/res/layout/activity_rtt.xml b/java/com/android/incallui/rtt/impl/res/layout/activity_rtt.xml new file mode 100644 index 000000000..b48e8d43f --- /dev/null +++ b/java/com/android/incallui/rtt/impl/res/layout/activity_rtt.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 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:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <FrameLayout + android:id="@+id/fragment_rtt" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + +</LinearLayout>
\ No newline at end of file diff --git a/java/com/android/incallui/rtt/impl/res/layout/frag_rtt_chat.xml b/java/com/android/incallui/rtt/impl/res/layout/frag_rtt_chat.xml new file mode 100644 index 000000000..7ba6a09e3 --- /dev/null +++ b/java/com/android/incallui/rtt/impl/res/layout/frag_rtt_chat.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 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 + --> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/dialer_theme_color"> + + <include layout="@layout/rtt_banner"/> + + <android.support.v7.widget.RecyclerView + android:id="@+id/rtt_recycler_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingBottom="70dp" + android:clipToPadding="false"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="6dp" + android:layout_marginBottom="4dp" + android:layout_marginStart="5dp" + android:layout_marginEnd="4dp" + android:layout_gravity="bottom" + android:orientation="horizontal"> + <EditText + android:id="@+id/rtt_chat_input" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingTop="10dp" + android:paddingBottom="12dp" + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:background="@drawable/input_bubble_background" + android:hint="@string/rtt_input_hint" + android:imeOptions="actionDone" + android:inputType="textMultiLine|text" + android:maxLines="4" + android:minHeight="53dp" + android:textSize="16sp"/> + <ImageButton + android:id="@+id/rtt_chat_submit_button" + android:layout_width="55dp" + android:layout_height="53dp" + android:layout_gravity="bottom" + android:background="@drawable/input_bubble_background" + android:backgroundTint="@color/submit_button_background_color" + android:backgroundTintMode="multiply" + android:contentDescription="@string/content_description_rtt_check_button" + android:src="@drawable/quantum_ic_done_vd_theme_24" + android:tint="@color/submit_button_color"/> + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/java/com/android/incallui/rtt/impl/res/layout/rtt_banner.xml b/java/com/android/incallui/rtt/impl/res/layout/rtt_banner.xml new file mode 100644 index 000000000..7d9cd6fc8 --- /dev/null +++ b/java/com/android/incallui/rtt/impl/res/layout/rtt_banner.xml @@ -0,0 +1,91 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 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 + --> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="56dp" + android:background="#FAFAFA" + android:elevation="3dp"> + <ImageButton + android:id="@+id/rtt_back" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:background="@android:color/transparent" + android:contentDescription="@string/content_description_rtt_back_button" + android:src="@drawable/quantum_ic_close_vd_theme_24" + android:tint="#DF000000"/> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp" + android:layout_marginStart="32dp" + android:layout_toEndOf="@id/rtt_back" + android:orientation="vertical"> + <TextView + android:id="@+id/rtt_name_or_number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:includeFontPadding="false" + android:textAppearance="@style/Dialer.Incall.TextAppearance.RttTitle" + tools:text="Bruce Graham"/> + <Chronometer + android:id="@+id/rtt_timer" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:includeFontPadding="false" + android:textAppearance="@style/Dialer.Incall.TextAppearance.RttTimer" + tools:text="00:09"/> + </LinearLayout> + <ImageButton + android:id="@+id/rtt_hang_up_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="16dp" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:background="@android:color/transparent" + android:contentDescription="@string/incall_content_description_end_call" + android:src="@drawable/quantum_ic_call_end_vd_theme_24" + android:tint="#FFDF0000"/> + <ImageButton + android:id="@+id/rtt_speaker_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="24dp" + android:layout_centerVertical="true" + android:layout_toStartOf="@id/rtt_hang_up_button" + android:background="@android:color/transparent" + android:contentDescription="@string/incall_content_description_speaker" + android:src="@drawable/quantum_ic_volume_up_vd_theme_24" + android:tint="#DD000000"/> + <ImageButton + android:id="@+id/rtt_mic_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="24dp" + android:layout_centerVertical="true" + android:layout_toStartOf="@id/rtt_speaker_button" + android:background="@android:color/transparent" + android:contentDescription="@string/incall_content_description_unmuted" + android:src="@drawable/quantum_ic_mic_off_vd_theme_24" + android:tint="#DD000000"/> + +</RelativeLayout>
\ No newline at end of file diff --git a/java/com/android/incallui/rtt/impl/res/layout/rtt_chat_list_item.xml b/java/com/android/incallui/rtt/impl/res/layout/rtt_chat_list_item.xml new file mode 100644 index 000000000..54b0f4f6a --- /dev/null +++ b/java/com/android/incallui/rtt/impl/res/layout/rtt_chat_list_item.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 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:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginEnd="8dp" + android:orientation="vertical"> + <LinearLayout + android:id="@+id/rtt_chat_message_container" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <ImageView + android:id="@+id/rtt_chat_avatar" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" + android:visibility="gone" + android:contentDescription="@string/content_description_rtt_chat_avatar"/> + <TextView + android:id="@+id/rtt_chat_message" + style="@style/Dialer.Incall.TextAppearance.RttMessage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingStart="12dp" + android:paddingEnd="12dp" + android:paddingTop="9dp" + android:paddingBottom="9dp" + android:background="@drawable/message_bubble" + android:backgroundTint="@color/message_bubble_color" + android:maxWidth="292dp"/> + </LinearLayout> +</LinearLayout>
\ No newline at end of file |