diff options
author | Eric Erfanian <erfanian@google.com> | 2017-05-03 23:10:39 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-03 23:10:39 +0000 |
commit | d67f1627521b174f12e0c247f154c7c93c5e408e (patch) | |
tree | 1a45d60921e293c6088efeaf4d9c408456f3e0e2 /java/com/android/incallui/answer/impl/res/layout/fragment_incoming_call.xml | |
parent | 010981b798fbc6b8e6a00c3ea507f00c3e77c371 (diff) | |
parent | 8369df095a73a77b3715f8ae7ba06089cebca4ce (diff) |
This change reflects the Dialer V10 RC00 branch.
am: 8369df095a
Change-Id: I6820870feb74cba010ac3039e4da41325b3005f9
Diffstat (limited to 'java/com/android/incallui/answer/impl/res/layout/fragment_incoming_call.xml')
-rw-r--r-- | java/com/android/incallui/answer/impl/res/layout/fragment_incoming_call.xml | 201 |
1 files changed, 104 insertions, 97 deletions
diff --git a/java/com/android/incallui/answer/impl/res/layout/fragment_incoming_call.xml b/java/com/android/incallui/answer/impl/res/layout/fragment_incoming_call.xml index 2e42a6ac8..cd85e2f5b 100644 --- a/java/com/android/incallui/answer/impl/res/layout/fragment_incoming_call.xml +++ b/java/com/android/incallui/answer/impl/res/layout/fragment_incoming_call.xml @@ -15,15 +15,15 @@ ~ limitations under the License --> <com.android.incallui.answer.impl.AffordanceHolderLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools" - android:id="@+id/incoming_container" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:clipChildren="false" - android:clipToPadding="false" - android:keepScreenOn="true"> + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/incoming_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipChildren="false" + android:clipToPadding="false" + android:keepScreenOn="true"> <TextureView android:id="@+id/incoming_preview_texture_view" @@ -38,124 +38,131 @@ android:layout_height="match_parent" android:importantForAccessibility="no" android:visibility="gone" - app:scaleWidth="@bool/scale_width" - app:scaleHeight="@bool/scale_height"/> + app:scaleHeight="@bool/scale_height" + app:scaleWidth="@bool/scale_width"/> <View - android:id="@+id/incoming_preview_texture_view_overlay" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@color/videocall_overlay_background_color" - android:visibility="gone"/> + android:id="@+id/incoming_preview_texture_view_overlay" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/videocall_overlay_background_color" + android:visibility="gone"/> <FrameLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:fitsSystemWindows="true"> + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true"> <TextView - android:id="@+id/videocall_video_off" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:padding="64dp" - android:accessibilityTraversalBefore="@+id/videocall_speaker_button" - android:drawablePadding="8dp" - android:drawableTop="@drawable/quantum_ic_videocam_off_white_36" - android:gravity="center" - android:text="@string/call_incoming_video_is_off" - android:textAppearance="@style/Dialer.Incall.TextAppearance" - android:visibility="gone"/> + android:id="@+id/videocall_video_off" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:padding="64dp" + android:accessibilityTraversalBefore="@+id/videocall_speaker_button" + android:drawablePadding="8dp" + android:drawableTop="@drawable/quantum_ic_videocam_off_white_36" + android:gravity="center" + android:text="@string/call_incoming_video_is_off" + android:textAppearance="@style/Dialer.Incall.TextAppearance" + android:visibility="gone"/> <LinearLayout - android:id="@+id/incall_contact_grid" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_marginTop="24dp" - android:clipChildren="false" - android:clipToPadding="false" - android:gravity="top|center_horizontal" - android:orientation="vertical"> + android:id="@+id/incall_contact_grid" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="24dp" + android:clipChildren="false" + android:clipToPadding="false" + android:gravity="top|center_horizontal" + android:orientation="vertical"> <include - android:id="@id/contactgrid_top_row" - layout="@layout/incall_contactgrid_top_row" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginBottom="8dp" - android:layout_marginStart="24dp" - android:layout_marginEnd="24dp"/> + android:id="@id/contactgrid_top_row" + layout="@layout/incall_contactgrid_top_row" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" + android:layout_marginStart="24dp" + android:layout_marginEnd="24dp"/> <!-- We have to keep deprecated singleLine to allow long text being truncated with ellipses. b/31396406 --> <com.android.incallui.autoresizetext.AutoResizeTextView - android:id="@id/contactgrid_contact_name" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginBottom="8dp" - android:layout_marginStart="24dp" - android:layout_marginEnd="24dp" - android:singleLine="true" - android:textAppearance="@style/Dialer.Incall.TextAppearance.Large" - android:textSize="@dimen/answer_contact_name_text_size" - app:autoResizeText_minTextSize="@dimen/answer_contact_name_min_size" - tools:ignore="Deprecated" - tools:text="Jake Peralta"/> + android:id="@id/contactgrid_contact_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" + android:layout_marginStart="24dp" + android:layout_marginEnd="24dp" + android:singleLine="true" + android:textAppearance="@style/Dialer.Incall.TextAppearance.Large" + android:textSize="@dimen/answer_contact_name_text_size" + app:autoResizeText_minTextSize="@dimen/answer_contact_name_min_size" + tools:ignore="Deprecated" + tools:text="Jake Peralta"/> <include - android:id="@id/contactgrid_bottom_row" - layout="@layout/incall_contactgrid_bottom_row" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="24dp" - android:layout_marginEnd="24dp"/> + android:id="@id/contactgrid_bottom_row" + layout="@layout/incall_contactgrid_bottom_row" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="24dp" + android:layout_marginEnd="24dp"/> <TextView - android:id="@+id/incall_important_call_badge" - android:layout_width="wrap_content" - android:layout_height="48dp" - android:layout_marginTop="4dp" - android:layout_marginBottom="@dimen/answer_importance_margin_bottom" - android:elevation="@dimen/answer_data_elevation" - android:gravity="center" - android:singleLine="true" - android:text="@string/call_incoming_important" - android:textAllCaps="true" - android:textAppearance="@style/Dialer.Incall.TextAppearance" - android:textColor="@android:color/black"/> + android:id="@+id/incall_important_call_badge" + android:layout_width="wrap_content" + android:layout_height="48dp" + android:layout_marginTop="4dp" + android:layout_marginBottom="@dimen/answer_importance_margin_bottom" + android:elevation="@dimen/answer_data_elevation" + android:gravity="center" + android:singleLine="true" + android:text="@string/call_incoming_important" + android:textAllCaps="true" + android:textAppearance="@style/Dialer.Incall.TextAppearance" + android:textColor="@android:color/black"/> <FrameLayout - android:id="@+id/incall_location_holder" - android:layout_width="match_parent" - android:layout_height="wrap_content"/> + android:id="@+id/incall_location_holder" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> <FrameLayout - android:id="@+id/incall_data_container" - android:layout_width="match_parent" - android:layout_height="@dimen/answer_data_size" - android:clipChildren="false" - android:clipToPadding="false"/> + android:id="@+id/incall_data_container" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:clipChildren="false" + android:clipToPadding="false"/> + + <!-- Space holder for answer method. This is used to get better scaling to make room for + incall_data_container on different screen size. --> + <Space + android:layout_width="match_parent" + android:layout_height="220dp"/> </LinearLayout> <FrameLayout - android:id="@+id/answer_method_container" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:clipChildren="false" - android:clipToPadding="false"/> + android:id="@+id/answer_method_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipChildren="false" + android:clipToPadding="false"/> </FrameLayout> <com.android.incallui.answer.impl.affordance.SwipeButtonView - android:id="@+id/incoming_secondary_button" - android:layout_width="56dp" - android:layout_height="56dp" - android:layout_gravity="bottom|start" - android:scaleType="center" - android:src="@drawable/quantum_ic_message_white_24" - android:visibility="invisible" - tools:visibility="visible"/> + android:id="@+id/incoming_secondary_button" + android:layout_width="56dp" + android:layout_height="56dp" + android:layout_gravity="bottom|start" + android:scaleType="center" + android:src="@drawable/quantum_ic_message_white_24" + android:visibility="invisible" + tools:visibility="visible"/> <com.android.incallui.answer.impl.affordance.SwipeButtonView android:id="@+id/incoming_secondary_button2" |