1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (C) 2014 The Android Open Source Project
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 <resources xmlns:android="http://schemas.android.com/apk/res/android">
18 <!-- Default alpha value for disabled elements. -->
19 <item name="disabled_alpha_leanback_formwizard" format="float" type="dimen">0.2</item>
20 <!-- The duration of most animations related to screen content transitions -->
21 <integer name="leanback_setup_base_animation_duration">500</integer>
22 <item name="leanback_setup_alpha_animiation_max_opacity" format="float" type="dimen">1.0</item>
23 <item name="leanback_setup_alpha_animiation_min_opacity" format="float" type="dimen">0.0</item>
24 <!-- Where stable, on-screen content rests -->
25 <dimen name="leanback_setup_translation_content_resting_point">0dp</dimen>
26 <integer name="leanback_setup_translation_content_resting_point_v4">0</integer>
27 <!-- The screen position at which content enters/exits. If you're over the edge of the cliff, we can't see you. -->
28 <dimen name="leanback_setup_translation_content_cliff">100dp</dimen>
29 <integer name="leanback_setup_translation_content_cliff_v4">200</integer>
31 <!-- Opacity animation for activity background -->
32 <!-- The opacity of the background of the new activity background when the alpha animation starts-->
33 <item name="leanback_setup_alpha_activity_in_bkg_start" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_min_opacity</item>
34 <!-- The opacity of the background of the new activity background when the alpha animation ends-->
35 <item name="leanback_setup_alpha_activity_in_bkg_end" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_max_opacity</item>
36 <integer name="leanback_setup_alpha_activity_in_bkg_delay">0</integer>
37 <integer name="leanback_setup_alpha_activity_in_bkg_duration">@integer/leanback_setup_base_animation_duration</integer>
39 <item name="leanback_setup_alpha_activity_out_bkg_start" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_max_opacity</item>
40 <!-- The opacity of the background of the new activity background when the alpha animation ends-->
41 <item name="leanback_setup_alpha_activity_out_bkg_end" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_min_opacity</item>
42 <integer name="leanback_setup_alpha_activity_out_bkg_delay">0</integer>
43 <integer name="leanback_setup_alpha_activity_out_bkg_duration">@integer/leanback_setup_base_animation_duration</integer>
45 <!-- Content forward animation configuration values -->
46 <!-- Parameter for alpha animation of new content coming on to the screen when we're moving "forward" -->
47 <!-- Initial opacity of the new content that is coming on to the screen -->
48 <item name="leanback_setup_alpha_forward_in_content_start" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_min_opacity</item>
49 <item name="leanback_setup_alpha_forward_in_content_end" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_max_opacity</item>
50 <integer name="leanback_setup_alpha_forward_in_content_delay">0</integer>
51 <integer name="leanback_setup_alpha_forward_in_content_duration">@integer/leanback_setup_base_animation_duration</integer>
53 <item name="leanback_setup_alpha_forward_out_content_start" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_max_opacity</item>
54 <item name="leanback_setup_alpha_forward_out_content_end" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_min_opacity</item>
55 <integer name="leanback_setup_alpha_forward_out_content_delay">0</integer>
56 <integer name="leanback_setup_alpha_forward_out_content_duration">@integer/leanback_setup_base_animation_duration</integer>
58 <!-- Position animation of incoming content during a "forward" transition -->
59 <dimen name="leanback_setup_translation_forward_in_content_start">@dimen/leanback_setup_translation_content_cliff</dimen>
60 <dimen name="leanback_setup_translation_forward_in_content_start_v4">@integer/leanback_setup_translation_content_cliff_v4</dimen>
61 <dimen name="leanback_setup_translation_forward_in_content_end">@dimen/leanback_setup_translation_content_resting_point</dimen>
62 <dimen name="leanback_setup_translation_forward_in_content_end_v4">@integer/leanback_setup_translation_content_resting_point_v4</dimen>
63 <integer name="leanback_setup_translation_forward_in_content_delay">0</integer>
64 <integer name="leanback_setup_translation_forward_in_content_duration">@integer/leanback_setup_base_animation_duration</integer>
66 <!-- Content backward animation configuration values -->
67 <!-- Alpha animation values for the content that will be displayed after the transition is complete, this is the content coming in. -->
68 <item name="leanback_setup_alpha_backward_in_content_start" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_min_opacity</item>
69 <item name="leanback_setup_alpha_backward_in_content_end" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_max_opacity</item>
70 <integer name="leanback_setup_alpha_backward_in_content_delay">0</integer>
71 <integer name="leanback_setup_alpha_backward_in_content_duration">@integer/leanback_setup_base_animation_duration</integer>
73 <!-- Alpha animiation values for the content that is displayed when the transition starts, this is the content going away. -->
74 <item name="leanback_setup_alpha_backward_out_content_start" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_max_opacity</item>
75 <item name="leanback_setup_alpha_backward_out_content_end" format="float" type="dimen">@dimen/leanback_setup_alpha_animiation_min_opacity</item>
76 <integer name="leanback_setup_alpha_backward_out_content_delay">0</integer>
77 <integer name="leanback_setup_alpha_backward_out_content_duration">@integer/leanback_setup_base_animation_duration</integer>
79 <!-- Position animation for content that is displayed when the transition starts, this is the content going away. -->
80 <dimen name="leanback_setup_translation_backward_out_content_start">@dimen/leanback_setup_translation_content_resting_point</dimen>
81 <dimen name="leanback_setup_translation_backward_out_content_start_v4">@integer/leanback_setup_translation_content_resting_point_v4</dimen>
82 <dimen name="leanback_setup_translation_backward_out_content_end">@dimen/leanback_setup_translation_content_cliff</dimen>
83 <dimen name="leanback_setup_translation_backward_out_content_end_v4">@integer/leanback_setup_translation_content_cliff_v4</dimen>
84 <integer name="leanback_setup_translation_backward_out_content_delay">0</integer>
85 <integer name="leanback_setup_translation_backward_out_content_duration">@integer/leanback_setup_base_animation_duration</integer>