Merge "[FRP] Transitions for lock screen setup" into lmp-mr1-dev
This commit is contained in:
22
res/anim-ldrtl/slide_back_in.xml
Normal file
22
res/anim-ldrtl/slide_back_in.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2014 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="@integer/setup_wizard_transition_duration"
|
||||||
|
android:fromXDelta="100%"
|
||||||
|
android:toXDelta="0%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator"/>
|
22
res/anim-ldrtl/slide_back_out.xml
Normal file
22
res/anim-ldrtl/slide_back_out.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2014 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="@integer/setup_wizard_transition_duration"
|
||||||
|
android:fromXDelta="0%"
|
||||||
|
android:toXDelta="-100%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator"/>
|
22
res/anim-ldrtl/slide_next_in.xml
Normal file
22
res/anim-ldrtl/slide_next_in.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2014 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="@integer/setup_wizard_transition_duration"
|
||||||
|
android:fromXDelta="-100%"
|
||||||
|
android:toXDelta="0%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator"/>
|
22
res/anim-ldrtl/slide_next_out.xml
Normal file
22
res/anim-ldrtl/slide_next_out.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2014 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="@integer/setup_wizard_transition_duration"
|
||||||
|
android:fromXDelta="0%"
|
||||||
|
android:toXDelta="100%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator"/>
|
22
res/anim/slide_back_in.xml
Normal file
22
res/anim/slide_back_in.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2014 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="@integer/setup_wizard_transition_duration"
|
||||||
|
android:fromXDelta="-100%"
|
||||||
|
android:toXDelta="0%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator"/>
|
22
res/anim/slide_back_out.xml
Normal file
22
res/anim/slide_back_out.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2014 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="@integer/setup_wizard_transition_duration"
|
||||||
|
android:fromXDelta="0%"
|
||||||
|
android:toXDelta="100%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator"/>
|
22
res/anim/slide_next_in.xml
Normal file
22
res/anim/slide_next_in.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2014 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="@integer/setup_wizard_transition_duration"
|
||||||
|
android:fromXDelta="100%"
|
||||||
|
android:toXDelta="0%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator"/>
|
22
res/anim/slide_next_out.xml
Normal file
22
res/anim/slide_next_out.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2014 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="@integer/setup_wizard_transition_duration"
|
||||||
|
android:fromXDelta="0%"
|
||||||
|
android:toXDelta="-100%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator"/>
|
@@ -34,4 +34,7 @@
|
|||||||
|
|
||||||
<!-- Carrier_enabled editable -->
|
<!-- Carrier_enabled editable -->
|
||||||
<bool name="config_allow_edit_carrier_enabled" translatable="false">false</bool>
|
<bool name="config_allow_edit_carrier_enabled" translatable="false">false</bool>
|
||||||
|
|
||||||
|
<!-- The duration (in milliseconds) of activity transitions -->
|
||||||
|
<integer name="setup_wizard_transition_duration">300</integer>
|
||||||
</resources>
|
</resources>
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
<item name="android:colorAccent">@color/setup_wizard_color_accent_dark</item>
|
<item name="android:colorAccent">@color/setup_wizard_color_accent_dark</item>
|
||||||
<item name="android:listPreferredItemPaddingEnd">@dimen/setup_wizard_margin_sides</item>
|
<item name="android:listPreferredItemPaddingEnd">@dimen/setup_wizard_margin_sides</item>
|
||||||
<item name="android:listPreferredItemPaddingStart">@dimen/setup_wizard_margin_sides</item>
|
<item name="android:listPreferredItemPaddingStart">@dimen/setup_wizard_margin_sides</item>
|
||||||
|
<item name="android:windowAnimationStyle">@style/Animation.SetupWizard</item>
|
||||||
<item name="android:windowBackground">?android:attr/colorBackground</item>
|
<item name="android:windowBackground">?android:attr/colorBackground</item>
|
||||||
<item name="android:windowSoftInputMode">adjustPan</item>
|
<item name="android:windowSoftInputMode">adjustPan</item>
|
||||||
<item name="@*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
|
<item name="@*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
<item name="android:colorAccent">@color/setup_wizard_color_accent_light</item>
|
<item name="android:colorAccent">@color/setup_wizard_color_accent_light</item>
|
||||||
<item name="android:listPreferredItemPaddingEnd">@dimen/setup_wizard_margin_sides</item>
|
<item name="android:listPreferredItemPaddingEnd">@dimen/setup_wizard_margin_sides</item>
|
||||||
<item name="android:listPreferredItemPaddingStart">@dimen/setup_wizard_margin_sides</item>
|
<item name="android:listPreferredItemPaddingStart">@dimen/setup_wizard_margin_sides</item>
|
||||||
|
<item name="android:windowAnimationStyle">@style/Animation.SetupWizard</item>
|
||||||
<item name="android:windowBackground">?android:attr/colorBackground</item>
|
<item name="android:windowBackground">?android:attr/colorBackground</item>
|
||||||
<item name="android:windowSoftInputMode">adjustPan</item>
|
<item name="android:windowSoftInputMode">adjustPan</item>
|
||||||
<item name="@*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
|
<item name="@*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
|
||||||
@@ -65,6 +67,13 @@
|
|||||||
<item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
|
<item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="Animation.SetupWizard" parent="@android:style/Animation.Activity">
|
||||||
|
<item name="android:activityOpenEnterAnimation">@anim/slide_next_in</item>
|
||||||
|
<item name="android:activityOpenExitAnimation">@anim/slide_next_out</item>
|
||||||
|
<item name="android:activityCloseEnterAnimation">@anim/slide_back_in</item>
|
||||||
|
<item name="android:activityCloseExitAnimation">@anim/slide_back_out</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="Theme.WifiDialog" parent="@*android:style/Theme.Material.Dialog.Alert">
|
<style name="Theme.WifiDialog" parent="@*android:style/Theme.Material.Dialog.Alert">
|
||||||
<item name="android:windowSoftInputMode">adjustResize</item>
|
<item name="android:windowSoftInputMode">adjustResize</item>
|
||||||
<item name="ic_menu_add">@drawable/ic_menu_add_dark</item>
|
<item name="ic_menu_add">@drawable/ic_menu_add_dark</item>
|
||||||
|
Reference in New Issue
Block a user