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


Java EdgeEffect.isFinished方法代碼示例

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


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

示例1: drawEdgeEffect

import android.widget.EdgeEffect; //導入方法依賴的package包/類
private void drawEdgeEffect(Canvas canvas, EdgeEffect edgeEffect, int degrees) {

        if (canvas == null || edgeEffect == null || (degrees != 90 && degrees != 270)) {
            return;
        }

        if(!edgeEffect.isFinished()) {
            final int restoreCount = canvas.getSaveCount();
            final int width = getWidth();
            final int height = getHeight();

            canvas.rotate(degrees);

            if (degrees == 270) {
                canvas.translate(-height, Math.max(0, getScrollX()));
            } else { // 90
                canvas.translate(0, -(Math.max(getScrollRange(), getScaleX()) + width));
            }

            edgeEffect.setSize(height, width);
            if(edgeEffect.draw(canvas)) {
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
                    postInvalidateOnAnimation();
                } else {
                    postInvalidate();
                }
            }

            canvas.restoreToCount(restoreCount);
        }

    }
 
開發者ID:iOnesmile,項目名稱:CustomEQView,代碼行數:33,代碼來源:HorizontalPicker.java

示例2: setVelocity

import android.widget.EdgeEffect; //導入方法依賴的package包/類
@Override
public void setVelocity(final float velocity, final Axis axis) {
    final EdgeEffect edge = getEdgeForAxisAndSide(axis, velocity);

    // If we're showing overscroll already, start fading it out.
    if (!edge.isFinished()) {
        edge.onRelease();
    } else {
        // Otherwise, show an absorb effect
        edge.onAbsorb((int)velocity);
    }

    invalidate();
}
 
開發者ID:jrconlin,項目名稱:mc_backup,代碼行數:15,代碼來源:OverscrollEdgeEffect.java

示例3: onRelease

import android.widget.EdgeEffect; //導入方法依賴的package包/類
public static boolean onRelease(Object edgeEffect) {
    EdgeEffect eff = (EdgeEffect) edgeEffect;
    eff.onRelease();
    return eff.isFinished();
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:6,代碼來源:EdgeEffectCompatIcs.java

示例4: m491c

import android.widget.EdgeEffect; //導入方法依賴的package包/類
public static boolean m491c(Object obj) {
    EdgeEffect edgeEffect = (EdgeEffect) obj;
    edgeEffect.onRelease();
    return edgeEffect.isFinished();
}
 
開發者ID:Qwaz,項目名稱:solved-hacking-problem,代碼行數:6,代碼來源:C0070i.java

示例5: m1594b

import android.widget.EdgeEffect; //導入方法依賴的package包/類
public static boolean m1594b(Object obj) {
    EdgeEffect edgeEffect = (EdgeEffect) obj;
    edgeEffect.onRelease();
    return edgeEffect.isFinished();
}
 
開發者ID:Qwaz,項目名稱:solved-hacking-problem,代碼行數:6,代碼來源:C0197x.java

示例6: onRelease

import android.widget.EdgeEffect; //導入方法依賴的package包/類
public static boolean onRelease(Object edgeEffect) {
	EdgeEffect eff = (EdgeEffect) edgeEffect;
	eff.onRelease();
	return eff.isFinished();
}
 
開發者ID:fython-tools,項目名稱:NyanpasuTile,代碼行數:6,代碼來源:EdgeEffectCompatIcs.java

示例7: onRelease

import android.widget.EdgeEffect; //導入方法依賴的package包/類
public final boolean onRelease(Object paramObject)
{
  EdgeEffect localEdgeEffect = (EdgeEffect)paramObject;
  localEdgeEffect.onRelease();
  return localEdgeEffect.isFinished();
}
 
開發者ID:ChiangC,項目名稱:FMTech,代碼行數:7,代碼來源:EdgeEffectCompat.java

示例8: c

import android.widget.EdgeEffect; //導入方法依賴的package包/類
public static boolean c(Object obj)
{
    EdgeEffect edgeeffect = (EdgeEffect)obj;
    edgeeffect.onRelease();
    return edgeeffect.isFinished();
}
 
開發者ID:vishnudevk,項目名稱:MiBandDecompiled,代碼行數:7,代碼來源:m.java

示例9:

import android.widget.EdgeEffect; //導入方法依賴的package包/類
public static boolean ˎ(Object paramObject)
{
  EdgeEffect localEdgeEffect = (EdgeEffect)paramObject;
  localEdgeEffect.onRelease();
  return localEdgeEffect.isFinished();
}
 
開發者ID:mmmsplay10,項目名稱:QuizUpWinner,代碼行數:7,代碼來源:·íΩ.java

示例10: c

import android.widget.EdgeEffect; //導入方法依賴的package包/類
public final boolean c(Object paramObject)
{
  EdgeEffect localEdgeEffect = (EdgeEffect)paramObject;
  localEdgeEffect.onRelease();
  return localEdgeEffect.isFinished();
}
 
開發者ID:isnuryusuf,項目名稱:ingress-indonesia-dev,代碼行數:7,代碼來源:g.java


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