2019-01-11 17:44:22 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-01-11 18:08:02 +00:00
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
2019-01-11 17:44:22 +00:00
|
|
|
<MotionScene
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:motion="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
|
|
<Transition
|
|
|
|
motion:constraintSetStart="@+id/start"
|
|
|
|
motion:constraintSetEnd="@+id/end">
|
|
|
|
<OnSwipe
|
|
|
|
motion:dragDirection="dragUp"
|
|
|
|
motion:touchAnchorId="@id/session_list"
|
|
|
|
motion:touchAnchorSide="top" />
|
|
|
|
|
2019-01-28 23:20:17 +00:00
|
|
|
<KeyFrameSet>
|
|
|
|
<KeyPosition
|
|
|
|
motion:keyPositionType="pathRelative"
|
|
|
|
motion:framePosition="50"
|
|
|
|
motion:target="@id/wordmark"
|
|
|
|
motion:percentX="0.9" />
|
|
|
|
|
|
|
|
|
|
|
|
<KeyAttribute
|
|
|
|
motion:target="@id/wordmark"
|
|
|
|
motion:framePosition="50"
|
|
|
|
android:alpha="1" />
|
|
|
|
<KeyAttribute
|
|
|
|
motion:target="@id/wordmark"
|
|
|
|
motion:framePosition="90"
|
|
|
|
android:alpha="0" />
|
|
|
|
|
|
|
|
<KeyAttribute
|
|
|
|
motion:target="@id/menuButton"
|
|
|
|
motion:framePosition="50"
|
|
|
|
android:alpha="1" />
|
|
|
|
<KeyAttribute
|
|
|
|
motion:target="@id/menuButton"
|
|
|
|
motion:framePosition="90"
|
|
|
|
android:alpha="0" />
|
|
|
|
<KeyAttribute
|
|
|
|
motion:target="@id/privateBrowsingButton"
|
|
|
|
motion:framePosition="50"
|
|
|
|
android:alpha="1" />
|
|
|
|
<KeyAttribute
|
|
|
|
motion:target="@id/privateBrowsingButton"
|
|
|
|
motion:framePosition="90"
|
|
|
|
android:alpha="0" />
|
2019-01-29 04:55:23 +00:00
|
|
|
|
|
|
|
<KeyAttribute
|
2019-01-29 18:03:39 +00:00
|
|
|
motion:target="@id/toolbar_wrapper"
|
|
|
|
motion:framePosition="0"
|
|
|
|
android:elevation="@dimen/toolbar_elevation" />
|
2019-01-29 04:55:23 +00:00
|
|
|
|
|
|
|
<KeyAttribute
|
|
|
|
motion:target="@id/toolbar_wrapper"
|
|
|
|
motion:framePosition="50"
|
|
|
|
android:elevation="0dp" />
|
|
|
|
|
2019-01-29 18:03:39 +00:00
|
|
|
<KeyTrigger
|
|
|
|
motion:target="@id/toolbar_wrapper"
|
|
|
|
motion:framePosition="55"
|
|
|
|
motion:onPositiveCross="transitionToDark"
|
|
|
|
motion:onNegativeCross="transitionToLight"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<KeyTrigger
|
|
|
|
motion:target="@id/toolbar_wrapper"
|
|
|
|
motion:framePosition="90"
|
|
|
|
motion:onPositiveCross="transitionToDarkNoBorder"
|
|
|
|
motion:onNegativeCross="transitionToDarkFromNoBorder"
|
|
|
|
/>
|
|
|
|
|
2019-01-28 23:20:17 +00:00
|
|
|
</KeyFrameSet>
|
2019-01-11 17:44:22 +00:00
|
|
|
</Transition>
|
|
|
|
|
|
|
|
<ConstraintSet android:id="@+id/start">
|
|
|
|
</ConstraintSet>
|
|
|
|
|
|
|
|
<ConstraintSet android:id="@+id/end">
|
|
|
|
<Constraint
|
|
|
|
android:id="@+id/wordmark"
|
2019-01-30 02:59:19 +00:00
|
|
|
android:layout_marginStart="16dp"
|
2019-01-11 17:44:22 +00:00
|
|
|
android:layout_marginTop="12dp"
|
2019-01-28 23:20:17 +00:00
|
|
|
android:alpha="0"
|
2019-01-11 17:44:22 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-01-30 02:59:19 +00:00
|
|
|
motion:layout_constraintStart_toStartOf="parent"
|
2019-01-11 17:44:22 +00:00
|
|
|
motion:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<Constraint
|
|
|
|
android:id="@+id/toolbar_wrapper"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2019-01-30 02:59:19 +00:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2019-01-28 23:20:17 +00:00
|
|
|
motion:layout_constraintTop_toTopOf="parent"
|
2019-01-30 02:59:19 +00:00
|
|
|
motion:layout_constraintStart_toStartOf="parent"
|
|
|
|
motion:layout_constraintEnd_toEndOf="parent"
|
2019-01-11 17:44:22 +00:00
|
|
|
android:elevation="0dp"/>
|
2019-01-28 23:20:17 +00:00
|
|
|
|
|
|
|
<Constraint
|
|
|
|
android:id="@+id/menuButton"
|
|
|
|
android:alpha="0"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_height="@dimen/glyph_button_height"
|
|
|
|
android:layout_width="@dimen/glyph_button_height"
|
|
|
|
motion:layout_constraintEnd_toEndOf="parent"
|
|
|
|
motion:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
|
|
|
<Constraint
|
|
|
|
android:id="@+id/privateBrowsingButton"
|
|
|
|
android:alpha="0"
|
|
|
|
android:layout_height="@dimen/glyph_button_height"
|
|
|
|
android:layout_width="@dimen/glyph_button_height"
|
|
|
|
motion:layout_constraintEnd_toStartOf="@id/menuButton"
|
|
|
|
motion:layout_constraintTop_toTopOf="@id/menuButton"/>
|
2019-01-29 04:55:23 +00:00
|
|
|
|
2019-01-11 17:44:22 +00:00
|
|
|
</ConstraintSet>
|
|
|
|
|
|
|
|
</MotionScene>
|