mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Adds support to pin bubble bar to other side of the screen by dragging from one bubble. The entire bubble bar will move to the other side. Implements the BaseBubbleBarPinController to handle dragging an individual BubbleView. Updates how translation and alpha get applied during BubbleBarView location animation when a bubble is being dragged. Dragged bubble is part of the BubbleBarView and when it is being dragged, and we animate the bubble bar to the other side, we need to ensure that the animation does not affect the dragged bubble. Updating the translation and alpha for the BubbleBarView ViewGroup will affect the dragged bubble as well. Updating how translation and alpha gets applied to BubbleBarView so that it gets applied to individual child views and then we can skip applying it to the dragged view. Bug: 330585402 Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT Test: drag bubble from expanded bubble bar to left and right Change-Id: I1fe2ba9fd466ff97d3b3af763bdcce30c3f98606
23 lines
1.1 KiB
XML
23 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Copyright (C) 2024 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.
|
|
-->
|
|
|
|
<!-- TODO(b/330585402): replace 600dp height with calculated value -->
|
|
<View xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="@dimen/bubble_expanded_view_drop_target_width"
|
|
android:layout_height="600dp"
|
|
android:layout_margin="@dimen/bubble_expanded_view_drop_target_margin"
|
|
android:background="@drawable/bg_bubble_expanded_view_drop_target"
|
|
android:elevation="@dimen/bubblebar_elevation" /> |