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

Commit a65cf948 authored by Lin Guo's avatar Lin Guo
Browse files

Support arrow down animation

1. No need to use a FrameLayout for PagedListView.
2. Support arrow drop down animation.

BUG: 78474304,73134851
Test: manual

Change-Id: Iec4e046f1abca40d76bd76ab3d5dc2a02e4dfcc2
parent 13d650d7
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2018, 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.
*/
-->
<set xmlns:android="http://schemas.android.com/apk/res/android"
     android:ordering="together">
  <objectAnimator
      android:propertyName="rotation"
      android:duration="0"
      android:valueFrom="180"
      android:valueTo="0"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
  <objectAnimator
      android:propertyName="alpha"
      android:valueFrom="0.0"
      android:valueTo="1.0"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
  <objectAnimator
      android:propertyName="scaleX"
      android:valueFrom="0.8"
      android:valueTo="1.0"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
  <objectAnimator
      android:propertyName="scaleY"
      android:valueFrom="0.8"
      android:valueTo="1.0"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
</set>
 No newline at end of file
+48 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2018, 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.
*/
-->
<set xmlns:android="http://schemas.android.com/apk/res/android"
     android:ordering="together">
  <objectAnimator
      android:propertyName="rotation"
      android:duration="0"
      android:valueFrom="0"
      android:valueTo="180"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
  <objectAnimator
      android:propertyName="alpha"
      android:valueFrom="0.0"
      android:valueTo="1.0"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
  <objectAnimator
      android:propertyName="scaleX"
      android:valueFrom="0.8"
      android:valueTo="1.0"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
  <objectAnimator
      android:propertyName="scaleY"
      android:valueFrom="0.8"
      android:valueTo="1.0"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
</set>
 No newline at end of file
+42 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2018, 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.
*/
-->
<set xmlns:android="http://schemas.android.com/apk/res/android"
     android:ordering="together">
  <objectAnimator
      android:propertyName="alpha"
      android:valueFrom="1.0"
      android:valueTo="0.0"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
  <objectAnimator
      android:propertyName="scaleX"
      android:valueFrom="1.0"
      android:valueTo="0.8"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
  <objectAnimator
      android:propertyName="scaleY"
      android:valueFrom="1.0"
      android:valueTo="0.8"
      android:valueType="floatType"
      android:duration="300"
      android:interpolator="@android:interpolator/fast_out_slow_in" />
</set>
 No newline at end of file
+27 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~
  ~ Copyright (C) 2018 Google Inc.
  ~
  ~ 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.
  ~
 -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="44dp"
    android:height="44dp"
    android:viewportWidth="48.0"
    android:viewportHeight="48.0">
  <path
      android:pathData="M14.83 16.42L24 25.59l9.17-9.17L36 19.25l-12 12-12-12z"
      android:fillColor="#ffffff"/>
</vector>
 No newline at end of file
+30 −0
Original line number Diff line number Diff line
<!--
    Copyright (C) 2016 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="56dp"
    android:height="56dp"
    android:viewportWidth="48"
    android:viewportHeight="48">

  <path
      android:fillAlpha=".1"
      android:strokeAlpha=".1"
      android:pathData="M0 0h48v48H0z" />
  <path
      android:fillColor="@color/car_grey_50"
      android:pathData="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14
14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z" />
</vector>
Loading