本文整理了Java中android.widget.ImageView.getAnimation()
方法的一些代码示例,展示了ImageView.getAnimation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.getAnimation()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:getAnimation
暂无
代码示例来源:origin: tianshaojie/AndroidFine
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: chaychan/TouTiao
/**
* 停止首页页签的旋转动画
*/
private void cancelTabLoading(BottomBarItem bottomItem) {
Animation animation = bottomItem.getImageView().getAnimation();
if (animation != null) {
animation.cancel();
}
}
代码示例来源:origin: myxh/CoolShopping
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: open-android/PullToRefresh
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: Uphie/ONE-Unofficial
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: huangfangyi/FanXin
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: Wan7451/Wan_RecycleViewAdapter
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: kaku2015/WeatherAlarmClock
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: alienjun/AJWaveRefreshForAndroid
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: shanyao0/SimpleApp
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: AndroidHensen/YaNi
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: gdpancheng/LoonAndroid3
@Override
protected void pullToRefreshImpl() {
// Only start reset Animation, we've previously show the rotate anim
if (mRotateAnimation == mHeaderImage.getAnimation()) {
mHeaderImage.startAnimation(mResetRotateAnimation);
}
}
代码示例来源:origin: ganshenml/WebViewPageScannerApp
private void releaseResource() {
if (objectAnimator != null) {
objectAnimator.cancel();
}
if (centerIv.getAnimation() != null) {
centerIv.getAnimation().cancel();
}
}
代码示例来源:origin: Syehunter/RecyclerViewManager
@Override
protected void onRefreshImpl() {
mImage.setImageDrawable(imageDrawable);
if (null != mImage.getAnimation()){
mImage.clearAnimation();
}
mImage.startAnimation(mRotateAnimation);
if (RecyclerMode.BOTH == mode || RecyclerMode.TOP == mode) {
if (null != mRefreshText) {
mRefreshText.setText(mRefreshing);
}
if (null != mRefreshTime) {
if (TextUtils.isEmpty(mLastUpdateTime)) {
mRefreshTime.setVisibility(View.GONE);
} else {
mRefreshTime.setVisibility(View.VISIBLE);
}
}
} else {
if (null != mRefreshText) {
mRefreshText.setText(mLoading);
}
}
}
代码示例来源:origin: chaychan/PowerfulViewLibrary
/**停止首页页签的旋转动画*/
private void cancelTabLoading(BottomBarItem bottomItem) {
Animation animation = bottomItem.getImageView().getAnimation();
if (animation != null){
animation.cancel();
}
}
代码示例来源:origin: chaychan/BottomBarLayout
/**
* 停止首页页签的旋转动画
*/
private void cancelTabLoading(BottomBarItem bottomItem) {
Animation animation = bottomItem.getImageView().getAnimation();
if (animation != null) {
animation.cancel();
}
}
代码示例来源:origin: chaychan/BottomBarLayout
/**
* 停止首页页签的旋转动画
*/
private void cancelTabLoading(BottomBarItem bottomItem) {
Animation animation = bottomItem.getImageView().getAnimation();
if (animation != null) {
animation.cancel();
}
}
代码示例来源:origin: com.novoda.imageloader/imageloader-core
private void stopExistingAnimation() {
Animation old = imageView.getAnimation();
if (old != null && !old.hasEnded()) {
old.cancel();
}
}
代码示例来源:origin: com.novoda.imageloader/imageloader-core
private void stopExistingAnimation() {
Animation old = imageView.getAnimation();
if (old != null && !old.hasEnded()) {
old.cancel();
}
}
代码示例来源:origin: com.novoda.imageloader/imageloader-core
private void extractWrapperData(ImageWrapper imageWrapper) {
url = imageWrapper.getUrl();
width = imageWrapper.getWidth();
height = imageWrapper.getHeight();
notFoundResourceId = imageWrapper.getNotFoundResourceId();
useCacheOnly = imageWrapper.isUseCacheOnly();
imageView = imageWrapper.getImageView();
context = imageWrapper.getContext();
imageFile = getImageFile(imageWrapper);
animation = imageView.getAnimation();
}
内容来源于网络,如有侵权,请联系作者删除!