本文整理了Java中android.widget.ImageView.clearAnimation()
方法的一些代码示例,展示了ImageView.clearAnimation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.clearAnimation()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:clearAnimation
暂无
代码示例来源:origin: ArthurHub/Android-Image-Cropper
@Override
public void onAnimationEnd(Animation animation) {
mImageView.clearAnimation();
}
代码示例来源:origin: Aspsine/SwipeToLoadLayout
@Override
public void onPrepare() {
ivSpeed.clearAnimation();
ivSpeed.setVisibility(GONE);
}
代码示例来源:origin: jaydenxiao2016/AndroidFire
@Override
public void onReset() {
rotated = false;
ivSuccess.setVisibility(GONE);
ivArrow.clearAnimation();
ivArrow.setVisibility(GONE);
progressBar.setVisibility(GONE);
}
}
代码示例来源:origin: liaoinstan/SpringView
@Override
public void onStartAnim() {
footerTitle.setText("正在加载");
footerArrow.setVisibility(View.INVISIBLE);
footerArrow.clearAnimation();
footerProgressbar.setVisibility(View.VISIBLE);
}
代码示例来源:origin: Aspsine/SwipeToLoadLayout
@Override
public void onReset() {
rotated = false;
ivSuccess.setVisibility(GONE);
ivArrow.clearAnimation();
ivArrow.setVisibility(GONE);
progressBar.setVisibility(GONE);
}
代码示例来源:origin: liaoinstan/SpringView
@Override
public void onStartAnim() {
headerTitle.setText("正在刷新");
headerArrow.setVisibility(View.INVISIBLE);
headerArrow.clearAnimation();
headerProgressbar.setVisibility(View.VISIBLE);
}
代码示例来源:origin: jaydenxiao2016/AndroidFire
@Override
public void onRefresh() {
ivSuccess.setVisibility(GONE);
ivArrow.clearAnimation();
ivArrow.setVisibility(GONE);
progressBar.setVisibility(VISIBLE);
tvRefresh.setText("REFRESHING");
}
代码示例来源:origin: jaydenxiao2016/AndroidFire
@Override
public void onComplete() {
rotated = false;
ivSuccess.setVisibility(VISIBLE);
ivArrow.clearAnimation();
ivArrow.setVisibility(GONE);
progressBar.setVisibility(GONE);
tvRefresh.setText("COMPLETE");
}
代码示例来源:origin: Aspsine/SwipeToLoadLayout
@Override
public void onRefresh() {
ivSuccess.setVisibility(GONE);
ivArrow.clearAnimation();
ivArrow.setVisibility(GONE);
progressBar.setVisibility(VISIBLE);
tvRefresh.setText("REFRESHING");
}
代码示例来源:origin: Aspsine/SwipeToLoadLayout
@Override
public void onComplete() {
rotated = false;
ivSuccess.setVisibility(VISIBLE);
ivArrow.clearAnimation();
ivArrow.setVisibility(GONE);
progressBar.setVisibility(GONE);
tvRefresh.setText("COMPLETE");
}
代码示例来源:origin: liaoinstan/SpringView
@Override
public void onStartAnim() {
freshTime = System.currentTimeMillis();
headerTitle.setText("正在刷新");
headerArrow.setVisibility(View.INVISIBLE);
headerArrow.clearAnimation();
headerProgressbar.setVisibility(View.VISIBLE);
}
代码示例来源:origin: jiangqqlmj/FastDev4Android
private void resetHeader() {
mRefreshState = PULL_TO_REFRESH;
mRefreshOriginalTopPadding = -mRefreshViewHeight;
resetHeaderPadding();
mRefreshViewImage.clearAnimation();
mRefreshViewImage.setVisibility(View.VISIBLE);
mRefreshViewProgress.setVisibility(View.GONE);
mRefreshViewText.setText(R.string.pull_to_refresh_pull_label_it);
}
代码示例来源:origin: mikepenz/FastAdapter
@Override
public void unbindView(ViewHolder holder) {
super.unbindView(holder);
holder.name.setText(null);
holder.description.setText(null);
//make sure all animations are stopped
holder.icon.clearAnimation();
}
代码示例来源:origin: Aspsine/SwipeToLoadLayout
@Override
public void onReset() {
mAnimDrawable.stop();
ivSpeed.clearAnimation();
ivSpeed.setVisibility(GONE);
}
}
代码示例来源:origin: jiangqqlmj/FastDev4Android
public void prepareForRefresh() {
if (mRefreshState != REFRESHING) {
mRefreshState = REFRESHING;
mRefreshOriginalTopPadding = 0;
resetHeaderPadding();
mRefreshViewImage.clearAnimation();
mRefreshViewImage.setVisibility(View.GONE);
mRefreshViewProgress.setVisibility(View.VISIBLE);
mRefreshViewText.setText(R.string.pull_to_refresh_refreshing_label_it);
onRefresh();
}
}
代码示例来源:origin: bumptech/glide
@Test
public void testStartsAnimationOnAnimate() {
Animation animation = mock(Animation.class);
when(viewTransitionAnimationFactory.build(any(Context.class))).thenReturn(animation);
viewAnimation.transition(null, adapter);
verify(view).clearAnimation();
verify(view).startAnimation(eq(animation));
}
}
代码示例来源:origin: bumptech/glide
@Test
public void testClearsAnimationOnAnimate() {
viewAnimation.transition(null, adapter);
verify(view).clearAnimation();
}
代码示例来源:origin: mikepenz/MaterialDrawer
/**
* helper method to reset the drawer content
*/
private void resetDrawerContent(Context ctx) {
if (mDrawer != null) {
mDrawer.resetDrawerContent();
}
mAccountSwitcherArrow.clearAnimation();
ViewCompat.animate(mAccountSwitcherArrow).rotation(0).start();
//mAccountSwitcherArrow.setImageDrawable(new IconicsDrawable(ctx, MaterialDrawerFont.Icon.mdf_arrow_drop_down).sizeRes(R.dimen.material_drawer_account_header_dropdown).paddingRes(R.dimen.material_drawer_account_header_dropdown_padding).color(ColorHolder.color(mTextColor, ctx, R.attr.material_drawer_header_selection_text, R.color.material_drawer_header_selection_text)));
}
代码示例来源:origin: mikepenz/MaterialDrawer
@Override
public void bindView(ViewHolder viewHolder, List payloads) {
super.bindView(viewHolder, payloads);
Context ctx = viewHolder.itemView.getContext();
//bind the basic view parts
bindViewHelper(viewHolder);
//make sure all animations are stopped
if (viewHolder.arrow.getDrawable() instanceof IconicsDrawable) {
((IconicsDrawable) viewHolder.arrow.getDrawable()).color(this.arrowColor != null ? this.arrowColor.color(ctx) : getIconColor(ctx));
}
viewHolder.arrow.clearAnimation();
if (!isExpanded()) {
viewHolder.arrow.setRotation(this.arrowRotationAngleStart);
} else {
viewHolder.arrow.setRotation(this.arrowRotationAngleEnd);
}
//call the onPostBindView method to trigger post bind view actions (like the listener to modify the item if required)
onPostBindView(this, viewHolder.itemView);
}
代码示例来源:origin: mikepenz/MaterialDrawer
/**
* helper method to toggle the collection
*
* @param ctx
*/
protected void toggleSelectionList(Context ctx) {
if (mDrawer != null) {
//if we already show the list. reset everything instead
if (mDrawer.switchedDrawerContent()) {
resetDrawerContent(ctx);
mSelectionListShown = false;
} else {
//build and set the drawer selection list
buildDrawerSelectionList();
// update the arrow image within the drawer
mAccountSwitcherArrow.clearAnimation();
ViewCompat.animate(mAccountSwitcherArrow).rotation(180).start();
//mAccountSwitcherArrow.setImageDrawable(new IconicsDrawable(ctx, MaterialDrawerFont.Icon.mdf_arrow_drop_up).sizeRes(R.dimen.material_drawer_account_header_dropdown).paddingRes(R.dimen.material_drawer_account_header_dropdown_padding).color(ColorHolder.color(mTextColor, ctx, R.attr.material_drawer_header_selection_text, R.color.material_drawer_header_selection_text)));
mSelectionListShown = true;
}
}
}
内容来源于网络,如有侵权,请联系作者删除!