本文整理汇总了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);
}
}
示例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();
}
示例3: onRelease
import android.widget.EdgeEffect; //导入方法依赖的package包/类
public static boolean onRelease(Object edgeEffect) {
EdgeEffect eff = (EdgeEffect) edgeEffect;
eff.onRelease();
return eff.isFinished();
}
示例4: m491c
import android.widget.EdgeEffect; //导入方法依赖的package包/类
public static boolean m491c(Object obj) {
EdgeEffect edgeEffect = (EdgeEffect) obj;
edgeEffect.onRelease();
return edgeEffect.isFinished();
}
示例5: m1594b
import android.widget.EdgeEffect; //导入方法依赖的package包/类
public static boolean m1594b(Object obj) {
EdgeEffect edgeEffect = (EdgeEffect) obj;
edgeEffect.onRelease();
return edgeEffect.isFinished();
}
示例6: onRelease
import android.widget.EdgeEffect; //导入方法依赖的package包/类
public static boolean onRelease(Object edgeEffect) {
EdgeEffect eff = (EdgeEffect) edgeEffect;
eff.onRelease();
return eff.isFinished();
}
示例7: onRelease
import android.widget.EdgeEffect; //导入方法依赖的package包/类
public final boolean onRelease(Object paramObject)
{
EdgeEffect localEdgeEffect = (EdgeEffect)paramObject;
localEdgeEffect.onRelease();
return localEdgeEffect.isFinished();
}
示例8: c
import android.widget.EdgeEffect; //导入方法依赖的package包/类
public static boolean c(Object obj)
{
EdgeEffect edgeeffect = (EdgeEffect)obj;
edgeeffect.onRelease();
return edgeeffect.isFinished();
}
示例9:
import android.widget.EdgeEffect; //导入方法依赖的package包/类
public static boolean ˎ(Object paramObject)
{
EdgeEffect localEdgeEffect = (EdgeEffect)paramObject;
localEdgeEffect.onRelease();
return localEdgeEffect.isFinished();
}
示例10: c
import android.widget.EdgeEffect; //导入方法依赖的package包/类
public final boolean c(Object paramObject)
{
EdgeEffect localEdgeEffect = (EdgeEffect)paramObject;
localEdgeEffect.onRelease();
return localEdgeEffect.isFinished();
}