[SetupWizardLib] Move theme to library
Move the basic setup wizard theme (material and material light) to the library. Bug: 18685749 Change-Id: I83d7fcd875ae0e05ab56d6e524958493e4c6b914
This commit is contained in:
parent
0e6095c127
commit
4b74d3c0ff
22
library/res/anim-ldrtl/suw_slide_back_in.xml
Normal file
22
library/res/anim-ldrtl/suw_slide_back_in.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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/suw_transition_duration"
|
||||||
|
android:fromXDelta="100%"
|
||||||
|
android:toXDelta="0%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator" />
|
22
library/res/anim-ldrtl/suw_slide_back_out.xml
Normal file
22
library/res/anim-ldrtl/suw_slide_back_out.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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/suw_transition_duration"
|
||||||
|
android:fromXDelta="0%"
|
||||||
|
android:toXDelta="-100%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator" />
|
22
library/res/anim-ldrtl/suw_slide_next_in.xml
Normal file
22
library/res/anim-ldrtl/suw_slide_next_in.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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/suw_transition_duration"
|
||||||
|
android:fromXDelta="-100%"
|
||||||
|
android:toXDelta="0%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator" />
|
22
library/res/anim-ldrtl/suw_slide_next_out.xml
Normal file
22
library/res/anim-ldrtl/suw_slide_next_out.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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/suw_transition_duration"
|
||||||
|
android:fromXDelta="0%"
|
||||||
|
android:toXDelta="100%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator" />
|
22
library/res/anim/suw_slide_back_in.xml
Normal file
22
library/res/anim/suw_slide_back_in.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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/suw_transition_duration"
|
||||||
|
android:fromXDelta="-100%"
|
||||||
|
android:toXDelta="0%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator" />
|
22
library/res/anim/suw_slide_back_out.xml
Normal file
22
library/res/anim/suw_slide_back_out.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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/suw_transition_duration"
|
||||||
|
android:fromXDelta="0%"
|
||||||
|
android:toXDelta="100%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator" />
|
22
library/res/anim/suw_slide_next_in.xml
Normal file
22
library/res/anim/suw_slide_next_in.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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/suw_transition_duration"
|
||||||
|
android:fromXDelta="100%"
|
||||||
|
android:toXDelta="0%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator" />
|
22
library/res/anim/suw_slide_next_out.xml
Normal file
22
library/res/anim/suw_slide_next_out.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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/suw_transition_duration"
|
||||||
|
android:fromXDelta="0%"
|
||||||
|
android:toXDelta="-100%"
|
||||||
|
android:interpolator="@android:anim/decelerate_interpolator" />
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (C) 2015 Google Inc
|
Copyright (C) 2015 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -17,6 +17,37 @@
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
|
<!-- General styles -->
|
||||||
|
|
||||||
|
<style name="SuwThemeMaterial" parent="android:Theme.Material.NoActionBar">
|
||||||
|
<item name="android:colorAccent">@color/suw_color_accent_dark</item>
|
||||||
|
<item name="android:navigationBarColor">@android:color/black</item>
|
||||||
|
<item name="android:statusBarColor">@android:color/black</item>
|
||||||
|
<item name="android:textColorLink">@color/suw_link_color_dark</item>
|
||||||
|
<item name="android:textColorSecondary">@color/suw_color_secondary_dark</item>
|
||||||
|
<item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
|
||||||
|
<item name="android:windowSoftInputMode">adjustPan</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="SuwThemeMaterial.Light" parent="android:Theme.Material.Light.NoActionBar">
|
||||||
|
<item name="android:colorAccent">@color/suw_color_accent_light</item>
|
||||||
|
<item name="android:navigationBarColor">@android:color/black</item>
|
||||||
|
<item name="android:statusBarColor">@android:color/black</item>
|
||||||
|
<item name="android:textColorLink">@color/suw_link_color_light</item>
|
||||||
|
<item name="android:textColorSecondary">@color/suw_color_secondary_light</item>
|
||||||
|
<item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
|
||||||
|
<item name="android:windowSoftInputMode">adjustPan</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="Animation.SuwWindowAnimation" parent="@android:style/Animation.Activity">
|
||||||
|
<item name="android:activityOpenEnterAnimation">@anim/suw_slide_next_in</item>
|
||||||
|
<item name="android:activityOpenExitAnimation">@anim/suw_slide_next_out</item>
|
||||||
|
<item name="android:activityCloseEnterAnimation">@anim/suw_slide_back_in</item>
|
||||||
|
<item name="android:activityCloseExitAnimation">@anim/suw_slide_back_out</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<!-- Navigation bar styles -->
|
||||||
|
|
||||||
<style name="SuwNavBarThemeDark">
|
<style name="SuwNavBarThemeDark">
|
||||||
<item name="suw_navbar_bg_color">@color/suw_navbar_bg_dark</item>
|
<item name="suw_navbar_bg_color">@color/suw_navbar_bg_dark</item>
|
||||||
<item name="suw_navbar_text_color">@color/suw_navbar_text_dark</item>
|
<item name="suw_navbar_text_color">@color/suw_navbar_text_dark</item>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (C) 2015 Google Inc
|
Copyright (C) 2015 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -16,8 +16,21 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
|
<!-- General colors -->
|
||||||
|
|
||||||
|
<color name="suw_color_accent_dark">#ff00bcd4</color>
|
||||||
|
<color name="suw_color_accent_light">#ff0097a7</color>
|
||||||
|
<color name="suw_color_secondary_dark">#ff9e9e9e</color>
|
||||||
|
<color name="suw_color_secondary_light">#ff757575</color>
|
||||||
|
<color name="suw_link_color_light">#ff00838f</color>
|
||||||
|
<color name="suw_link_color_dark">#ff00e5ff</color>
|
||||||
|
|
||||||
|
<!-- Navigation bar colors -->
|
||||||
|
|
||||||
<color name="suw_navbar_bg_dark">#ff21272b</color>
|
<color name="suw_navbar_bg_dark">#ff21272b</color>
|
||||||
<color name="suw_navbar_bg_light">#ffe4e7e9</color>
|
<color name="suw_navbar_bg_light">#ffe4e7e9</color>
|
||||||
<color name="suw_navbar_text_dark">#deffffff</color>
|
<color name="suw_navbar_text_dark">#deffffff</color>
|
||||||
<color name="suw_navbar_text_light">#de000000</color>
|
<color name="suw_navbar_text_light">#de000000</color>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
23
library/res/values/config.xml
Normal file
23
library/res/values/config.xml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- The duration (in milliseconds) of activity transitions -->
|
||||||
|
<integer name="suw_transition_duration">300</integer>
|
||||||
|
|
||||||
|
</resources>
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (C) 2015 Google Inc
|
Copyright (C) 2015 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (C) 2015 Google Inc
|
Copyright (C) 2015 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (C) 2015 Google Inc
|
Copyright (C) 2015 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
Loading…
Reference in a new issue