本文整理匯總了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();
}