Adjust PIP Resize handle size and margin.

Bug: 156917828
Test: Build and enter PIP
Change-Id: I0e2351fbc357d1ca60ef521886d3e7866dd91335
This commit is contained in:
Ben Lin
2020-05-21 16:07:44 -07:00
parent f51818a054
commit 39419af06a
2 changed files with 7 additions and 3 deletions

View File

@@ -84,10 +84,10 @@
<!--TODO (b/156917828): Add content description for a11y purposes?-->
<ImageButton
android:id="@+id/resize_handle"
android:layout_width="@dimen/pip_action_size"
android:layout_height="@dimen/pip_action_size"
android:layout_width="@dimen/pip_resize_handle_size"
android:layout_height="@dimen/pip_resize_handle_size"
android:layout_gravity="top|start"
android:padding="@dimen/pip_action_padding"
android:layout_margin="@dimen/pip_resize_handle_margin"
android:src="@drawable/pip_resize_handle"
android:background="?android:selectableItemBackgroundBorderless" />
</FrameLayout>

View File

@@ -999,6 +999,10 @@
<!-- The touchable/draggable edge size for PIP resize. -->
<dimen name="pip_resize_edge_size">48dp</dimen>
<!-- PIP Resize handle size and margin. -->
<dimen name="pip_resize_handle_size">12dp</dimen>
<dimen name="pip_resize_handle_margin">4dp</dimen>
<!-- The corner radius for PiP window. -->
<dimen name="pip_corner_radius">8dp</dimen>