本文整理汇总了Java中com.daimajia.androidanimations.library.attention.StandUpAnimator类的典型用法代码示例。如果您正苦于以下问题:Java StandUpAnimator类的具体用法?Java StandUpAnimator怎么用?Java StandUpAnimator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StandUpAnimator类属于com.daimajia.androidanimations.library.attention包,在下文中一共展示了StandUpAnimator类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onNextItemAppear
import com.daimajia.androidanimations.library.attention.StandUpAnimator; //导入依赖的package包/类
@Override
public void onNextItemAppear(View view) {
View descriptionLayout = view.findViewById(com.daimajia.slider.library.R.id.description_layout);
if(descriptionLayout!=null){
view.findViewById(com.daimajia.slider.library.R.id.description_layout).setVisibility(View.VISIBLE);
// ValueAnimator animator = ObjectAnimator.ofFloat(
// descriptionLayout, "y", -descriptionLayout.getHeight(),
// 0).setDuration(500);
// animator.start();
// new BounceInAnimator().animate(descriptionLayout);
new StandUpAnimator().animate(descriptionLayout);
}
Log.e(TAG,"onCurrentItemDisappear called");
}
示例2: onNextItemAppear
import com.daimajia.androidanimations.library.attention.StandUpAnimator; //导入依赖的package包/类
@Override
public void onNextItemAppear(View view) {
View descriptionLayout = view.findViewById(R.id.ns_desc_frame);
if (descriptionLayout != null) {
view.findViewById(R.id.ns_desc_frame).setVisibility(View.VISIBLE);
// ValueAnimator animator = ObjectAnimator.ofFloat(
// descriptionLayout, "y", -descriptionLayout.getHeight(),
// 0).setDuration(500);
// animator.start();
// new BounceInAnimator().animate(descriptionLayout);
new StandUpAnimator().animate(descriptionLayout);
}
Log.e(TAG, "onCurrentItemDisappear called");
}