Java Code Examples for android.view.animation.LayoutAnimationController#setInterpolator()

The following examples show how to use android.view.animation.LayoutAnimationController#setInterpolator() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActionSheetDialog.java    From AutoTest with MIT License 5 votes vote down vote up
private void init() {
    widthScale(0.95f);
    /** LayoutAnimation */
    TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF,
            0f, Animation.RELATIVE_TO_SELF, 6f, Animation.RELATIVE_TO_SELF, 0);
    animation.setInterpolator(new DecelerateInterpolator());
    animation.setDuration(350);
    animation.setStartOffset(150);

    mLac = new LayoutAnimationController(animation, 0.12f);
    mLac.setInterpolator(new DecelerateInterpolator());
}
 
Example 2
Source File: SuperDialog.java    From SuperDialog with Apache License 2.0 5 votes vote down vote up
private LayoutAnimationController getLayoutAnimation() {
    TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 2f, Animation.RELATIVE_TO_SELF,
            0f, Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF, 0);
    animation.setInterpolator(new DecelerateInterpolator());
    animation.setDuration(550);
    LayoutAnimationController layoutAnimationController = new LayoutAnimationController(animation, 0.12f);
    layoutAnimationController.setInterpolator(new DecelerateInterpolator());
    return layoutAnimationController;
}
 
Example 3
Source File: ActionSheetDialog.java    From RecordVideo with Apache License 2.0 5 votes vote down vote up
private void init() {
    widthScale(0.95f);
    /** LayoutAnimation */
    TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF,
            0f, Animation.RELATIVE_TO_SELF, 6f, Animation.RELATIVE_TO_SELF, 0);
    animation.setInterpolator(new DecelerateInterpolator());
    animation.setDuration(350);
    animation.setStartOffset(150);

    mLac = new LayoutAnimationController(animation, 0.12f);
    mLac.setInterpolator(new DecelerateInterpolator());
}
 
Example 4
Source File: ActionSheetDialog.java    From SprintNBA with Apache License 2.0 5 votes vote down vote up
private void init() {
    widthScale(0.95f);
    /** LayoutAnimation */
    TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF,
            0f, Animation.RELATIVE_TO_SELF, 6f, Animation.RELATIVE_TO_SELF, 0);
    animation.setInterpolator(new DecelerateInterpolator());
    animation.setDuration(350);
    animation.setStartOffset(150);

    mLac = new LayoutAnimationController(animation, 0.12f);
    mLac.setInterpolator(new DecelerateInterpolator());
}
 
Example 5
Source File: NormalListDialog.java    From SprintNBA with Apache License 2.0 5 votes vote down vote up
private void init() {
    widthScale(0.8f);

    /** LayoutAnimation */
    TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 2f, Animation.RELATIVE_TO_SELF,
            0f, Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF, 0);
    animation.setInterpolator(new DecelerateInterpolator());
    animation.setDuration(550);

    mLac = new LayoutAnimationController(animation, 0.12f);
    mLac.setInterpolator(new DecelerateInterpolator());
}
 
Example 6
Source File: WorkSpaceActivity.java    From ThinkMap with Apache License 2.0 5 votes vote down vote up
private void initListViewAnim() {
    Animation animation = AnimationUtils.loadAnimation(this, R.anim.right_in);
    LayoutAnimationController controller = new LayoutAnimationController(animation);
    controller.setDelay(0.3f);
    controller.setOrder(0);
    controller.setInterpolator(new EaseCubicInterpolator(0.47f, 0.01f, 0.44f, 0.99f));
    rcvCurrentFiles.setLayoutAnimation(controller);
}
 
Example 7
Source File: ActionSheetDialog.java    From FlycoDialog_Master with MIT License 5 votes vote down vote up
private void init() {
    widthScale(0.95f);
    /** LayoutAnimation */
    TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF,
            0f, Animation.RELATIVE_TO_SELF, 6f, Animation.RELATIVE_TO_SELF, 0);
    animation.setInterpolator(new DecelerateInterpolator());
    animation.setDuration(350);
    animation.setStartOffset(150);

    mLac = new LayoutAnimationController(animation, 0.12f);
    mLac.setInterpolator(new DecelerateInterpolator());
}
 
Example 8
Source File: NormalListDialog.java    From FlycoDialog_Master with MIT License 5 votes vote down vote up
private void init() {
    widthScale(0.8f);

    /** LayoutAnimation */
    TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 2f, Animation.RELATIVE_TO_SELF,
            0f, Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF, 0);
    animation.setInterpolator(new DecelerateInterpolator());
    animation.setDuration(550);

    mLac = new LayoutAnimationController(animation, 0.12f);
    mLac.setInterpolator(new DecelerateInterpolator());
}
 
Example 9
Source File: MainUIActivity.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public void listAnim()
{
    LayoutAnimationController layoutanimationcontroller = new LayoutAnimationController(AnimationUtils.loadAnimation(this, 0x7f040008));
    layoutanimationcontroller.setOrder(0);
    layoutanimationcontroller.setInterpolator(new DecelerateInterpolator());
    layoutanimationcontroller.setDelay(0.5F);
    G.setLayoutAnimation(layoutanimationcontroller);
}