當前位置: 首頁>>代碼示例>>Java>>正文


Java ViewPropertyAnimatorCompat.y方法代碼示例

本文整理匯總了Java中android.support.v4.view.ViewPropertyAnimatorCompat.y方法的典型用法代碼示例。如果您正苦於以下問題:Java ViewPropertyAnimatorCompat.y方法的具體用法?Java ViewPropertyAnimatorCompat.y怎麽用?Java ViewPropertyAnimatorCompat.y使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.support.v4.view.ViewPropertyAnimatorCompat的用法示例。


在下文中一共展示了ViewPropertyAnimatorCompat.y方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: finishRefreshing

import android.support.v4.view.ViewPropertyAnimatorCompat; //導入方法依賴的package包/類
public void finishRefreshing() {
    if (mChildView != null) {
        ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = ViewCompat.animate(mChildView);
        viewPropertyAnimatorCompat.setDuration(200);
        viewPropertyAnimatorCompat.y(ViewCompat.getTranslationY(mChildView));
        viewPropertyAnimatorCompat.translationY(0);
        viewPropertyAnimatorCompat.setInterpolator(new DecelerateInterpolator());
        viewPropertyAnimatorCompat.start();

        if (mMaterialHeaderView != null) {
            mMaterialHeaderView.onComplete(MaterialRefreshLayout.this);
        } else if (mSunLayout != null) {
            mSunLayout.onComplete(MaterialRefreshLayout.this);
        }

        if (refreshListener != null) {
            refreshListener.onfinish();
        }
    }
    isRefreshing = false;
    progressValue = 0;
}
 
開發者ID:smuyyh,項目名稱:SprintNBA,代碼行數:23,代碼來源:MaterialRefreshLayout.java

示例2: finishRefreshing

import android.support.v4.view.ViewPropertyAnimatorCompat; //導入方法依賴的package包/類
public void finishRefreshing() {
    if (mChildView != null) {
        ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = ViewCompat.animate(mChildView);
        viewPropertyAnimatorCompat.setDuration(200);
        viewPropertyAnimatorCompat.y(ViewCompat.getTranslationY(mChildView));
        viewPropertyAnimatorCompat.translationY(0);
        viewPropertyAnimatorCompat.setInterpolator(new DecelerateInterpolator());
        viewPropertyAnimatorCompat.start();

        if (materialHeadView != null) {
            materialHeadView.onComlete(MaterialRefreshLayout.this);
        }

        if (refreshListener != null) {
            refreshListener.onfinish();
        }
    }
    isRefreshing = false;
    progressValue = 0;
    setProgressValue(0);
}
 
開發者ID:duguju,項目名稱:MousePaintYzz,代碼行數:22,代碼來源:MaterialRefreshLayout.java

示例3: finishRefreshing

import android.support.v4.view.ViewPropertyAnimatorCompat; //導入方法依賴的package包/類
public void finishRefreshing() {
    if (mChildView != null) {
        ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = ViewCompat.animate(mChildView);
        viewPropertyAnimatorCompat.setDuration(200);
        viewPropertyAnimatorCompat.y(ViewCompat.getTranslationY(mChildView));
        viewPropertyAnimatorCompat.translationY(0);
        viewPropertyAnimatorCompat.setInterpolator(new DecelerateInterpolator());
        viewPropertyAnimatorCompat.start();

        if (mMaterialHeaderView != null) {
            mMaterialHeaderView.onComlete(MaterialRefreshLayout.this);
        } else if (mSunLayout != null) {
            mSunLayout.onComlete(MaterialRefreshLayout.this);
        }

        if (refreshListener != null) {
            refreshListener.onfinish();
        }
    }
    isRefreshing = false;
    progressValue = 0;
}
 
開發者ID:bitkylin,項目名稱:BitkyShop,代碼行數:23,代碼來源:MaterialRefreshLayout.java

示例4: finishRefreshing

import android.support.v4.view.ViewPropertyAnimatorCompat; //導入方法依賴的package包/類
public void finishRefreshing() {
    if (mChildView != null) {
        ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = ViewCompat.animate(mChildView);
        viewPropertyAnimatorCompat.setDuration(200);
        viewPropertyAnimatorCompat.y(ViewCompat.getTranslationY(mChildView));
        viewPropertyAnimatorCompat.translationY(0);
        viewPropertyAnimatorCompat.setInterpolator(new DecelerateInterpolator());
        viewPropertyAnimatorCompat.start();

        if (materialHeadView != null) {
            materialHeadView.onComlete(PulltoRefreshLayout.this);
        }

        if (refreshListener != null) {
            refreshListener.onfinish();
        }
    }
    isRefreshing = false;
    progressValue = 0;
    setProgressValue(0);
}
 
開發者ID:skyxin888,項目名稱:PulltoRefreshLayout,代碼行數:22,代碼來源:PulltoRefreshLayout.java

示例5: closeMenuing

import android.support.v4.view.ViewPropertyAnimatorCompat; //導入方法依賴的package包/類
private void closeMenuing() {
    if (mChildView != null) {
        ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = ViewCompat.animate(mChildView);
        viewPropertyAnimatorCompat.setDuration(200);
        viewPropertyAnimatorCompat.y(ViewCompat.getTranslationY(mChildView));
        viewPropertyAnimatorCompat.translationY(0);
        viewPropertyAnimatorCompat.setInterpolator(new DecelerateInterpolator());
        viewPropertyAnimatorCompat.start();
    }
    isOpenMenu = false;
}
 
開發者ID:zongkaili,項目名稱:MenuSet,代碼行數:12,代碼來源:PerseiLayout.java


注:本文中的android.support.v4.view.ViewPropertyAnimatorCompat.y方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。