Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c2fd3aa authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Polish the PipMenuView when showing the controls

- Decreases the menu action size
- Wraps custom actions into PipMenuActionView and restricts the size
  to be identical to other PiP actions such as settings and dismiss
- Removed unused pip_menu_activity.xml layout

Screenshot: https://screenshot.googleplex.com/6LFk5WJFfC4FQyA.png
Bug: 179312210
Test: Enter PiP and tap to show controls, see screenshot
Change-Id: I9de63be60ff66ee5198785885a28d495f1fb7af3
parent 766326b6
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -14,8 +14,8 @@
     limitations under the License.
     limitations under the License.
-->
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="36dp"
    android:width="@dimen/pip_expand_action_inner_size"
    android:height="36dp"
    android:height="@dimen/pip_expand_action_inner_size"
    android:viewportWidth="36"
    android:viewportWidth="36"
    android:viewportHeight="36">
    android:viewportHeight="36">


+2 −2
Original line number Original line Diff line number Diff line
@@ -15,8 +15,8 @@
    limitations under the License.
    limitations under the License.
-->
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="24.0dp"
        android:width="@dimen/pip_action_inner_size"
        android:height="24.0dp"
        android:height="@dimen/pip_action_inner_size"
        android:viewportWidth="24.0"
        android:viewportWidth="24.0"
        android:viewportHeight="24.0">
        android:viewportHeight="24.0">
    <path
    <path
+2 −2
Original line number Original line Diff line number Diff line
@@ -15,8 +15,8 @@
    limitations under the License.
    limitations under the License.
-->
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:width="@dimen/pip_action_inner_size"
    android:height="24dp"
    android:height="@dimen/pip_action_inner_size"
    android:viewportWidth="24"
    android:viewportWidth="24"
    android:viewportHeight="24">
    android:viewportHeight="24">


+2 −2
Original line number Original line Diff line number Diff line
@@ -15,8 +15,8 @@
    limitations under the License.
    limitations under the License.
-->
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:width="@dimen/pip_action_inner_size"
    android:height="24dp"
    android:height="@dimen/pip_action_inner_size"
    android:viewportWidth="24"
    android:viewportWidth="24"
    android:viewportHeight="24">
    android:viewportHeight="24">


+2 −2
Original line number Original line Diff line number Diff line
@@ -15,8 +15,8 @@
    limitations under the License.
    limitations under the License.
-->
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:width="@dimen/pip_action_inner_size"
    android:height="24dp"
    android:height="@dimen/pip_action_inner_size"
    android:viewportWidth="24.0"
    android:viewportWidth="24.0"
    android:viewportHeight="24.0">
    android:viewportHeight="24.0">
    <path
    <path
Loading