本文整理了Java中android.view.animation.Animation.hasStarted()
方法的一些代码示例,展示了Animation.hasStarted()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.hasStarted()
方法的具体详情如下:
包路径:android.view.animation.Animation
类名称:Animation
方法名:hasStarted
暂无
代码示例来源:origin: scwang90/SmartRefreshLayout
@Override
public boolean isRunning() {
final List<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: smuyyh/BookReader
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: smuyyh/BookReader
private boolean isAnimationRunning(Animation animation) {
return animation != null && animation.hasStarted() && !animation.hasEnded();
}
代码示例来源:origin: aa112901/remusic
public void setAnimation(Animation animation){
if(mCurrentView == null){
Log.e("round","mcview == null" + mItems.size());
mCurrentView = (View) getChildAt(0);
Log.e("round","mcview == " + (mCurrentView == null));
}
if(mCurrentView != null){
Log.e("round","set");
mCurrentView.startAnimation(animation);
isRotating = true;
Log.e("round","set" +mCurrentView.getAnimation().hasStarted());
}
}
代码示例来源:origin: square/assertj-android
public S isStarted() {
isNotNull();
assertThat(actual.hasStarted()) //
.overridingErrorMessage("Expected to be started but was not.") //
.isTrue();
return myself;
}
代码示例来源:origin: square/assertj-android
public S isNotStarted() {
isNotNull();
assertThat(actual.hasStarted()) //
.overridingErrorMessage("Expected to not be started but was.") //
.isFalse();
return myself;
}
代码示例来源:origin: huxq17/XRefreshView
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: iielse/ImageWatcher
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: weexteam/weex-hackernews
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: chenyangcun/MaterialDesignExample
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: chenyangcun/MaterialDesignExample
private boolean isAnimationRunning(Animation animation) {
return animation != null && animation.hasStarted() && !animation.hasEnded();
}
代码示例来源:origin: kaku2015/ColorfulNews
private boolean isShowingAnimation(RecyclerView.ViewHolder holder) {
return holder.itemView.getAnimation() != null && holder.itemView
.getAnimation().hasStarted();
}
代码示例来源:origin: OCNYang/Android-Animation-Set
private void doAnimation(Animation animation, @Nullable final String animationType) {
Animation oldAnimation = mPuppet.getAnimation();
if (oldAnimation != null) {
if (oldAnimation.hasStarted() || (!oldAnimation.hasEnded())) {
oldAnimation.cancel();
mPuppet.clearAnimation();
}
}
animation.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
Log.d(TAG, animationType + " start;");
}
@Override
public void onAnimationEnd(Animation animation) {
Log.d(TAG, animationType + " end;");
}
@Override
public void onAnimationRepeat(Animation animation) {
Log.d(TAG, animationType + " repeat;");
}
});
mPuppet.startAnimation(animation);
}
代码示例来源:origin: huangfangyi/FanXin
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: captain-miao/RecyclerViewUtils
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: xu649526275/MyMVPDemo
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: AnJiaoDe/BaseDialog
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: tengyukun/pulltorefreshRecylerView
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: 123ufo/DWRefreshLayout
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
代码示例来源:origin: huangfangyi/YiChat
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!