diff options
| author | Chet Haase <chet@google.com> | 2010-10-05 15:21:34 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-10-05 15:21:34 -0700 |
| commit | 2e292e9da496874229f5f13fac2d6b48228ff691 (patch) | |
| tree | 28147f24d2b4f2500bd8fb4768c9915ebe42afb9 | |
| parent | 530279858107b1b8892af0d99d19d110b3e67a02 (diff) | |
| parent | 9ff82bf2b33513052500473d0d6d025a80dcecbf (diff) | |
| download | frameworks_base-2e292e9da496874229f5f13fac2d6b48228ff691.zip frameworks_base-2e292e9da496874229f5f13fac2d6b48228ff691.tar.gz frameworks_base-2e292e9da496874229f5f13fac2d6b48228ff691.tar.bz2 | |
Merge "Adding next/prev to fragment animations and to PreferenceActivity"
| -rw-r--r-- | api/current.xml | 128 | ||||
| -rw-r--r-- | core/java/android/app/FragmentManager.java | 16 | ||||
| -rw-r--r-- | core/java/android/app/FragmentTransaction.java | 8 | ||||
| -rw-r--r-- | core/java/android/preference/PreferenceActivity.java | 19 | ||||
| -rw-r--r-- | core/res/res/anim/fragment_close_enter.xml | 14 | ||||
| -rw-r--r-- | core/res/res/anim/fragment_close_exit.xml | 14 | ||||
| -rw-r--r-- | core/res/res/anim/fragment_next_enter.xml | 32 | ||||
| -rw-r--r-- | core/res/res/anim/fragment_next_exit.xml | 32 | ||||
| -rw-r--r-- | core/res/res/anim/fragment_open_enter.xml | 14 | ||||
| -rw-r--r-- | core/res/res/anim/fragment_open_exit.xml | 14 | ||||
| -rw-r--r-- | core/res/res/anim/fragment_prev_enter.xml | 32 | ||||
| -rw-r--r-- | core/res/res/anim/fragment_prev_exit.xml | 32 | ||||
| -rwxr-xr-x | core/res/res/values/attrs.xml | 4 | ||||
| -rw-r--r-- | core/res/res/values/public.xml | 4 | ||||
| -rw-r--r-- | core/res/res/values/styles.xml | 4 |
15 files changed, 274 insertions, 93 deletions
diff --git a/api/current.xml b/api/current.xml index 96a4d62..953c9f3 100644 --- a/api/current.xml +++ b/api/current.xml @@ -2103,7 +2103,7 @@ type="int" transient="false" volatile="false" - value="16843563" + value="16843567" static="true" final="true" deprecated="not deprecated" @@ -2125,7 +2125,7 @@ type="int" transient="false" volatile="false" - value="16843572" + value="16843576" static="true" final="true" deprecated="not deprecated" @@ -2136,7 +2136,7 @@ type="int" transient="false" volatile="false" - value="16843571" + value="16843575" static="true" final="true" deprecated="not deprecated" @@ -2147,7 +2147,7 @@ type="int" transient="false" volatile="false" - value="16843573" + value="16843577" static="true" final="true" deprecated="not deprecated" @@ -2191,7 +2191,7 @@ type="int" transient="false" volatile="false" - value="16843580" + value="16843584" static="true" final="true" deprecated="not deprecated" @@ -2213,7 +2213,7 @@ type="int" transient="false" volatile="false" - value="16843576" + value="16843580" static="true" final="true" deprecated="not deprecated" @@ -2235,7 +2235,7 @@ type="int" transient="false" volatile="false" - value="16843574" + value="16843578" static="true" final="true" deprecated="not deprecated" @@ -2246,7 +2246,7 @@ type="int" transient="false" volatile="false" - value="16843581" + value="16843585" static="true" final="true" deprecated="not deprecated" @@ -2257,7 +2257,7 @@ type="int" transient="false" volatile="false" - value="16843582" + value="16843586" static="true" final="true" deprecated="not deprecated" @@ -2466,7 +2466,7 @@ type="int" transient="false" volatile="false" - value="16843570" + value="16843574" static="true" final="true" deprecated="not deprecated" @@ -2807,7 +2807,7 @@ type="int" transient="false" volatile="false" - value="16843589" + value="16843593" static="true" final="true" deprecated="not deprecated" @@ -2818,7 +2818,7 @@ type="int" transient="false" volatile="false" - value="16843588" + value="16843592" static="true" final="true" deprecated="not deprecated" @@ -4497,6 +4497,28 @@ visibility="public" > </field> +<field name="fragmentNextEnterAnimation" + type="int" + transient="false" + volatile="false" + value="16843563" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="fragmentNextExitAnimation" + type="int" + transient="false" + volatile="false" + value="16843564" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="fragmentOpenEnterAnimation" type="int" transient="false" @@ -4519,6 +4541,28 @@ visibility="public" > </field> +<field name="fragmentPrevEnterAnimation" + type="int" + transient="false" + volatile="false" + value="16843565" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="fragmentPrevExitAnimation" + type="int" + transient="false" + volatile="false" + value="16843566" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="freezesText" type="int" transient="false" @@ -4996,7 +5040,7 @@ type="int" transient="false" volatile="false" - value="16843579" + value="16843583" static="true" final="true" deprecated="not deprecated" @@ -5117,7 +5161,7 @@ type="int" transient="false" volatile="false" - value="16843566" + value="16843570" static="true" final="true" deprecated="not deprecated" @@ -5128,7 +5172,7 @@ type="int" transient="false" volatile="false" - value="16843564" + value="16843568" static="true" final="true" deprecated="not deprecated" @@ -5139,7 +5183,7 @@ type="int" transient="false" volatile="false" - value="16843565" + value="16843569" static="true" final="true" deprecated="not deprecated" @@ -5502,7 +5546,7 @@ type="int" transient="false" volatile="false" - value="16843575" + value="16843579" static="true" final="true" deprecated="not deprecated" @@ -6778,7 +6822,7 @@ type="int" transient="false" volatile="false" - value="16843568" + value="16843572" static="true" final="true" deprecated="not deprecated" @@ -6822,7 +6866,7 @@ type="int" transient="false" volatile="false" - value="16843590" + value="16843594" static="true" final="true" deprecated="not deprecated" @@ -6833,7 +6877,7 @@ type="int" transient="false" volatile="false" - value="16843584" + value="16843588" static="true" final="true" deprecated="not deprecated" @@ -6921,7 +6965,7 @@ type="int" transient="false" volatile="false" - value="16843592" + value="16843596" static="true" final="true" deprecated="not deprecated" @@ -7735,7 +7779,7 @@ type="int" transient="false" volatile="false" - value="16843585" + value="16843589" static="true" final="true" deprecated="not deprecated" @@ -9044,7 +9088,7 @@ type="int" transient="false" volatile="false" - value="16843569" + value="16843573" static="true" final="true" deprecated="not deprecated" @@ -9066,7 +9110,7 @@ type="int" transient="false" volatile="false" - value="16843567" + value="16843571" static="true" final="true" deprecated="not deprecated" @@ -9165,7 +9209,7 @@ type="int" transient="false" volatile="false" - value="16843583" + value="16843587" static="true" final="true" deprecated="not deprecated" @@ -9396,7 +9440,7 @@ type="int" transient="false" volatile="false" - value="16843578" + value="16843582" static="true" final="true" deprecated="not deprecated" @@ -9781,7 +9825,7 @@ type="int" transient="false" volatile="false" - value="16843586" + value="16843590" static="true" final="true" deprecated="not deprecated" @@ -9858,7 +9902,7 @@ type="int" transient="false" volatile="false" - value="16843587" + value="16843591" static="true" final="true" deprecated="not deprecated" @@ -9902,7 +9946,7 @@ type="int" transient="false" volatile="false" - value="16843591" + value="16843595" static="true" final="true" deprecated="not deprecated" @@ -10320,7 +10364,7 @@ type="int" transient="false" volatile="false" - value="16843577" + value="16843581" static="true" final="true" deprecated="not deprecated" @@ -30872,6 +30916,17 @@ visibility="public" > </field> +<field name="TRANSIT_FRAGMENT_NEXT" + type="int" + transient="false" + volatile="false" + value="4099" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="TRANSIT_FRAGMENT_OPEN" type="int" transient="false" @@ -30883,6 +30938,17 @@ visibility="public" > </field> +<field name="TRANSIT_FRAGMENT_PREV" + type="int" + transient="false" + volatile="false" + value="8196" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="TRANSIT_NONE" type="int" transient="false" @@ -143262,6 +143328,8 @@ </parameter> <parameter name="args" type="android.os.Bundle"> </parameter> +<parameter name="next" type="boolean"> +</parameter> </method> <field name="EXTRA_NO_HEADERS" type="java.lang.String" diff --git a/core/java/android/app/FragmentManager.java b/core/java/android/app/FragmentManager.java index da7ba6f..37e7253 100644 --- a/core/java/android/app/FragmentManager.java +++ b/core/java/android/app/FragmentManager.java @@ -1380,6 +1380,12 @@ final class FragmentManagerImpl implements FragmentManager { case FragmentTransaction.TRANSIT_FRAGMENT_CLOSE: rev = FragmentTransaction.TRANSIT_FRAGMENT_OPEN; break; + case FragmentTransaction.TRANSIT_FRAGMENT_NEXT: + rev = FragmentTransaction.TRANSIT_FRAGMENT_PREV; + break; + case FragmentTransaction.TRANSIT_FRAGMENT_PREV: + rev = FragmentTransaction.TRANSIT_FRAGMENT_NEXT; + break; } return rev; @@ -1398,6 +1404,16 @@ final class FragmentManagerImpl implements FragmentManager { ? com.android.internal.R.styleable.FragmentAnimation_fragmentCloseEnterAnimation : com.android.internal.R.styleable.FragmentAnimation_fragmentCloseExitAnimation; break; + case FragmentTransaction.TRANSIT_FRAGMENT_NEXT: + animAttr = enter + ? com.android.internal.R.styleable.FragmentAnimation_fragmentNextEnterAnimation + : com.android.internal.R.styleable.FragmentAnimation_fragmentNextExitAnimation; + break; + case FragmentTransaction.TRANSIT_FRAGMENT_PREV: + animAttr = enter + ? com.android.internal.R.styleable.FragmentAnimation_fragmentPrevEnterAnimation + : com.android.internal.R.styleable.FragmentAnimation_fragmentPrevExitAnimation; + break; } return animAttr; } diff --git a/core/java/android/app/FragmentTransaction.java b/core/java/android/app/FragmentTransaction.java index 09d8d26..b00476b 100644 --- a/core/java/android/app/FragmentTransaction.java +++ b/core/java/android/app/FragmentTransaction.java @@ -106,10 +106,14 @@ public interface FragmentTransaction { public final int TRANSIT_UNSET = -1; /** No animation for transition. */ public final int TRANSIT_NONE = 0; - /** Fragment is being added */ + /** Fragment is being added onto the stack */ public final int TRANSIT_FRAGMENT_OPEN = 1 | TRANSIT_ENTER_MASK; - /** Fragment is being removed */ + /** Fragment is being removed from the stack */ public final int TRANSIT_FRAGMENT_CLOSE = 2 | TRANSIT_EXIT_MASK; + /** Fragment is being added in a 'next' operation*/ + public final int TRANSIT_FRAGMENT_NEXT = 3 | TRANSIT_ENTER_MASK; + /** Fragment is being removed in a 'previous' operation */ + public final int TRANSIT_FRAGMENT_PREV = 4 | TRANSIT_EXIT_MASK; /** * Set specific animation resources to run for the fragments that are diff --git a/core/java/android/preference/PreferenceActivity.java b/core/java/android/preference/PreferenceActivity.java index a6c7d9e..a59b2f8 100644 --- a/core/java/android/preference/PreferenceActivity.java +++ b/core/java/android/preference/PreferenceActivity.java @@ -893,11 +893,15 @@ public abstract class PreferenceActivity extends ListActivity implements } } - public void switchToHeaderInner(String fragmentName, Bundle args) { + public void switchToHeaderInner(String fragmentName, Bundle args, boolean next) { getFragmentManager().popBackStack(BACK_STACK_PREFS, POP_BACK_STACK_INCLUSIVE); Fragment f = Fragment.instantiate(this, fragmentName, args); - getFragmentManager().openTransaction().replace( - com.android.internal.R.id.prefs, f).commit(); + FragmentTransaction transaction = getFragmentManager().openTransaction(); + transaction.setTransition(next ? + FragmentTransaction.TRANSIT_FRAGMENT_NEXT : + FragmentTransaction.TRANSIT_FRAGMENT_PREV); + transaction.replace(com.android.internal.R.id.prefs, f); + transaction.commit(); } /** @@ -909,7 +913,7 @@ public abstract class PreferenceActivity extends ListActivity implements */ public void switchToHeader(String fragmentName, Bundle args) { setSelectedHeader(null); - switchToHeaderInner(fragmentName, args); + switchToHeaderInner(fragmentName, args, true); } /** @@ -919,7 +923,8 @@ public abstract class PreferenceActivity extends ListActivity implements * @param header The new header to display. */ public void switchToHeader(Header header) { - switchToHeaderInner(header.fragment, header.fragmentArguments); + switchToHeaderInner(header.fragment, header.fragmentArguments, + mHeaders.indexOf(header) > mHeaders.indexOf(mCurHeader)); setSelectedHeader(header); } @@ -979,7 +984,10 @@ public abstract class PreferenceActivity extends ListActivity implements FragmentTransaction transaction = getFragmentManager().openTransaction(); startPreferenceFragment(fragment, transaction); if (push) { + transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); transaction.addToBackStack(BACK_STACK_PREFS); + } else { + transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_NEXT); } transaction.commit(); } @@ -1001,6 +1009,7 @@ public abstract class PreferenceActivity extends ListActivity implements FragmentTransaction transaction = getFragmentManager().openTransaction(); startPreferenceFragment(f, transaction); transaction.setBreadCrumbTitle(pref.getTitle()); + transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); transaction.addToBackStack(BACK_STACK_PREFS); transaction.commit(); return true; diff --git a/core/res/res/anim/fragment_close_enter.xml b/core/res/res/anim/fragment_close_enter.xml index 53afa2a..7a9a3b9 100644 --- a/core/res/res/anim/fragment_close_enter.xml +++ b/core/res/res/anim/fragment_close_enter.xml @@ -19,20 +19,6 @@ <set xmlns:android="http://schemas.android.com/apk/res/android"> <objectAnimator android:interpolator="@anim/decelerate_interpolator" - android:valueFrom="2" - android:valueTo="1" - android:valueType="floatType" - android:propertyName="scaleX" - android:duration="@android:integer/config_mediumAnimTime"/> - <objectAnimator - android:interpolator="@anim/decelerate_interpolator" - android:valueFrom="2" - android:valueTo="1" - android:valueType="floatType" - android:propertyName="scaleY" - android:duration="@android:integer/config_mediumAnimTime"/> - <objectAnimator - android:interpolator="@anim/decelerate_interpolator" android:valueFrom="0" android:valueTo="1" android:valueType="floatType" diff --git a/core/res/res/anim/fragment_close_exit.xml b/core/res/res/anim/fragment_close_exit.xml index 1554a4e..0743577 100644 --- a/core/res/res/anim/fragment_close_exit.xml +++ b/core/res/res/anim/fragment_close_exit.xml @@ -20,20 +20,6 @@ <objectAnimator android:interpolator="@anim/accelerate_interpolator" android:valueFrom="1" - android:valueTo=".5" - android:valueType="floatType" - android:propertyName="scaleX" - android:duration="@android:integer/config_mediumAnimTime"/> - <objectAnimator - android:interpolator="@anim/accelerate_interpolator" - android:valueFrom="1" - android:valueTo=".5" - android:valueType="floatType" - android:propertyName="scaleY" - android:duration="@android:integer/config_mediumAnimTime"/> - <objectAnimator - android:interpolator="@anim/accelerate_interpolator" - android:valueFrom="1" android:valueTo="0" android:valueType="floatType" android:propertyName="alpha" diff --git a/core/res/res/anim/fragment_next_enter.xml b/core/res/res/anim/fragment_next_enter.xml new file mode 100644 index 0000000..d2d6ec9 --- /dev/null +++ b/core/res/res/anim/fragment_next_enter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2010, 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. +*/ +--> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <objectAnimator + android:valueFrom="0" + android:valueTo="1" + android:valueType="floatType" + android:propertyName="alpha" + android:duration="@android:integer/config_longAnimTime"/> + <objectAnimator + android:valueFrom="50" + android:valueTo="0" + android:valueType="floatType" + android:propertyName="translationY" + android:duration="@android:integer/config_longAnimTime"/> +</set>
\ No newline at end of file diff --git a/core/res/res/anim/fragment_next_exit.xml b/core/res/res/anim/fragment_next_exit.xml new file mode 100644 index 0000000..fbb82d9 --- /dev/null +++ b/core/res/res/anim/fragment_next_exit.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2010, 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. +*/ +--> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <objectAnimator + android:valueFrom="1" + android:valueTo="0" + android:valueType="floatType" + android:propertyName="alpha" + android:duration="@android:integer/config_mediumAnimTime"/> + <objectAnimator + android:valueFrom="0" + android:valueTo="-50" + android:valueType="floatType" + android:propertyName="translationY" + android:duration="@android:integer/config_mediumAnimTime"/> +</set>
\ No newline at end of file diff --git a/core/res/res/anim/fragment_open_enter.xml b/core/res/res/anim/fragment_open_enter.xml index 142f60c..ac60494 100644 --- a/core/res/res/anim/fragment_open_enter.xml +++ b/core/res/res/anim/fragment_open_enter.xml @@ -18,20 +18,6 @@ --> <set xmlns:android="http://schemas.android.com/apk/res/android"> <objectAnimator - android:interpolator="@anim/decelerate_interpolator" - android:valueFrom="2" - android:valueTo="1" - android:valueType="floatType" - android:propertyName="scaleX" - android:duration="@android:integer/config_mediumAnimTime"/> - <objectAnimator - android:interpolator="@anim/decelerate_interpolator" - android:valueFrom="2" - android:valueTo="1" - android:valueType="floatType" - android:propertyName="scaleY" - android:duration="@android:integer/config_mediumAnimTime"/> - <objectAnimator android:valueFrom="0" android:valueTo="1" android:valueType="floatType" diff --git a/core/res/res/anim/fragment_open_exit.xml b/core/res/res/anim/fragment_open_exit.xml index 21260b9..3bf1ad4 100644 --- a/core/res/res/anim/fragment_open_exit.xml +++ b/core/res/res/anim/fragment_open_exit.xml @@ -18,20 +18,6 @@ --> <set xmlns:android="http://schemas.android.com/apk/res/android"> <objectAnimator - android:interpolator="@anim/accelerate_interpolator" - android:valueFrom="1" - android:valueTo="2" - android:valueType="floatType" - android:propertyName="scaleX" - android:duration="@android:integer/config_mediumAnimTime"/> - <objectAnimator - android:interpolator="@anim/accelerate_interpolator" - android:valueFrom="1" - android:valueTo="2" - android:valueType="floatType" - android:propertyName="scaleY" - android:duration="@android:integer/config_mediumAnimTime"/> - <objectAnimator android:valueFrom="1" android:valueTo="0" android:valueType="floatType" diff --git a/core/res/res/anim/fragment_prev_enter.xml b/core/res/res/anim/fragment_prev_enter.xml new file mode 100644 index 0000000..d37afd0 --- /dev/null +++ b/core/res/res/anim/fragment_prev_enter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2010, 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. +*/ +--> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <objectAnimator + android:valueFrom="0" + android:valueTo="1" + android:valueType="floatType" + android:propertyName="alpha" + android:duration="@android:integer/config_longAnimTime"/> + <objectAnimator + android:valueFrom="-50" + android:valueTo="0" + android:valueType="floatType" + android:propertyName="translationY" + android:duration="@android:integer/config_longAnimTime"/> +</set>
\ No newline at end of file diff --git a/core/res/res/anim/fragment_prev_exit.xml b/core/res/res/anim/fragment_prev_exit.xml new file mode 100644 index 0000000..a445a4d --- /dev/null +++ b/core/res/res/anim/fragment_prev_exit.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2010, 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. +*/ +--> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <objectAnimator + android:valueFrom="1" + android:valueTo="0" + android:valueType="floatType" + android:propertyName="alpha" + android:duration="@android:integer/config_mediumAnimTime"/> + <objectAnimator + android:valueFrom="0" + android:valueTo="50" + android:valueType="floatType" + android:propertyName="translationY" + android:duration="@android:integer/config_mediumAnimTime"/> +</set>
\ No newline at end of file diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 8e2b762..33d3eeb 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -1088,6 +1088,10 @@ <attr name="fragmentOpenExitAnimation" format="reference" /> <attr name="fragmentCloseEnterAnimation" format="reference" /> <attr name="fragmentCloseExitAnimation" format="reference" /> + <attr name="fragmentNextEnterAnimation" format="reference" /> + <attr name="fragmentNextExitAnimation" format="reference" /> + <attr name="fragmentPrevEnterAnimation" format="reference" /> + <attr name="fragmentPrevExitAnimation" format="reference" /> </declare-styleable> <!-- Window animation class attributes. --> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 35f8df5..2c3c4fc 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1332,6 +1332,10 @@ <public type="attr" name="fragmentOpenExitAnimation" /> <public type="attr" name="fragmentCloseEnterAnimation" /> <public type="attr" name="fragmentCloseExitAnimation" /> + <public type="attr" name="fragmentNextEnterAnimation" /> + <public type="attr" name="fragmentNextExitAnimation" /> + <public type="attr" name="fragmentPrevEnterAnimation" /> + <public type="attr" name="fragmentPrevExitAnimation" /> <public type="attr" name="actionBarSize" /> <public type="attr" name="imeSubtypeLocale" /> <public type="attr" name="imeSubtypeMode" /> diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index 3dfaf7f..4b5047e 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -78,6 +78,10 @@ <item name="fragmentOpenExitAnimation">@anim/fragment_open_exit</item> <item name="fragmentCloseEnterAnimation">@anim/fragment_close_enter</item> <item name="fragmentCloseExitAnimation">@anim/fragment_close_exit</item> + <item name="fragmentNextEnterAnimation">@anim/fragment_next_enter</item> + <item name="fragmentNextExitAnimation">@anim/fragment_next_exit</item> + <item name="fragmentPrevEnterAnimation">@anim/fragment_prev_enter</item> + <item name="fragmentPrevExitAnimation">@anim/fragment_prev_exit</item> </style> <!-- Standard animations for a non-full-screen window or activity. --> |
