mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 17:48:20 +00:00
Following the general pattern on icon launch animations, define a 'floating widget view' to represent the appearance of the app widget through the launch animation. The floating widget view separates the foreground and background components of the LauncherAppWidgetHostView, which can be positioned and animated separately. The background (or placeholder if no background can be identified) moves and grows from its original position and size to the launched app's position and size. The widget's foreground scales and moves to match, fading out to be replaced with the app window. Bug: 169042867 Test: manual Change-Id: I65d2b1bc80275f9df460790720e13d1650093347
21 lines
899 B
XML
21 lines
899 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2021 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.
|
|
-->
|
|
<com.android.quickstep.views.FloatingWidgetView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layoutDirection="ltr" />
|