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


Java AnimationSet.start方法代码示例

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


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

示例1: startTouchAnimation

import android.view.animation.AnimationSet; //导入方法依赖的package包/类
private void startTouchAnimation(int animationDelay, final long touchTime, long secondTouchOffset) {
    long startOffset = (animationDelay > 0) ? animationDelay * MILLISECONDS : DEFAULT_ANIMATION_DELAY * MILLISECONDS ;

    if (isSecondTouchOfDoubleTouchGesture(secondTouchOffset)) {
        startOffset = secondTouchOffset;
    }

    AnimationSet animationSet = new AnimationSet(false);
    animationSet.addAnimation(getZoomOutAnimation(startOffset, touchTime));
    animationSet.addAnimation(getZoomInAnimation(startOffset, touchTime));

    mView.setAnimation(animationSet);

    animationSet.start();
}
 
开发者ID:elimu-ai,项目名称:start-guide,代码行数:16,代码来源:GestureHelper.java

示例2: onCreate

import android.view.animation.AnimationSet; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_login);
	trackEvent(R.string.category_read, R.string.action_login);

	mLoginTextContainer 	= (RelativeLayout) findViewById(R.id.login_text_container);
	mWebViewProgress 		= (ProgressView) findViewById(R.id.SetupProgress);
	mWebViewContainer 		= (FrameLayout) findViewById(R.id.webview_container);
	mContinueFABContainer 	= (FrameLayout) findViewById(R.id.login_continue_circle_container);
	mGearIcon 				= (ImageView) findViewById(R.id.login_icon);
	mSuccessIcon 			= (ImageView) findViewById(R.id.login_icon_done);
	mContinueIcon			= (ImageView) findViewById(R.id.forward_arrow);
	mLoginTextLineOne 		= (TextView) findViewById(R.id.login_text_line_one);
	mLoginTextLineTwo 		= (TextView) findViewById(R.id.login_text_line_two);
	mSuccessMessage			= (TextView) findViewById(R.id.login_success_message);
	mSkipText				= (TextView) findViewById(R.id.skip_text);
	loginWebView 			= (WebView) findViewById(R.id.login_webview);
	mContinueFAB 			= findViewById(R.id.login_continue_circle);
	mContinueFABShadow 		= findViewById(R.id.login_continue_circle_shadow);
	mSuccessCircle 			= findViewById(R.id.login_success_circle);
	mSuccessCircleShadow	= findViewById(R.id.login_success_shadow);
	mTransitionViewWhite 	= findViewById(R.id.transition_view);
	mTransitionViewBlue 	= findViewById(R.id.transition_view_blue);

	mSuccessMessage		.setVisibility(View.INVISIBLE);
	mContinueIcon		.setVisibility(View.INVISIBLE);
	mSuccessCircleShadow.setVisibility(View.INVISIBLE);
	mSuccessIcon		.setVisibility(View.INVISIBLE);
	mSuccessCircle		.setVisibility(View.INVISIBLE);
	mLoginTextLineOne	.setVisibility(View.INVISIBLE);
	mLoginTextLineTwo	.setVisibility(View.INVISIBLE);
	loginWebView		.setVisibility(View.INVISIBLE);
	mGearIcon			.setVisibility(View.INVISIBLE);
	mTransitionViewBlue	.setVisibility(View.INVISIBLE);
	mTransitionViewWhite.setVisibility(View.INVISIBLE);
	mSkipText			.setVisibility(View.INVISIBLE);

	checkSetupType();

	float textPosition = (int) (2.5 * (getScreenHeight() / 5));
	mLoginTextContainer	.setY(textPosition);
	mSuccessMessage		.setY(textPosition);
	mContinueFABContainer.setOnClickListener(new View.OnClickListener() {
		@Override
		public void onClick(View v) {
			showLoginView();

			if (PocketPlaysApplication.isCrawlerUpdate)
				showSkippingAnimation();
		}
	});

	Service.bringToBack(mTransitionViewWhite);
	Service.bringToBack(mTransitionViewBlue);
	mLoginTextLineOne		.bringToFront();
	mLoginTextLineTwo		.bringToFront();

	initSkipView();
	initSnackbar();
	initLoginView();
	showLogoAnimations();
	showTextLineAnimations(mLoginTextLineOne, 1);
	showTextLineAnimations(mLoginTextLineTwo, 2);
	showTextLineAnimations(mSkipText, 2);

	AnimationSet animationSet = getContinueIconAnimations(270);
	animationSet.setStartOffset(SHOW_CONTINUE_ICON_DELAY);
	animationSet.start();
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:71,代码来源:LoginActivity.java


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