summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2011-03-22 11:35:22 -0700
committerChet Haase <chet@google.com>2011-05-19 13:44:40 -0700
commit19e748a3d1702f911476e103b590a36adefb83ca (patch)
tree028f40a2c8ff26baaed0e5ec09709c34907628e9 /api
parentb7ec3e41a6b3423d1669ae784a8ad8fbe32df29d (diff)
downloadframeworks_base-19e748a3d1702f911476e103b590a36adefb83ca.zip
frameworks_base-19e748a3d1702f911476e103b590a36adefb83ca.tar.gz
frameworks_base-19e748a3d1702f911476e103b590a36adefb83ca.tar.bz2
DO NOT MERGE: Add custom fragment anims for popping backstack
The previous fragment implementation allowed for animations during fragment transitions, but did not account for the different behavior of fragments when popping the back stack. In general, you probably don't want to run the same animation for putting a fragment on the stack as for popping it off, which is what happens now. For example, you might fade a fragment out when putting it on the stack. But when popping ot off, fading it out is probably not the behavior you want. The new API (setCustomAnimations() overload with two additional parameters) allows developers to specify animations to be run in the popping operation. Otherwise, the animations are null and the operation will not be animated. Change-Id: I53bbc6e6ec4e953b7ecdd99e2452d81857917de2
Diffstat (limited to 'api')
-rw-r--r--api/current.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml
index e669a99..3a642f6 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -31483,6 +31483,25 @@
<parameter name="exit" type="int">
</parameter>
</method>
+<method name="setCustomAnimations"
+ return="android.app.FragmentTransaction"
+ abstract="true"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+<parameter name="enter" type="int">
+</parameter>
+<parameter name="exit" type="int">
+</parameter>
+<parameter name="popEnter" type="int">
+</parameter>
+<parameter name="popExit" type="int">
+</parameter>
+</method>
<method name="setTransition"
return="android.app.FragmentTransaction"
abstract="true"