1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<MotionScene 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto"> 20 21 <Transition 22 android:id="@+id/header_transition" 23 app:constraintSetEnd="@id/qs_header_constraint" 24 app:constraintSetStart="@id/qqs_header_constraint"> 25 <KeyFrameSet> 26 <KeyPosition 27 app:keyPositionType="pathRelative" 28 app:percentX="0" 29 app:framePosition="50" 30 app:motionTarget="@id/date" /> 31 </KeyFrameSet> 32 </Transition> 33 34 <Transition 35 android:id="@+id/split_header_transition" 36 app:constraintSetStart="@id/split_header_constraint" 37 app:constraintSetEnd="@id/split_header_constraint"/> 38 39 <!-- 40 Placeholder ConstraintSet. They are populated in the controller for this class. 41 This is needed because there's no easy way to just refer to a `ConstraintSet` file. The 42 options are either a layout file or inline the ConstraintSets. 43 --> 44 <ConstraintSet android:id="@id/qqs_header_constraint"/> 45 46 <ConstraintSet android:id="@id/qs_header_constraint"/> 47 48 <ConstraintSet android:id="@id/split_header_constraint" /> 49 50</MotionScene> 51