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


Java AlphaAnimation.setStartOffset方法代码示例

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


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

示例1: startAnim

import android.view.animation.AlphaAnimation; //导入方法依赖的package包/类
private void startAnim(View widget) {
    int distance = widget.getHeight();
    widget.setVisibility(0);
    this.mFloatLayout.setVisibility(0);
    AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);
    alphaAnimation.setDuration(200);
    alphaAnimation.setStartOffset(200);
    this.mFloatLayout.setAnimation(alphaAnimation);
    this.mAnimation = new TranslateAnimation(0.0f, 0.0f, (float) distance, 0.0f);
    this.mAnimation.setDuration(200);
    this.mAnimation.setStartOffset(200);
    widget.setAnimation(this.mAnimation);
    this.mAnimation.start();
    alphaAnimation.start();
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:16,代码来源:FeedBackAnimFragment.java

示例2: apply

import android.view.animation.AlphaAnimation; //导入方法依赖的package包/类
@Override public void apply(@NonNull View view, int index) {
  AlphaAnimation alphaAnimation = new AlphaAnimation(0, 1);
  alphaAnimation.setFillBefore(true);
  alphaAnimation.setDuration(500);
  alphaAnimation.setStartOffset(index * 100);
  view.startAnimation(alphaAnimation);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:SimpleActivity.java

示例3: startAlpha

import android.view.animation.AlphaAnimation; //导入方法依赖的package包/类
private AlphaAnimation startAlpha() {
	AlphaAnimation alpha = new AlphaAnimation(0, 1);
	alpha.setInterpolator(this, android.R.anim.accelerate_interpolator);
	alpha.setStartOffset(0);
	alpha.setDuration(1500);
	return alpha;
}
 
开发者ID:isuhao,项目名称:QMark,代码行数:8,代码来源:WelcomeSnowActy.java

示例4: endAlpha

import android.view.animation.AlphaAnimation; //导入方法依赖的package包/类
private AlphaAnimation endAlpha(int startTime) {
	AlphaAnimation alpha = new AlphaAnimation(1, 0);
	alpha.setInterpolator(this, android.R.anim.decelerate_interpolator);
	alpha.setStartOffset(startTime - 300);
	alpha.setDuration(300);
	return alpha;
}
 
开发者ID:isuhao,项目名称:QMark,代码行数:8,代码来源:WelcomeSnowActy.java

示例5: addTextFadeAnimations

import android.view.animation.AlphaAnimation; //导入方法依赖的package包/类
private void addTextFadeAnimations(AnimationSet set) {
    AlphaAnimation mFadeInAnim = new AlphaAnimation(1, FADE_MOUNT);
    mFadeInAnim.setDuration(CHARACTER_ANIM_DURATION);
    set.addAnimation(mFadeInAnim);
    AlphaAnimation mFadeOutAnim = new AlphaAnimation(FADE_MOUNT, 1);
    mFadeOutAnim.setDuration(CHARACTER_ANIM_DURATION);
    mFadeOutAnim.setStartOffset(CHARACTER_ANIM_DURATION + 20);
    mFadeOutAnim.setFillAfter(true);
    set.addAnimation(mFadeOutAnim);
    set.setInterpolator(interpolator);
}
 
开发者ID:HarinTrivedi,项目名称:AnimatedPullToRefresh-master,代码行数:12,代码来源:AnimationHelper.java

示例6: addLoopFadeAnimations

import android.view.animation.AlphaAnimation; //导入方法依赖的package包/类
private void addLoopFadeAnimations(long duration, AnimationSet set) {
    AlphaAnimation mFadeInAnim = new AlphaAnimation(1, FADE_MOUNT);
    mFadeInAnim.setDuration(duration);
    set.addAnimation(mFadeInAnim);
    AlphaAnimation mFadeOutAnim = new AlphaAnimation(FADE_MOUNT, 1);
    mFadeOutAnim.setDuration(duration);
    mFadeOutAnim.setStartOffset(duration + 50);
    set.addAnimation(mFadeOutAnim);
    set.setInterpolator(interpolator);
}
 
开发者ID:HarinTrivedi,项目名称:AnimatedPullToRefresh-master,代码行数:11,代码来源:AnimationHelper.java

示例7: fadeIn

import android.view.animation.AlphaAnimation; //导入方法依赖的package包/类
public static Animation fadeIn() {
    AlphaAnimation animation = new AlphaAnimation(0, 1);
    animation.setDuration(300);
    animation.setStartOffset(50);
    return animation;
}
 
开发者ID:djuelg,项目名称:Neuronizer,代码行数:7,代码来源:Animations.java

示例8: fadeOut

import android.view.animation.AlphaAnimation; //导入方法依赖的package包/类
public static Animation fadeOut() {
    AlphaAnimation animation = new AlphaAnimation(1, 0);
    animation.setDuration(300);
    animation.setStartOffset(50);
    return animation;
}
 
开发者ID:djuelg,项目名称:Neuronizer,代码行数:7,代码来源:Animations.java


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