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


Java LinearOutSlowInInterpolator类代码示例

本文整理汇总了Java中android.support.v4.view.animation.LinearOutSlowInInterpolator的典型用法代码示例。如果您正苦于以下问题:Java LinearOutSlowInInterpolator类的具体用法?Java LinearOutSlowInInterpolator怎么用?Java LinearOutSlowInInterpolator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


LinearOutSlowInInterpolator类属于android.support.v4.view.animation包,在下文中一共展示了LinearOutSlowInInterpolator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: showFab

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
public static void showFab(@Nullable FloatingActionButton fab) 
{
       if (fab == null)
		return;

       if (ViewCompat.isLaidOut(fab)) 
	{
           fab.show();
           return;
       }
       fab.animate().cancel();
       fab.setScaleX(0f);
       fab.setScaleY(0f);
       fab.setAlpha(0f);
       fab.setVisibility(View.VISIBLE);
       fab.animate().setDuration(200).scaleX(1).scaleY(1).alpha(1).setInterpolator(new LinearOutSlowInInterpolator());
   }
 
开发者ID:MSay2,项目名称:Mire,代码行数:18,代码来源:AnimUtils.java

示例2: animateInFrameDetails

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
private void animateInFrameDetails() {
    frameDetails.setVisibility(View.VISIBLE);
    ViewUtils.onLaidOut(frameDetails, new Runnable() {
        @Override
        public void run() {
            ObjectAnimator alpha = ObjectAnimator.ofFloat(frameDetails, View.ALPHA, 0.4f, 1f);
            ObjectAnimator translate = ofFloat(frameDetails, View.TRANSLATION_Y, frameDetails.getHeight() * 0.3f, 0f);

            AnimatorSet set = new AnimatorSet();
            set.playTogether(alpha, translate);
            set.setDuration(ANIM_DURATION);
            set.setInterpolator(new LinearOutSlowInInterpolator());
            set.addListener(new AnimatorListenerAdapter() {
                @Override
                public void onAnimationEnd(Animator animation) {
                    super.onAnimationEnd(animation);
                    frameMaster.setVisibility(View.GONE);
                }
            });
            set.start();
        }
    });
}
 
开发者ID:lurbas,项目名称:MaterialMasterDetail,代码行数:24,代码来源:ContainersLayout.java

示例3: hideFab

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
public static void hideFab(@Nullable FloatingActionButton fab)
{
       if (fab == null)
		return;

       if (ViewCompat.isLaidOut(fab))
	{
           fab.hide();
           return;
       }
       fab.animate().cancel();
       fab.setScaleX(1f);
       fab.setScaleY(1f);
       fab.setAlpha(1f);
       fab.setVisibility(View.GONE);
       fab.animate().setDuration(200).scaleX(0).scaleY(0).alpha(0).setInterpolator(new LinearOutSlowInInterpolator());
   }
 
开发者ID:MSay2,项目名称:Mire,代码行数:18,代码来源:AnimUtils.java

示例4: onLayoutChange

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
@Override
public void onLayoutChange(View v, int left, int top, int right, int bottom,
        int oldLeft, int oldTop, int oldRight, int oldBottom) {
    if (mSheetAnimator != null) mSheetAnimator.cancel();

    mRequestView.removeOnLayoutChangeListener(this);
    mContainerHeightDifference = (bottom - top) - (oldBottom - oldTop);

    ValueAnimator containerAnimator = ValueAnimator.ofFloat(1f, 0f);
    containerAnimator.addUpdateListener(new AnimatorUpdateListener() {
        @Override
        public void onAnimationUpdate(ValueAnimator animation) {
            float alpha = (Float) animation.getAnimatedValue();
            update(alpha);
        }
    });

    mSheetAnimator = containerAnimator;
    mSheetAnimator.setDuration(DIALOG_ENTER_ANIMATION_MS);
    mSheetAnimator.setInterpolator(new LinearOutSlowInInterpolator());
    mSheetAnimator.addListener(this);
    mSheetAnimator.start();
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:24,代码来源:PaymentRequestUI.java

示例5: preparePartialTransition_setsPartialInterpolator

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
@Test
public void preparePartialTransition_setsPartialInterpolator() {
    //given
    final StaggeredAnimationGroup spiedGroup = prepareSpiedGroup();
    final TimeInterpolator testInterpolator = new LinearOutSlowInInterpolator();
    final Transition spiedTransition = spy(new AutoTransition());
    final StaggeredAnimationGroup.PartialTransitionFactory factory =
            new StaggeredAnimationGroup.PartialTransitionFactory() {
                @Override
                public Transition createPartialTransition(boolean show, int viewId, int indexInTransition) {
                    return spiedTransition;
                }
            };
    spiedGroup.setPartialTransitionFactory(factory);
    spiedGroup.setPartialInterpolator(testInterpolator);

    //when
    spiedGroup.preparePartialTransition(true, 0, 0);

    //then
    verify(spiedTransition, times(1)).setInterpolator(testInterpolator);
}
 
开发者ID:blipinsk,项目名称:StaggeredAnimationGroup,代码行数:23,代码来源:StaggeredAnimationGroupTest.java

示例6: startAnimationCollapse

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
private void startAnimationCollapse(int position, float startZ, float startY,
                                    float firstScaleX, float firstScaleY,
                                    float scaleX, float scaleY) {
    transitionAnimHiddenView = new TransitionAnimation(hiddenViews.get(position));
    transitionAnimHiddenView.setInterpolator(new LinearOutSlowInInterpolator());

    transitionAnimHiddenView.startAnimation(startZ,
            0,
            TransitionAnimation.AnimationType.TRANSLATION_Z);

    transitionAnimHiddenView.startAnimation(startY,
            valueHandler.getMaxHeightHiddenView(position),
            TransitionAnimation.AnimationType.TRANSLATION_Y);

    transitionAnimHiddenView.startAnimation(firstScaleX,
            scaleX,
            TransitionAnimation.AnimationType.SCALE_X);

    transitionAnimHiddenView.startAnimation(firstScaleY,
            scaleY,
            TransitionAnimation.AnimationType.SCALE_Y);
}
 
开发者ID:AppliKey,项目名称:Sunstrike,代码行数:23,代码来源:AnimationController.java

示例7: endAnimationCollapse

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
void endAnimationCollapse(int progress) {
    setTransitionFirstViewZ(valueHandler.getCurrentZFirstView(progress),
            valueHandler.getMinZ(), new LinearOutSlowInInterpolator());

    moveViews(valueHandler.getYMovingViews(progress), valueHandler.getStartYMoveViews(),
            new LinearOutSlowInInterpolator());
    for (int i = 0; i < hiddenViews.size(); i++) {
        startAnimationCollapse(i,
                valueHandler.getCurrentZView(progress, i),
                valueHandler.getMaxHeightHiddenView(i)
                        - valueHandler.getCurrentYViewProgress(progress, i),
                valueHandler.getScaleXView(progress, i),
                valueHandler.getScaleYView(progress, i),
                valueHandler.getMinScaleX(),
                0);
    }
}
 
开发者ID:AppliKey,项目名称:Sunstrike,代码行数:18,代码来源:AnimationController.java

示例8: onStart

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
@Override
protected void onStart() {
    if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
        Slide slide = new Slide(Gravity.BOTTOM);

        if(isFirstLaunch) {
            fab.hide();
            isFirstLaunch = false;
        }

        slide.addTarget(R.id.description_card);
        slide.addTarget(R.id.venue_time_card);
        slide.addTarget(R.id.registration_card);
        slide.addTarget(R.id.prizes_card);
        slide.addTarget(R.id.organizers_card);
        slide.setInterpolator(new LinearOutSlowInInterpolator());
        getWindow().setEnterTransition(slide);
        getWindow().setExitTransition(slide);
        getWindow().setReenterTransition(slide);

        setupEnterAnimation();
    }
    super.onStart();
}
 
开发者ID:TejasBhitle,项目名称:Matrix2017,代码行数:25,代码来源:EventDetails.java

示例9: initTabs

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
private void initTabs() {
    AnimationHelper.slideDownIn(mTabLayout)
            .interpolator(new LinearOutSlowInInterpolator())
            .callback(new AnimationHelper.Callback() {
                @Override
                public void onAnimationStart() {

                }

                @Override
                public void onAnimationEnd() {
                    if (getActivity() == null) return;

                    if (Preferences.get(getActivity()).isToolbarShadowEnabled()) {
                        AnimationHelper.fade(getActivity().findViewById(R.id.shadow)).start();
                    }

                    mGetIcons = new IconsLoader().execute();
                }
            })
            .start();
}
 
开发者ID:danimahardhika,项目名称:candybar-library,代码行数:23,代码来源:IconsBaseFragment.java

示例10: onPostExecute

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
@Override
protected void onPostExecute(Boolean aBoolean) {
    super.onPostExecute(aBoolean);
    if (getActivity() == null) return;
    if (getActivity().isFinishing()) return;

    mAsyncTask = null;
    mProgress.setVisibility(View.GONE);
    if (aBoolean) {
        setHasOptionsMenu(true);
        mAdapter = new RequestAdapter(getActivity(),
                requests, mManager.getSpanCount());
        mRecyclerView.setAdapter(mAdapter);

        AnimationHelper.show(mFab)
                .interpolator(new LinearOutSlowInInterpolator())
                .start();

        TapIntroHelper.showRequestIntro(getActivity(), mRecyclerView);
    } else {
        mRecyclerView.setAdapter(null);
        Toast.makeText(getActivity(), R.string.request_appfilter_failed, Toast.LENGTH_LONG).show();
    }
}
 
开发者ID:danimahardhika,项目名称:candybar-library,代码行数:25,代码来源:RequestFragment.java

示例11: hideBottomNavigation

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
/**
 * Hide Bottom Navigation with or without animation
 *
 * @param withAnimation Boolean
 */
public void hideBottomNavigation(boolean withAnimation) {
	if (bottomNavigationBehavior != null) {
		bottomNavigationBehavior.hideView(this, bottomNavigationHeight, withAnimation);
	} else if (getParent() instanceof CoordinatorLayout) {
		//TODO
		needHideBottomNavigation = true;
		hideBottomNavigationWithAnimation = withAnimation;
	} else {
		// Hide bottom navigation
		ViewCompat.animate(this)
				.translationY(bottomNavigationHeight)
				.setInterpolator(new LinearOutSlowInInterpolator())
				.setDuration(withAnimation ? 300 : 0)
				.start();
	}
}
 
开发者ID:Ztiany,项目名称:SystemBarTint,代码行数:22,代码来源:AHBottomNavigation.java

示例12: initInterpolations

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
private void initInterpolations() {
    ArrayList<Class> interpolatorList = new ArrayList<Class>() {{
        add(FastOutSlowInInterpolator.class);
        add(BounceInterpolator.class);
        add(LinearInterpolator.class);
        add(DecelerateInterpolator.class);
        add(CycleInterpolator.class);
        add(AnticipateInterpolator.class);
        add(AccelerateDecelerateInterpolator.class);
        add(AccelerateInterpolator.class);
        add(AnticipateOvershootInterpolator.class);
        add(FastOutLinearInInterpolator.class);
        add(LinearOutSlowInInterpolator.class);
        add(OvershootInterpolator.class);
    }};

    try {
        interpolatorSelector = (Interpolator) interpolatorList.get(animateSelector).newInstance();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
 
开发者ID:ceryle,项目名称:SegmentedButton,代码行数:23,代码来源:SegmentedButtonGroup.java

示例13: showPlaceFlag

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
/**
 * Show the fab and add the ability to place a flag.
 */
private void showPlaceFlag() {
    // if we have set the visibility to invisible (as we do in onCreate), we should put this
    // below the screen
    if (mPlaceFlagButton.getVisibility() == View.INVISIBLE) {
        mPlaceFlagButton.setTranslationY(
                mPlaceFlagButton.getHeight() + mPlaceFlagButtonMarginBottom
        );

        mPlaceFlagButton.setVisibility(View.VISIBLE);
    }

    mPlaceFlagButton
            .animate()
            .translationY(0)
            .setDuration(150)
            .setInterpolator(new LinearOutSlowInInterpolator())
            .start();

    mCannotCaptureTextView.setVisibility(View.VISIBLE);

    mFlagButtonIsShown = true;
}
 
开发者ID:BloopApp,项目名称:Bloop,代码行数:26,代码来源:BloopActivity.java

示例14: hideBottomNavigation

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
/**
 * Hide Bottom Navigation with or without animation
 *
 * @param withAnimation Boolean
 */
public void hideBottomNavigation(boolean withAnimation) {
	if (bottomNavigationBehavior != null) {
		bottomNavigationBehavior.hideView(this, bottomNavigationHeight, withAnimation);
	} else if (getParent() instanceof CoordinatorLayout) {
		needHideBottomNavigation = true;
		hideBottomNavigationWithAnimation = withAnimation;
	} else {
		// Hide bottom navigation
		ViewCompat.animate(this)
				.translationY(bottomNavigationHeight)
				.setInterpolator(new LinearOutSlowInInterpolator())
				.setDuration(withAnimation ? 300 : 0)
				.start();
	}
}
 
开发者ID:RockyQu,项目名称:MVPFrames,代码行数:21,代码来源:BottomNavigation.java

示例15: hide

import android.support.v4.view.animation.LinearOutSlowInInterpolator; //导入依赖的package包/类
public void hide(boolean withAnimation) {
    if (mHidden) {
        return;
    }

    mHidden = true;
    if (mState == STATE_EXPANDED) {
        mState = STATE_COLLAPSED;
        mCurrentExpandProgress = 0;
        mHoverItemIndex = -1;
        invalidate();
    }
    ViewCompat.animate(this)
            .translationY(mCollapseRadius)
            .setInterpolator(new LinearOutSlowInInterpolator())
            .setDuration(withAnimation ? 200 : 0)
            .start();
}
 
开发者ID:gjiazhe,项目名称:MultiChoicesCircleButton,代码行数:19,代码来源:MultiChoicesCircleButton.java


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