/**
* Set a Custom Animation to a Fragment transaction
*
* @param transaction The transaction that will
* @param enterAnim The animation resource to be used when the next fragment enters.
* @param exitAnim The animation resource to be used when the current fragment exits.
* @param popEnterAnim The animation resource to be used when the previous fragment enters on back pressed.
* @param popExitAnim The animation resource to be used when the current fragment exits on back pressed..
*/
private void setCustomAnimations(FragmentTransaction transaction, @AnimRes int enterAnim,
@AnimRes int exitAnim, @AnimRes int popEnterAnim, @AnimRes int popExitAnim) {
transaction.setCustomAnimations(
enterAnim,
exitAnim,
popEnterAnim,
popExitAnim
);
}
Flowr.java 文件源码
java
阅读 43
收藏 0
点赞 0
评论 0
项目:flowr
作者:
评论列表
文章目录