diff options
author | Eric Erfanian <erfanian@google.com> | 2017-05-05 15:23:13 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-05 15:23:13 +0000 |
commit | 300a8683b9c28424fb0f0c571a0abe128c461f69 (patch) | |
tree | 3a325b0effac02fbd228b8ddf2f96589e5df72cd /java/com/android/incallui/sessiondata/res/layout | |
parent | d67f1627521b174f12e0c247f154c7c93c5e408e (diff) | |
parent | 10b34a5ebf12e97ecba0caf3c8e30b476b038a96 (diff) |
Update Dialer to V10 RC16
am: 10b34a5ebf
Change-Id: Iea3e96ccdeaf1fa796ceca702cace82ca20f298c
Diffstat (limited to 'java/com/android/incallui/sessiondata/res/layout')
8 files changed, 322 insertions, 272 deletions
diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_frag.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_frag.xml index ed2bee0d1..e5c879888 100644 --- a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_frag.xml +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_frag.xml @@ -15,28 +15,28 @@ ~ 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:paddingTop="16dp" - android:paddingStart="16dp" - android:paddingEnd="24dp" - android:orientation="horizontal"> - - <ImageView - android:id="@id/answer_message_avatar" - android:layout_width="@dimen/answer_message_avatar_size" - android:layout_height="@dimen/answer_message_avatar_size" - android:elevation="@dimen/answer_data_elevation"/> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="@dimen/answer_message_margin_start_end" + android:paddingEnd="@dimen/answer_message_margin_start_end"> <FrameLayout - android:id="@id/answer_message_frag" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:layout_marginBottom="4dp" - android:layout_marginStart="8dp" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:outlineProvider="background"/> -</LinearLayout> + android:id="@id/answer_message_frag" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/answer_message_contents_margin_top" + android:layout_marginBottom="4dp" + android:layout_alignTop="@+id/answer_message_avatar" + android:background="@drawable/answer_data_background" + android:elevation="@dimen/answer_data_elevation" + android:outlineProvider="background"/> + + <ImageView + android:id="@id/answer_message_avatar" + android:layout_width="@dimen/answer_message_avatar_size" + android:layout_height="@dimen/answer_message_avatar_size" + android:layout_centerHorizontal="true" + android:elevation="@dimen/answer_avatar_elevation"/> +</RelativeLayout> diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_image.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_image.xml index 431a178c2..ed29e78c4 100644 --- a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_image.xml +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_image.xml @@ -16,36 +16,37 @@ --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="16dp" - android:paddingStart="16dp" - android:paddingEnd="24dp"> - - <ImageView - android:id="@id/answer_message_avatar" - android:layout_width="@dimen/answer_message_avatar_size" - android:layout_height="@dimen/answer_message_avatar_size" - android:elevation="@dimen/answer_data_elevation"/> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="@dimen/answer_message_margin_start_end" + android:paddingEnd="@dimen/answer_message_margin_start_end"> <ImageView - android:id="@id/answer_message_image" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginStart="8dp" - android:layout_centerInParent="true" - android:layout_toEndOf="@+id/answer_message_avatar" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:outlineProvider="background" - android:adjustViewBounds="true" - android:scaleType="fitCenter"/> + android:id="@id/answer_message_image" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/answer_message_contents_margin_top" + android:layout_marginBottom="4dp" + android:layout_centerInParent="true" + android:layout_alignTop="@+id/answer_message_avatar" + android:outlineProvider="background" + android:background="@drawable/answer_data_background" + android:elevation="@dimen/answer_data_elevation" + android:adjustViewBounds="true" + android:scaleType="fitCenter"/> <ProgressBar - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:id="@+id/loading_spinner" - android:layout_centerInParent="true" - android:elevation="2dp"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/loading_spinner" + android:layout_centerInParent="true" + android:elevation="@dimen/answer_data_elevation"/> + + <ImageView + android:id="@id/answer_message_avatar" + android:layout_width="@dimen/answer_message_avatar_size" + android:layout_height="@dimen/answer_message_avatar_size" + android:layout_centerHorizontal="true" + android:elevation="@dimen/answer_avatar_elevation"/> </RelativeLayout> diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_image_frag.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_image_frag.xml index c816418fc..1cb234784 100644 --- a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_image_frag.xml +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_image_frag.xml @@ -15,53 +15,50 @@ ~ limitations under the License --> -<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingTop="16dp" - android:paddingStart="16dp" - android:paddingEnd="24dp" - android:orientation="horizontal"> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="@dimen/answer_message_margin_start_end" + android:paddingEnd="@dimen/answer_message_margin_start_end"> - <ImageView - android:id="@id/answer_message_avatar" - android:layout_width="@dimen/answer_message_avatar_size" - android:layout_height="@dimen/answer_message_avatar_size" - android:layout_rowSpan="2" - android:elevation="@dimen/answer_data_elevation"/> + <LinearLayout + android:id="@id/answer_message_container" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/answer_message_contents_margin_top" + android:layout_alignTop="@+id/answer_message_avatar" + android:layout_marginBottom="@dimen/answer_data_elevation" + android:elevation="@dimen/answer_data_elevation" + android:background="@drawable/answer_data_background" + android:outlineProvider="background"> - <ImageView - android:id="@id/answer_message_image" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginStart="8dp" - android:layout_columnWeight="1" - android:layout_rowWeight="1" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:outlineProvider="background" - android:scaleType="centerCrop"/> + <ImageView + android:id="@id/answer_message_image" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:scaleType="centerCrop"/> + + <FrameLayout + android:id="@id/answer_message_frag" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1"/> + </LinearLayout> <ProgressBar - android:id="@+id/loading_spinner" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_column="1" - android:layout_gravity="center" - android:elevation="2dp"/> + android:id="@+id/loading_spinner" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:elevation="@dimen/answer_data_elevation"/> - <FrameLayout - android:id="@id/answer_message_frag" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginTop="4dp" - android:layout_marginBottom="4dp" - android:layout_marginStart="8dp" - android:layout_column="1" - android:layout_columnWeight="1" - android:layout_row="1" - android:layout_rowWeight="1" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:outlineProvider="background"/> -</GridLayout> + <ImageView + android:id="@id/answer_message_avatar" + android:layout_width="@dimen/answer_message_avatar_size" + android:layout_height="@dimen/answer_message_avatar_size" + android:layout_centerHorizontal="true" + android:elevation="@dimen/answer_avatar_elevation"/> +</RelativeLayout> diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml index c69973042..d2147ea62 100644 --- a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml @@ -15,29 +15,35 @@ ~ 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:paddingTop="16dp" - android:paddingStart="16dp" - android:paddingEnd="24dp" - android:orientation="horizontal"> - - <ImageView - android:id="@id/answer_message_avatar" - android:layout_width="@dimen/answer_message_avatar_size" - android:layout_height="@dimen/answer_message_avatar_size" - android:elevation="@dimen/answer_data_elevation"/> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="@dimen/answer_message_margin_start_end" + android:paddingEnd="@dimen/answer_message_margin_start_end"> <TextView - android:id="@id/answer_message_text" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:layout_marginBottom="4dp" - android:layout_marginStart="8dp" - android:padding="18dp" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> -</LinearLayout> + android:id="@id/answer_message_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/answer_message_contents_margin_top" + android:layout_marginBottom="4dp" + android:layout_centerHorizontal="true" + android:layout_alignTop="@+id/answer_message_avatar" + android:paddingTop="44dp" + android:paddingBottom="44dp" + android:paddingStart="18dp" + android:paddingEnd="18dp" + android:background="@drawable/answer_text_only_background" + android:elevation="@dimen/answer_data_elevation" + android:gravity="center_horizontal" + android:textColor="@color/background_dialer_white" + android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> + + <ImageView + android:id="@id/answer_message_avatar" + android:layout_width="@dimen/answer_message_avatar_size" + android:layout_height="@dimen/answer_message_avatar_size" + android:layout_centerHorizontal="true" + android:elevation="@dimen/answer_avatar_elevation"/> +</RelativeLayout> diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_frag.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_frag.xml index 5a1cf728b..4a73ef619 100644 --- a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_frag.xml +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_frag.xml @@ -15,47 +15,47 @@ ~ limitations under the License --> -<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingTop="16dp" - android:paddingStart="16dp" - android:paddingEnd="24dp" - android:orientation="horizontal"> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="@dimen/answer_message_margin_start_end" + android:paddingEnd="@dimen/answer_message_margin_start_end"> - <ImageView - android:id="@id/answer_message_avatar" - android:layout_width="@dimen/answer_message_avatar_size" - android:layout_height="@dimen/answer_message_avatar_size" - android:layout_rowSpan="2" - android:elevation="@dimen/answer_data_elevation"/> + <LinearLayout + android:id="@id/answer_message_container" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/answer_message_contents_margin_top" + android:layout_alignTop="@+id/answer_message_avatar" + android:layout_marginBottom="@dimen/answer_data_elevation" + android:elevation="@dimen/answer_data_elevation" + android:background="@drawable/answer_data_background" + android:outlineProvider="background"> + + <FrameLayout + android:id="@id/answer_message_frag" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="3"/> - <TextView - android:id="@id/answer_message_text" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginStart="8dp" - android:layout_columnWeight="1" - android:layout_rowWeight="1" - android:padding="18dp" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:gravity="center_vertical" - android:maxLines="2" - android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> + <TextView + android:id="@id/answer_message_text" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="2" + android:paddingStart="18dp" + android:paddingEnd="18dp" + android:gravity="center" + android:maxLines="2" + android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> + </LinearLayout> - <FrameLayout - android:id="@id/answer_message_frag" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginTop="4dp" - android:layout_marginBottom="4dp" - android:layout_marginStart="8dp" - android:layout_column="1" - android:layout_columnWeight="1" - android:layout_row="1" - android:layout_rowWeight="1" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:outlineProvider="background"/> -</GridLayout> + <ImageView + android:id="@id/answer_message_avatar" + android:layout_width="@dimen/answer_message_avatar_size" + android:layout_height="@dimen/answer_message_avatar_size" + android:layout_centerHorizontal="true" + android:elevation="@dimen/answer_avatar_elevation"/> +</RelativeLayout>
\ No newline at end of file diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_image.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_image.xml index 4e6fcbadb..828675b6b 100644 --- a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_image.xml +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_image.xml @@ -15,56 +15,55 @@ ~ limitations under the License --> -<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingTop="16dp" - android:paddingStart="16dp" - android:paddingEnd="24dp" - android:orientation="horizontal"> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="@dimen/answer_message_margin_start_end" + android:paddingEnd="@dimen/answer_message_margin_start_end"> - <ImageView - android:id="@id/answer_message_avatar" - android:layout_width="@dimen/answer_message_avatar_size" - android:layout_height="@dimen/answer_message_avatar_size" - android:layout_rowSpan="2" - android:elevation="@dimen/answer_data_elevation"/> + <LinearLayout + android:id="@id/answer_message_container" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/answer_message_contents_margin_top" + android:layout_alignTop="@+id/answer_message_avatar" + android:layout_marginBottom="@dimen/answer_data_elevation" + android:elevation="@dimen/answer_data_elevation" + android:background="@drawable/answer_data_background" + android:outlineProvider="background"> - <TextView - android:id="@id/answer_message_text" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginStart="8dp" - android:layout_columnWeight="1" - android:layout_rowWeight="1" - android:padding="18dp" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:gravity="center_vertical" - android:maxLines="2" - android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> + <ImageView + android:id="@id/answer_message_image" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="3" + android:scaleType="centerCrop"/> - <ImageView - android:id="@id/answer_message_image" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginTop="4dp" - android:layout_marginBottom="4dp" - android:layout_marginStart="8dp" - android:layout_column="1" - android:layout_columnWeight="1" - android:layout_row="1" - android:layout_rowWeight="1" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:outlineProvider="background" - android:scaleType="centerCrop"/> + <TextView + android:id="@id/answer_message_text" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="2" + android:paddingStart="18dp" + android:paddingEnd="18dp" + android:gravity="center" + android:maxLines="2" + android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> + </LinearLayout> <ProgressBar - android:id="@+id/loading_spinner" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_column="1" - android:layout_gravity="center" - android:elevation="2dp"/> -</GridLayout> + android:id="@+id/loading_spinner" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:elevation="@dimen/answer_data_elevation"/> + + <ImageView + android:id="@id/answer_message_avatar" + android:layout_width="@dimen/answer_message_avatar_size" + android:layout_height="@dimen/answer_message_avatar_size" + android:layout_centerHorizontal="true" + android:elevation="@dimen/answer_avatar_elevation"/> +</RelativeLayout>
\ No newline at end of file diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_image_frag.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_image_frag.xml index ffbe41bbd..4abdbb25d 100644 --- a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_image_frag.xml +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text_image_frag.xml @@ -15,72 +15,68 @@ ~ limitations under the License --> -<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingTop="16dp" - android:paddingStart="16dp" - android:paddingEnd="24dp" - android:orientation="horizontal"> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="@dimen/answer_message_margin_start_end" + android:paddingEnd="@dimen/answer_message_margin_start_end"> - <ImageView - android:id="@id/answer_message_avatar" - android:layout_width="@dimen/answer_message_avatar_size" - android:layout_height="@dimen/answer_message_avatar_size" - android:layout_rowSpan="2" - android:elevation="@dimen/answer_data_elevation"/> + <LinearLayout + android:id="@id/answer_message_container" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/answer_message_contents_margin_top" + android:layout_alignTop="@+id/answer_message_avatar" + android:layout_marginBottom="@dimen/answer_data_elevation" + android:elevation="@dimen/answer_data_elevation" + android:background="@drawable/answer_data_background" + android:outlineProvider="background"> - <TextView - android:id="@id/answer_message_text" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginStart="8dp" - android:layout_columnWeight="2" - android:layout_columnSpan="2" - android:layout_rowWeight="1" - android:padding="18dp" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:gravity="center_vertical" - android:maxLines="2" - android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="3"> - <ImageView - android:id="@id/answer_message_image" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginTop="4dp" - android:layout_marginBottom="4dp" - android:layout_marginStart="8dp" - android:layout_column="1" - android:layout_columnWeight="1" - android:layout_row="1" - android:layout_rowWeight="1" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:outlineProvider="background" - android:scaleType="centerCrop"/> + <ImageView + android:id="@id/answer_message_image" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:scaleType="centerCrop"/> + + <FrameLayout + android:id="@id/answer_message_frag" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1"/> + </LinearLayout> + + <TextView + android:id="@id/answer_message_text" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="2" + android:paddingStart="18dp" + android:paddingEnd="18dp" + android:gravity="center" + android:maxLines="2" + android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> + </LinearLayout> <ProgressBar - android:id="@+id/loading_spinner" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_column="1" - android:layout_gravity="center" - android:elevation="2dp"/> + android:id="@+id/loading_spinner" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:elevation="@dimen/answer_data_elevation"/> - <FrameLayout - android:id="@id/answer_message_frag" - android:layout_width="0dp" - android:layout_height="0dp" - android:layout_marginTop="4dp" - android:layout_marginBottom="4dp" - android:layout_marginStart="8dp" - android:layout_column="2" - android:layout_columnWeight="1" - android:layout_row="1" - android:layout_rowWeight="1" - android:background="@drawable/answer_data_background" - android:elevation="@dimen/answer_data_elevation" - android:outlineProvider="background"/> -</GridLayout> + <ImageView + android:id="@id/answer_message_avatar" + android:layout_width="@dimen/answer_message_avatar_size" + android:layout_height="@dimen/answer_message_avatar_size" + android:layout_centerHorizontal="true" + android:elevation="@dimen/answer_avatar_elevation"/> +</RelativeLayout>
\ No newline at end of file diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_spam.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_spam.xml new file mode 100644 index 000000000..ccf69a50c --- /dev/null +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_spam.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 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:paddingTop="16dp" + android:paddingStart="@dimen/answer_message_margin_start_end" + android:paddingEnd="@dimen/answer_message_margin_start_end" + android:elevation="@dimen/answer_data_elevation"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="204dp" + android:layout_gravity="center" + android:padding="16dp" + android:gravity="center" + android:outlineProvider="background" + android:background="@drawable/spam_container_background"> + + <ImageView + android:id="@+id/spam_image" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="18dp" + android:src="@drawable/quantum_ic_image_white_24" + android:tint="#546e7a"/> + + <TextView + android:id="@+id/spam_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/spam_photo_text" + android:textColor="#546e7a" + android:textSize="12sp"/> + </LinearLayout> +</FrameLayout>
\ No newline at end of file |