1
0
Fork 0
fenix/app/src/main/res/xml/home_scene.xml

57 lines
2.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2019-01-11 19:08:02 +01: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/. -->
<MotionScene
2019-04-05 18:38:14 +02:00
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
2019-04-05 18:38:14 +02:00
motion:dragDirection="dragUp"
2019-04-06 06:24:28 +02:00
motion:touchAnchorId="@id/home_component"
motion:touchAnchorSide="top"
motion:onTouchUp="stop"/>
2019-01-29 00:20:17 +01:00
<KeyFrameSet>
<KeyAttribute
2019-04-05 18:38:14 +02:00
motion:motionTarget="@id/wordmark"
2019-01-29 00:20:17 +01:00
motion:framePosition="90"
android:alpha="0" />
<KeyAttribute
2019-04-05 18:38:14 +02:00
motion:motionTarget="@id/privateBrowsingButton"
2019-01-29 00:20:17 +01:00
motion:framePosition="90"
android:alpha="0" />
</KeyFrameSet>
</Transition>
<ConstraintSet android:id="@+id/start">
</ConstraintSet>
<ConstraintSet android:id="@+id/end">
<Constraint
2019-04-05 18:38:14 +02:00
android:id="@+id/wordmark"
android:layout_marginStart="16dp"
android:layout_marginBottom="32dp"
2019-04-05 18:38:14 +02:00
android:alpha="0"
android:layout_width="wrap_content"
android:layout_height="80dp"
2019-04-05 18:38:14 +02:00
android:translationY="-10dp"
motion:layout_constraintStart_toStartOf="parent"
motion:layout_constraintBottom_toTopOf="parent" />
2019-01-29 00:20:17 +01:00
<Constraint
android:id="@+id/privateBrowsingButton"
2019-01-29 00:20:17 +01:00
android:alpha="0"
android:visibility="invisible"
2019-01-29 00:20:17 +01:00
android:layout_width="@dimen/glyph_button_height"
android:layout_height="@dimen/glyph_button_height"
android:layout_marginEnd="12dp"
android:translationY="-32dp"
2019-01-29 00:20:17 +01:00
motion:layout_constraintEnd_toEndOf="parent"
motion:layout_constraintTop_toTopOf="parent"/>
</ConstraintSet>
2019-04-05 18:38:14 +02:00
</MotionScene>