diff options
author | Chet Haase <chet@google.com> | 2013-09-04 23:47:44 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-09-04 23:47:45 +0000 |
commit | 49ee555f239c79871b661e5ff135061f26665e1c (patch) | |
tree | 543c6af09b5f56505bebbdd76ac615d765db36fc /core/res | |
parent | 52ea7f57ed08ea982dcb125b564b5509ef8dc3b6 (diff) | |
parent | d82c8ac4db7091d2e976af4c89a1734465d20cd2 (diff) | |
download | frameworks_base-49ee555f239c79871b661e5ff135061f26665e1c.zip frameworks_base-49ee555f239c79871b661e5ff135061f26665e1c.tar.gz frameworks_base-49ee555f239c79871b661e5ff135061f26665e1c.tar.bz2 |
Merge "Transition API changes from API council recommendations" into klp-dev
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/values/attrs.xml | 61 | ||||
-rw-r--r-- | core/res/res/values/ids.xml | 1 | ||||
-rw-r--r-- | core/res/res/values/public.xml | 5 | ||||
-rw-r--r-- | core/res/res/values/symbols.xml | 1 |
4 files changed, 60 insertions, 8 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index b6a4250..a47e518 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -4511,24 +4511,71 @@ </declare-styleable> <!-- ========================== --> - <!-- State class attributes --> + <!-- Transition attributes --> <!-- ========================== --> <eat-comment /> - <declare-styleable name="Scene"> - <attr name="layout" /> - </declare-styleable> - + <!-- Use specific transition subclass names as the root tag of the XML resource that + describes a {@link android.transition.Transition Transition}, + such as <code>move</code>, <code>fade</code>, and <code>set</code>. --> <declare-styleable name="Transition"> + <!-- Amount of time (in milliseconds) that the transition should run. --> <attr name="duration" /> - <attr name="startOffset" /> + <!-- Delay in milliseconds before the transition starts. --> + <attr name="startDelay" format="integer" /> + <!-- Interpolator to be used in the animations spawned by this transition. --> <attr name="interpolator" /> - <attr name="targetID" format="reference" /> </declare-styleable> + <!-- Use <code>fade</code>as the root tag of the XML resource that + describes a {@link android.transition.Fade Fade} transition. + The attributes of the {@link android.R.styleable#Transition Transition} + resource are available in addition to the specific attributes of Fade + described here. --> + <declare-styleable name="Fade"> + <attr name="fadingMode"> + <!-- Fade will only fade appearing items in. --> + <enum name="fade_in" value="1" /> + <!-- Fade will only fade disappearing items out. --> + <enum name="fade_out" value="2" /> + <!-- Fade will fade appearing items in and disappearing items out. --> + <enum name="fade_in_out" value="3" /> + </attr> + </declare-styleable> + + <!-- Use <code>target</code> as the root tag of the XML resource that + describes a {@link android.transition.Transition#addTargetId(int) + targetId} of a transition. There can be one or more targets inside + a <code>targets</code> tag, which is itself inside an appropriate + {@link android.R.styleable#Transition Transition} tag. + --> + <declare-styleable name="TransitionTarget"> + <!-- The id of a target on which this transition will animate changes. --> + <attr name="targetId" format="reference" /> + </declare-styleable> + + <!-- Use <code>set</code> as the root tag of the XML resource that + describes a {@link android.transition.TransitionSet + TransitionSet} transition. --> + <declare-styleable name="TransitionSet"> + <attr name="transitionOrdering"> + <!-- child transitions should be played together. --> + <enum name="together" value="0" /> + <!-- child transitions should be played sequentially, in the same order + as the xml. --> + <enum name="sequential" value="1" /> + </attr> + </declare-styleable> + + <!-- Use <code>transitionManager</code> as the root tag of the XML resource that + describes a {@link android.transition.TransitionManager + TransitionManager}. --> <declare-styleable name="TransitionManager"> + <!-- The id of a transition to be used in a particular scene change. --> <attr name="transition" format="reference" /> + <!-- The originating scene in this scene change. --> <attr name="fromScene" format="reference" /> + <!-- The destination scene in this scene change. --> <attr name="toScene" format="reference" /> </declare-styleable> diff --git a/core/res/res/values/ids.xml b/core/res/res/values/ids.xml index 21bae04..15df295 100644 --- a/core/res/res/values/ids.xml +++ b/core/res/res/values/ids.xml @@ -80,4 +80,5 @@ <item type="id" name="overflow_menu_presenter" /> <item type="id" name="popup_submenu_presenter" /> <item type="id" name="action_bar_spinner" /> + <item type="id" name="current_scene" /> </resources> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index e6702b0..6c3856e 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -2059,10 +2059,13 @@ <eat-comment /> <public type="attr" name="keyset" /> - <public type="attr" name="targetID" /> + <public type="attr" name="targetId" /> <public type="attr" name="fromScene" /> <public type="attr" name="toScene" /> <public type="attr" name="transition" /> + <public type="attr" name="transitionOrdering" /> + <public type="attr" name="fadingMode" /> + <public type="attr" name="startDelay" /> <public type="attr" name="ssp" /> <public type="attr" name="sspPrefix" /> <public type="attr" name="sspPattern" /> diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 1035054..fcd56eb 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -54,6 +54,7 @@ <java-symbol type="id" name="characterPicker" /> <java-symbol type="id" name="clearDefaultHint" /> <java-symbol type="id" name="contentPanel" /> + <java-symbol type="id" name="current_scene" /> <java-symbol type="id" name="customPanel" /> <java-symbol type="id" name="datePicker" /> <java-symbol type="id" name="day" /> |