当前位置: 首页>>代码示例>>Java>>正文


Java AutoTransition.setDuration方法代码示例

本文整理汇总了Java中android.transition.AutoTransition.setDuration方法的典型用法代码示例。如果您正苦于以下问题:Java AutoTransition.setDuration方法的具体用法?Java AutoTransition.setDuration怎么用?Java AutoTransition.setDuration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.transition.AutoTransition的用法示例。


在下文中一共展示了AutoTransition.setDuration方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: BottomNavigationAnimationHelperKitkat

import android.transition.AutoTransition; //导入方法依赖的package包/类
BottomNavigationAnimationHelperKitkat() {
    mSet = new AutoTransition();
    mSet.setOrdering(TransitionSet.ORDERING_TOGETHER);
    mSet.setDuration(ACTIVE_ANIMATION_DURATION_MS);
    mSet.setInterpolator(new FastOutSlowInInterpolator());
    TextScale textScale = new TextScale();
    mSet.addTransition(textScale);
}
 
开发者ID:Trumeet,项目名称:MiPushFramework,代码行数:9,代码来源:BottomNavigationAnimationHelperKitkat.java

示例2: DribbbleCommentsAdapter

import android.transition.AutoTransition; //导入方法依赖的package包/类
public DribbbleCommentsAdapter(Context context, int resource, List<Comment> comments) {
    super(context, resource, comments);
    inflater = LayoutInflater.from(context);
    if (UI.isLollipop()) {
        change = new AutoTransition();
        change.setDuration(200L);
        change.setInterpolator(AnimationUtils.loadInterpolator(context,
                android.R.interpolator.fast_out_slow_in));
    }
}
 
开发者ID:goodev,项目名称:materialup,代码行数:11,代码来源:PostActivity.java

示例3: DribbbleCommentsAdapter

import android.transition.AutoTransition; //导入方法依赖的package包/类
public DribbbleCommentsAdapter(Context context, int resource, List<Comment> comments) {
    super(context, resource, comments);
    inflater = LayoutInflater.from(context);
    change = new AutoTransition();
    change.setDuration(200L);
    change.setInterpolator(getFastOutSlowInInterpolator(context));
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:8,代码来源:DribbbleShot.java

示例4: withAction

import android.transition.AutoTransition; //导入方法依赖的package包/类
/**
 * Creates a AutoTransition that calls the {@linkplain android.transition.Transition.TransitionListener#onTransitionEnd(Transition)}
 * of the passing Listener when complete
 */
public static Transition withAction(TransitionListener finishingAction) {
    AutoTransition transition = new AutoTransition();
    transition.setDuration(FADE_OUT_DURATION);
    transition.addListener(finishingAction);
    return transition;
}
 
开发者ID:alexstyl,项目名称:Material-SearchTransition,代码行数:11,代码来源:FadeOutTransition.java

示例5: createTransition

import android.transition.AutoTransition; //导入方法依赖的package包/类
public static Transition createTransition() {
    AutoTransition transition = new AutoTransition();
    transition.setDuration(FADE_IN_DURATION);
    return transition;
}
 
开发者ID:alexstyl,项目名称:Material-SearchTransition,代码行数:6,代码来源:FadeInTransition.java

示例6: withAction

import android.transition.AutoTransition; //导入方法依赖的package包/类
public static Transition withAction(TransitionListener finishingAction) {
    AutoTransition transition = new AutoTransition();
    transition.setDuration(FADE_OUT_DURATION);
    transition.addListener(finishingAction);
    return transition;
}
 
开发者ID:sorcererXW,项目名称:SorceryIconPack,代码行数:7,代码来源:FadeOutTransition.java


注:本文中的android.transition.AutoTransition.setDuration方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。