当前位置: 首页>>代码示例>>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;未经允许,请勿转载。