1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3** 4** Copyright 2023, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License") 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19 20<MotionScene 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 xmlns:motion="http://schemas.android.com/apk/res-auto" 23 xmlns:androidprv="http://schemas.android.com/apk/res-auto"> 24 25 <Transition 26 motion:constraintSetStart="@id/single_constraints" 27 motion:constraintSetEnd="@+id/split_constraints" 28 motion:duration="0" 29 motion:autoTransition="none" /> 30 31 <Transition 32 motion:constraintSetStart="@id/single_constraints" 33 motion:constraintSetEnd="@+id/half_folded_single_constraints" 34 motion:duration="@integer/material_motion_duration_short_1" /> 35 36 <!-- No changes to default layout --> 37 <ConstraintSet android:id="@+id/single_constraints"/> 38 39 <ConstraintSet android:id="@+id/half_folded_single_constraints"> 40 41 <Constraint 42 android:id="@+id/pin_pad_top_guideline" 43 androidprv:layout_constraintGuide_percent= 44 "@dimen/motion_layout_half_fold_bouncer_height_ratio"/> 45 46 <Constraint 47 android:id="@+id/keyguard_selector_fade_container" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:layout_marginBottom="0dp" 51 android:layout_marginTop="@dimen/keyguard_eca_top_margin" 52 android:orientation="vertical" 53 androidprv:layout_constraintBottom_toBottomOf="parent" 54 androidprv:layout_constraintTop_toBottomOf="@+id/flow1"/> 55 56 </ConstraintSet> 57 58 <ConstraintSet android:id="@+id/split_constraints"> 59 60 <Constraint 61 android:id="@+id/keyguard_bouncer_message_container" 62 android:layout_width="0dp" 63 android:layout_height="wrap_content" 64 androidprv:layout_constraintEnd_toStartOf="@+id/pin_pad_center_guideline" 65 androidprv:layout_constraintStart_toStartOf="parent" 66 androidprv:layout_constraintTop_toTopOf="parent" /> 67 <Constraint 68 android:id="@+id/row0" 69 android:layout_width="0dp" 70 android:layout_height="wrap_content" 71 androidprv:layout_constraintEnd_toStartOf="@+id/pin_pad_center_guideline" 72 androidprv:layout_constraintStart_toStartOf="parent" 73 androidprv:layout_constraintTop_toBottomOf="@+id/keyguard_bouncer_message_container" /> 74 <Constraint 75 android:id="@+id/flow1" 76 android:layout_width="0dp" 77 android:layout_height="0dp" 78 androidprv:layout_constraintBottom_toBottomOf="parent" 79 androidprv:layout_constraintEnd_toEndOf="parent" 80 androidprv:layout_constraintStart_toStartOf="@+id/pin_pad_center_guideline" 81 androidprv:layout_constraintTop_toTopOf="parent" 82 android:layout_marginBottom="0dp" 83 androidprv:flow_verticalBias="0.5" /> 84 <Constraint 85 android:id="@+id/keyguard_selector_fade_container" 86 android:layout_width="0dp" 87 android:layout_height="wrap_content" 88 androidprv:layout_constraintBottom_toBottomOf="parent" 89 androidprv:layout_constraintEnd_toStartOf="@+id/pin_pad_center_guideline" 90 androidprv:layout_constraintStart_toStartOf="parent" 91 android:layout_marginBottom="@dimen/keyguard_eca_bottom_margin" 92 android:layout_marginTop="@dimen/keyguard_eca_top_margin" /> 93 94 </ConstraintSet> 95 96</MotionScene>