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

Commit 2fdeeabe authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Implement new assist gesture and motion

Change-Id: Ic8ba18c200058062f4d38ac4226d3516af3d3df0
parent 0b68ff45
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright (C) 2014 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
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient
            android:type="linear"
            android:angle="90"
            android:startColor="#33000000"
            android:endColor="#00000000" />
</shape>
 No newline at end of file
+54 −0
Original line number Diff line number Diff line
@@ -19,25 +19,36 @@
-->

<!-- Extends FrameLayout -->
<com.android.systemui.SearchPanelView
<com.android.systemui.assist.AssistOrbContainer
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/search_panel_container"
    android:layout_height="match_parent"
    android:layout_width="match_parent">
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.android.systemui.statusbar.AlphaOptimizedView
        style="@style/SearchPanelScrim"
        android:id="@+id/search_panel_scrim"
        android:background="@drawable/search_panel_scrim" />
        android:layout_width="match_parent"
        android:layout_height="@dimen/assist_orb_scrim_height"
        android:layout_gravity="bottom"
        android:id="@+id/assist_orb_scrim"
        android:background="@drawable/assist_orb_scrim"/>

    <com.android.systemui.SearchPanelCircleView
        style="@style/SearchPanelCircle"
        android:id="@+id/search_panel_circle">
    <com.android.systemui.assist.AssistOrbView
        android:id="@+id/assist_orb"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/search_logo"/>
    </com.android.systemui.SearchPanelCircleView>
    </com.android.systemui.assist.AssistOrbView>

</com.android.systemui.SearchPanelView>
    <com.android.systemui.statusbar.AlphaOptimizedView
        android:id="@+id/assist_orb_navbar_scrim"
        android:layout_height="@dimen/assist_orb_navbar_scrim_height"
        android:layout_width="match_parent"
        android:layout_gravity="bottom"
        android:elevation="50dp"
        android:outlineProvider="none"
        android:background="@drawable/assist_orb_navbar_scrim"/>

</com.android.systemui.assist.AssistOrbContainer>
 No newline at end of file
+0 −6
Original line number Diff line number Diff line
@@ -18,10 +18,4 @@
    <style name="BrightnessDialogContainer" parent="@style/BaseBrightnessDialogContainer">
        <item name="android:layout_width">360dp</item>
    </style>

    <style name="SearchPanelScrim">
        <item name="android:layout_width">@dimen/search_panel_scrim_height</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:layout_gravity">right</item>
    </style>
</resources>
+0 −6
Original line number Diff line number Diff line
@@ -19,12 +19,6 @@
        <item name="android:layout_width">480dp</item>
    </style>

    <style name="SearchPanelScrim">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">@dimen/search_panel_scrim_height</item>
        <item name="android:layout_gravity">bottom</item>
    </style>

    <style name="UserDetailView">
        <item name="numColumns">4</item>
    </style>
Loading