.class public Lcom/weigan/loopview/LoopView; .super Landroid/view/View; .source "LoopView.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/weigan/loopview/LoopView$ACTION;, Lcom/weigan/loopview/LoopView$IndexString; } .end annotation # static fields .field private static final DEFAULT_LINE_SPACE:F = 1.0f .field private static final DEFAULT_TEXT_SIZE:I .field private static final DEFAULT_VISIBIE_ITEMS:I = 0x9 .field public static final SCROLL_STATE_DRAGGING:I = 0x2 .field public static final SCROLL_STATE_IDLE:I = 0x0 .field public static final SCROLL_STATE_SCROLLING:I = 0x3 .field public static final SCROLL_STATE_SETTING:I = 0x1 # instance fields .field centerTextColor:I .field change:I .field private context:Landroid/content/Context; .field currentScrollState:I .field dividerColor:I .field drawingStrings:Ljava/util/HashMap; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/HashMap<", "Ljava/lang/Integer;", "Lcom/weigan/loopview/LoopView$IndexString;", ">;" } .end annotation .end field .field firstLineY:I .field private flingGestureDetector:Landroid/view/GestureDetector; .field halfCircumference:I .field handler:Landroid/os/Handler; .field initPosition:I .field isLoop:Z .field itemTextHeight:I .field items:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Lcom/weigan/loopview/LoopView$IndexString;", ">;" } .end annotation .end field .field itemsVisibleCount:I .field lastScrollState:I .field lineSpacingMultiplier:F .field mExecutor:Ljava/util/concurrent/ScheduledExecutorService; .field private mFuture:Ljava/util/concurrent/ScheduledFuture; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/concurrent/ScheduledFuture<", "*>;" } .end annotation .end field .field private mOffset:I .field mOnItemScrollListener:Lcom/weigan/loopview/OnItemScrollListener; .field measuredHeight:I .field measuredWidth:I .field onItemSelectedListener:Lcom/weigan/loopview/OnItemSelectedListener; .field outerTextColor:I .field private paddingLeft:I .field private paddingRight:I .field private paintCenterText:Landroid/graphics/Paint; .field private paintIndicator:Landroid/graphics/Paint; .field private paintOuterText:Landroid/graphics/Paint; .field preCurrentIndex:I .field private previousY:F .field radius:I .field private scaleX:F .field secondLineY:I .field startTime:J .field private tempRect:Landroid/graphics/Rect; .field textHeight:I .field textSize:I .field totalScrollY:I .field private typeface:Landroid/graphics/Typeface; # direct methods .method static constructor ()V .registers 2 .line 32 invoke-static {}, Landroid/content/res/Resources;->getSystem()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics; move-result-object v0 iget v0, v0, Landroid/util/DisplayMetrics;->density:F const/high16 v1, 0x41700000 # 15.0f mul-float/2addr v0, v1 float-to-int v0, v0 sput v0, Lcom/weigan/loopview/LoopView;->DEFAULT_TEXT_SIZE:I return-void .end method .method public constructor (Landroid/content/Context;)V .registers 4 .line 163 invoke-direct {p0, p1}, Landroid/view/View;->(Landroid/content/Context;)V const v0, 0x3f866666 # 1.05f .line 30 iput v0, p0, Lcom/weigan/loopview/LoopView;->scaleX:F const/4 v0, 0x0 .line 43 iput v0, p0, Lcom/weigan/loopview/LoopView;->lastScrollState:I const/4 v1, 0x1 .line 44 iput v1, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I .line 58 invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService; move-result-object v1 iput-object v1, p0, Lcom/weigan/loopview/LoopView;->mExecutor:Ljava/util/concurrent/ScheduledExecutorService; .line 100 iput v0, p0, Lcom/weigan/loopview/LoopView;->mOffset:I const-wide/16 v0, 0x0 .line 102 iput-wide v0, p0, Lcom/weigan/loopview/LoopView;->startTime:J .line 104 new-instance v0, Landroid/graphics/Rect; invoke-direct {v0}, Landroid/graphics/Rect;->()V iput-object v0, p0, Lcom/weigan/loopview/LoopView;->tempRect:Landroid/graphics/Rect; .line 108 sget-object v0, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface; iput-object v0, p0, Lcom/weigan/loopview/LoopView;->typeface:Landroid/graphics/Typeface; const/4 v0, 0x0 .line 164 invoke-direct {p0, p1, v0}, Lcom/weigan/loopview/LoopView;->initLoopView(Landroid/content/Context;Landroid/util/AttributeSet;)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;)V .registers 5 .line 168 invoke-direct {p0, p1, p2}, Landroid/view/View;->(Landroid/content/Context;Landroid/util/AttributeSet;)V const v0, 0x3f866666 # 1.05f .line 30 iput v0, p0, Lcom/weigan/loopview/LoopView;->scaleX:F const/4 v0, 0x0 .line 43 iput v0, p0, Lcom/weigan/loopview/LoopView;->lastScrollState:I const/4 v1, 0x1 .line 44 iput v1, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I .line 58 invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService; move-result-object v1 iput-object v1, p0, Lcom/weigan/loopview/LoopView;->mExecutor:Ljava/util/concurrent/ScheduledExecutorService; .line 100 iput v0, p0, Lcom/weigan/loopview/LoopView;->mOffset:I const-wide/16 v0, 0x0 .line 102 iput-wide v0, p0, Lcom/weigan/loopview/LoopView;->startTime:J .line 104 new-instance v0, Landroid/graphics/Rect; invoke-direct {v0}, Landroid/graphics/Rect;->()V iput-object v0, p0, Lcom/weigan/loopview/LoopView;->tempRect:Landroid/graphics/Rect; .line 108 sget-object v0, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface; iput-object v0, p0, Lcom/weigan/loopview/LoopView;->typeface:Landroid/graphics/Typeface; .line 169 invoke-direct {p0, p1, p2}, Lcom/weigan/loopview/LoopView;->initLoopView(Landroid/content/Context;Landroid/util/AttributeSet;)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;I)V .registers 6 .line 173 invoke-direct {p0, p1, p2, p3}, Landroid/view/View;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V const p3, 0x3f866666 # 1.05f .line 30 iput p3, p0, Lcom/weigan/loopview/LoopView;->scaleX:F const/4 p3, 0x0 .line 43 iput p3, p0, Lcom/weigan/loopview/LoopView;->lastScrollState:I const/4 v0, 0x1 .line 44 iput v0, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I .line 58 invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService; move-result-object v0 iput-object v0, p0, Lcom/weigan/loopview/LoopView;->mExecutor:Ljava/util/concurrent/ScheduledExecutorService; .line 100 iput p3, p0, Lcom/weigan/loopview/LoopView;->mOffset:I const-wide/16 v0, 0x0 .line 102 iput-wide v0, p0, Lcom/weigan/loopview/LoopView;->startTime:J .line 104 new-instance p3, Landroid/graphics/Rect; invoke-direct {p3}, Landroid/graphics/Rect;->()V iput-object p3, p0, Lcom/weigan/loopview/LoopView;->tempRect:Landroid/graphics/Rect; .line 108 sget-object p3, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface; iput-object p3, p0, Lcom/weigan/loopview/LoopView;->typeface:Landroid/graphics/Typeface; .line 174 invoke-direct {p0, p1, p2}, Lcom/weigan/loopview/LoopView;->initLoopView(Landroid/content/Context;Landroid/util/AttributeSet;)V return-void .end method .method private changeScrollState(I)V .registers 4 .line 338 iget v0, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I if-eq p1, v0, :cond_14 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->handler:Landroid/os/Handler; const/16 v1, 0x7d1 invoke-virtual {v0, v1}, Landroid/os/Handler;->hasMessages(I)Z move-result v0 if-nez v0, :cond_14 .line 339 iget v0, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I iput v0, p0, Lcom/weigan/loopview/LoopView;->lastScrollState:I .line 340 iput p1, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I :cond_14 return-void .end method .method private drawCenterText(Landroid/graphics/Canvas;I)V .registers 6 .line 570 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/weigan/loopview/LoopView$IndexString; # getter for: Lcom/weigan/loopview/LoopView$IndexString;->string:Ljava/lang/String; invoke-static {v0}, Lcom/weigan/loopview/LoopView$IndexString;->access$000(Lcom/weigan/loopview/LoopView$IndexString;)Ljava/lang/String; move-result-object v0 iget-object v1, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p2 invoke-virtual {v1, p2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p2 check-cast p2, Lcom/weigan/loopview/LoopView$IndexString; # getter for: Lcom/weigan/loopview/LoopView$IndexString;->string:Ljava/lang/String; invoke-static {p2}, Lcom/weigan/loopview/LoopView$IndexString;->access$000(Lcom/weigan/loopview/LoopView$IndexString;)Ljava/lang/String; move-result-object p2 iget-object v1, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; iget-object v2, p0, Lcom/weigan/loopview/LoopView;->tempRect:Landroid/graphics/Rect; invoke-direct {p0, p2, v1, v2}, Lcom/weigan/loopview/LoopView;->getTextX(Ljava/lang/String;Landroid/graphics/Paint;Landroid/graphics/Rect;)I move-result p2 int-to-float p2, p2 .line 571 invoke-direct {p0}, Lcom/weigan/loopview/LoopView;->getDrawingY()I move-result v1 int-to-float v1, v1 iget-object v2, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; .line 570 invoke-virtual {p1, v0, p2, v1, v2}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V return-void .end method .method private drawOuterText(Landroid/graphics/Canvas;I)V .registers 6 .line 565 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/weigan/loopview/LoopView$IndexString; # getter for: Lcom/weigan/loopview/LoopView$IndexString;->string:Ljava/lang/String; invoke-static {v0}, Lcom/weigan/loopview/LoopView$IndexString;->access$000(Lcom/weigan/loopview/LoopView$IndexString;)Ljava/lang/String; move-result-object v0 iget-object v1, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p2 invoke-virtual {v1, p2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p2 check-cast p2, Lcom/weigan/loopview/LoopView$IndexString; # getter for: Lcom/weigan/loopview/LoopView$IndexString;->string:Ljava/lang/String; invoke-static {p2}, Lcom/weigan/loopview/LoopView$IndexString;->access$000(Lcom/weigan/loopview/LoopView$IndexString;)Ljava/lang/String; move-result-object p2 iget-object v1, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; iget-object v2, p0, Lcom/weigan/loopview/LoopView;->tempRect:Landroid/graphics/Rect; invoke-direct {p0, p2, v1, v2}, Lcom/weigan/loopview/LoopView;->getTextX(Ljava/lang/String;Landroid/graphics/Paint;Landroid/graphics/Rect;)I move-result p2 int-to-float p2, p2 .line 566 invoke-direct {p0}, Lcom/weigan/loopview/LoopView;->getDrawingY()I move-result v1 int-to-float v1, v1 iget-object v2, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; .line 565 invoke-virtual {p1, v0, p2, v1, v2}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V return-void .end method .method private getDrawingY()I .registers 3 .line 576 iget v0, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I iget v1, p0, Lcom/weigan/loopview/LoopView;->textHeight:I if-le v0, v1, :cond_b sub-int v1, v0, v1 .line 577 div-int/lit8 v1, v1, 0x2 sub-int/2addr v0, v1 :cond_b return v0 .end method .method private getTextX(Ljava/lang/String;Landroid/graphics/Paint;Landroid/graphics/Rect;)I .registers 6 const/4 v0, 0x0 .line 586 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v1 invoke-virtual {p2, p1, v0, v1, p3}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V .line 587 invoke-virtual {p3}, Landroid/graphics/Rect;->width()I move-result p1 int-to-float p1, p1 .line 588 iget p2, p0, Lcom/weigan/loopview/LoopView;->scaleX:F mul-float/2addr p1, p2 float-to-int p1, p1 .line 589 iget p2, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I iget p3, p0, Lcom/weigan/loopview/LoopView;->paddingLeft:I sub-int/2addr p2, p3 sub-int/2addr p2, p1 div-int/lit8 p2, p2, 0x2 add-int/2addr p2, p3 return p2 .end method .method private initLoopView(Landroid/content/Context;Landroid/util/AttributeSet;)V .registers 5 .line 178 iput-object p1, p0, Lcom/weigan/loopview/LoopView;->context:Landroid/content/Context; .line 179 new-instance v0, Lcom/weigan/loopview/MessageHandler; invoke-direct {v0, p0}, Lcom/weigan/loopview/MessageHandler;->(Lcom/weigan/loopview/LoopView;)V iput-object v0, p0, Lcom/weigan/loopview/LoopView;->handler:Landroid/os/Handler; .line 180 new-instance v0, Landroid/view/GestureDetector; new-instance v1, Lcom/weigan/loopview/LoopViewGestureListener; invoke-direct {v1, p0}, Lcom/weigan/loopview/LoopViewGestureListener;->(Lcom/weigan/loopview/LoopView;)V invoke-direct {v0, p1, v1}, Landroid/view/GestureDetector;->(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V iput-object v0, p0, Lcom/weigan/loopview/LoopView;->flingGestureDetector:Landroid/view/GestureDetector; const/4 v1, 0x0 .line 181 invoke-virtual {v0, v1}, Landroid/view/GestureDetector;->setIsLongpressEnabled(Z)V .line 183 sget-object v0, Lcom/weigan/loopview/R$styleable;->LoopView:[I invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray; move-result-object p1 if-eqz p1, :cond_83 .line 185 sget p2, Lcom/weigan/loopview/R$styleable;->LoopView_awv_textsize:I sget v0, Lcom/weigan/loopview/LoopView;->DEFAULT_TEXT_SIZE:I invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I move-result p2 iput p2, p0, Lcom/weigan/loopview/LoopView;->textSize:I .line 186 invoke-static {}, Landroid/content/res/Resources;->getSystem()Landroid/content/res/Resources; move-result-object p2 invoke-virtual {p2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics; move-result-object p2 iget p2, p2, Landroid/util/DisplayMetrics;->density:F iget v0, p0, Lcom/weigan/loopview/LoopView;->textSize:I int-to-float v0, v0 mul-float/2addr p2, v0 float-to-int p2, p2 iput p2, p0, Lcom/weigan/loopview/LoopView;->textSize:I .line 187 sget p2, Lcom/weigan/loopview/R$styleable;->LoopView_awv_lineSpace:I const/high16 v0, 0x3f800000 # 1.0f invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getFloat(IF)F move-result p2 iput p2, p0, Lcom/weigan/loopview/LoopView;->lineSpacingMultiplier:F .line 188 sget p2, Lcom/weigan/loopview/R$styleable;->LoopView_awv_centerTextColor:I const v0, -0xcececf invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I move-result p2 iput p2, p0, Lcom/weigan/loopview/LoopView;->centerTextColor:I .line 189 sget p2, Lcom/weigan/loopview/R$styleable;->LoopView_awv_outerTextColor:I const v0, -0x505051 invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I move-result p2 iput p2, p0, Lcom/weigan/loopview/LoopView;->outerTextColor:I .line 190 sget p2, Lcom/weigan/loopview/R$styleable;->LoopView_awv_dividerTextColor:I const v0, -0x3a3a3b invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I move-result p2 iput p2, p0, Lcom/weigan/loopview/LoopView;->dividerColor:I .line 191 sget p2, Lcom/weigan/loopview/R$styleable;->LoopView_awv_itemsVisibleCount:I const/16 v0, 0x9 .line 192 invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I move-result p2 iput p2, p0, Lcom/weigan/loopview/LoopView;->itemsVisibleCount:I .line 193 rem-int/lit8 p2, p2, 0x2 if-nez p2, :cond_77 .line 194 iput v0, p0, Lcom/weigan/loopview/LoopView;->itemsVisibleCount:I .line 196 :cond_77 sget p2, Lcom/weigan/loopview/R$styleable;->LoopView_awv_isLoop:I const/4 v0, 0x1 invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z move-result p2 iput-boolean p2, p0, Lcom/weigan/loopview/LoopView;->isLoop:Z .line 197 invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V .line 200 :cond_83 new-instance p1, Ljava/util/HashMap; invoke-direct {p1}, Ljava/util/HashMap;->()V iput-object p1, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; .line 201 iput v1, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I const/4 p1, -0x1 .line 202 iput p1, p0, Lcom/weigan/loopview/LoopView;->initPosition:I return-void .end method .method private initPaintsIfPossible()V .registers 4 .line 222 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; const/4 v1, 0x1 if-nez v0, :cond_25 .line 223 new-instance v0, Landroid/graphics/Paint; invoke-direct {v0}, Landroid/graphics/Paint;->()V iput-object v0, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; .line 224 iget v2, p0, Lcom/weigan/loopview/LoopView;->outerTextColor:I invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V .line 225 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V .line 226 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; iget-object v2, p0, Lcom/weigan/loopview/LoopView;->typeface:Landroid/graphics/Typeface; invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface; .line 227 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; iget v2, p0, Lcom/weigan/loopview/LoopView;->textSize:I int-to-float v2, v2 invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTextSize(F)V .line 231 :cond_25 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; if-nez v0, :cond_50 .line 232 new-instance v0, Landroid/graphics/Paint; invoke-direct {v0}, Landroid/graphics/Paint;->()V iput-object v0, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; .line 233 iget v2, p0, Lcom/weigan/loopview/LoopView;->centerTextColor:I invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V .line 234 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V .line 235 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; iget v2, p0, Lcom/weigan/loopview/LoopView;->scaleX:F invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTextScaleX(F)V .line 236 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; iget-object v2, p0, Lcom/weigan/loopview/LoopView;->typeface:Landroid/graphics/Typeface; invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface; .line 237 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; iget v2, p0, Lcom/weigan/loopview/LoopView;->textSize:I int-to-float v2, v2 invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTextSize(F)V .line 240 :cond_50 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintIndicator:Landroid/graphics/Paint; if-nez v0, :cond_65 .line 241 new-instance v0, Landroid/graphics/Paint; invoke-direct {v0}, Landroid/graphics/Paint;->()V iput-object v0, p0, Lcom/weigan/loopview/LoopView;->paintIndicator:Landroid/graphics/Paint; .line 242 iget v2, p0, Lcom/weigan/loopview/LoopView;->dividerColor:I invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V .line 243 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintIndicator:Landroid/graphics/Paint; invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V :cond_65 return-void .end method .method private printMethodStackTrace(Ljava/lang/String;)V .registers 8 .line 323 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Thread;->getStackTrace()[Ljava/lang/StackTraceElement; move-result-object v0 .line 324 new-instance v1, Ljava/lang/StringBuilder; const-string v2, "printMethodStackTrace " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V .line 325 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 326 const-string p1, " " invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 327 array-length p1, v0 add-int/lit8 p1, p1, -0x1 :goto_1a const/4 v2, 0x4 if-lt p1, v2, :cond_46 .line 328 aget-object v3, v0, p1 .line 329 invoke-virtual {v3}, Ljava/lang/StackTraceElement;->getFileName()Ljava/lang/String; move-result-object v4 invoke-virtual {v3}, Ljava/lang/StackTraceElement;->getLineNumber()I move-result v5 invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v5 invoke-virtual {v3}, Ljava/lang/StackTraceElement;->getMethodName()Ljava/lang/String; move-result-object v3 filled-new-array {v4, v5, v3}, [Ljava/lang/Object; move-result-object v3 const-string v4, "%s(%d).%s" invoke-static {v4, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object v3 invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; if-le p1, v2, :cond_43 .line 331 const-string v2, "-->" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_43 add-int/lit8 p1, p1, -0x1 goto :goto_1a .line 334 :cond_46 const-string p1, "printMethodStackTrace" invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I return-void .end method .method private remeasure()V .registers 8 .line 248 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; if-eqz v0, :cond_90 invoke-interface {v0}, Ljava/util/List;->isEmpty()Z move-result v0 if-eqz v0, :cond_c goto/16 :goto_90 .line 252 :cond_c invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getMeasuredWidth()I move-result v0 iput v0, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I .line 254 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getMeasuredHeight()I move-result v0 iput v0, p0, Lcom/weigan/loopview/LoopView;->measuredHeight:I .line 256 iget v1, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I if-eqz v1, :cond_90 if-nez v0, :cond_1f goto :goto_90 .line 260 :cond_1f invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getPaddingLeft()I move-result v0 iput v0, p0, Lcom/weigan/loopview/LoopView;->paddingLeft:I .line 261 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getPaddingRight()I move-result v0 iput v0, p0, Lcom/weigan/loopview/LoopView;->paddingRight:I .line 263 iget v1, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I sub-int/2addr v1, v0 iput v1, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I .line 265 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; const-string v1, "\u661f\u671f" iget-object v2, p0, Lcom/weigan/loopview/LoopView;->tempRect:Landroid/graphics/Rect; const/4 v3, 0x0 const/4 v4, 0x2 invoke-virtual {v0, v1, v3, v4, v2}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V .line 266 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->tempRect:Landroid/graphics/Rect; invoke-virtual {v0}, Landroid/graphics/Rect;->height()I move-result v0 iput v0, p0, Lcom/weigan/loopview/LoopView;->textHeight:I .line 267 iget v0, p0, Lcom/weigan/loopview/LoopView;->measuredHeight:I int-to-double v1, v0 const-wide v5, 0x400921fb54442d18L # Math.PI mul-double/2addr v1, v5 const-wide/high16 v5, 0x4000000000000000L # 2.0 div-double/2addr v1, v5 double-to-int v1, v1 iput v1, p0, Lcom/weigan/loopview/LoopView;->halfCircumference:I int-to-float v1, v1 .line 269 iget v2, p0, Lcom/weigan/loopview/LoopView;->lineSpacingMultiplier:F iget v5, p0, Lcom/weigan/loopview/LoopView;->itemsVisibleCount:I add-int/lit8 v5, v5, -0x1 int-to-float v5, v5 mul-float/2addr v5, v2 div-float/2addr v1, v5 float-to-int v1, v1 iput v1, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I .line 271 div-int/lit8 v5, v0, 0x2 iput v5, p0, Lcom/weigan/loopview/LoopView;->radius:I int-to-float v5, v0 int-to-float v6, v1 mul-float/2addr v6, v2 sub-float/2addr v5, v6 const/high16 v6, 0x40000000 # 2.0f div-float/2addr v5, v6 float-to-int v5, v5 .line 272 iput v5, p0, Lcom/weigan/loopview/LoopView;->firstLineY:I int-to-float v0, v0 int-to-float v1, v1 mul-float/2addr v2, v1 add-float/2addr v0, v2 div-float/2addr v0, v6 float-to-int v0, v0 .line 273 iput v0, p0, Lcom/weigan/loopview/LoopView;->secondLineY:I .line 274 iget v0, p0, Lcom/weigan/loopview/LoopView;->initPosition:I const/4 v1, -0x1 if-ne v0, v1, :cond_8c .line 275 iget-boolean v0, p0, Lcom/weigan/loopview/LoopView;->isLoop:Z if-eqz v0, :cond_8a .line 276 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 add-int/lit8 v0, v0, 0x1 div-int/2addr v0, v4 iput v0, p0, Lcom/weigan/loopview/LoopView;->initPosition:I goto :goto_8c .line 278 :cond_8a iput v3, p0, Lcom/weigan/loopview/LoopView;->initPosition:I .line 282 :cond_8c :goto_8c iget v0, p0, Lcom/weigan/loopview/LoopView;->initPosition:I iput v0, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I :cond_90 :goto_90 return-void .end method # virtual methods .method public cancelFuture()V .registers 3 .line 311 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->mFuture:Ljava/util/concurrent/ScheduledFuture; if-eqz v0, :cond_17 invoke-interface {v0}, Ljava/util/concurrent/ScheduledFuture;->isCancelled()Z move-result v0 if-nez v0, :cond_17 .line 312 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->mFuture:Ljava/util/concurrent/ScheduledFuture; const/4 v1, 0x1 invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z const/4 v0, 0x0 .line 313 iput-object v0, p0, Lcom/weigan/loopview/LoopView;->mFuture:Ljava/util/concurrent/ScheduledFuture; const/4 v0, 0x0 .line 314 invoke-direct {p0, v0}, Lcom/weigan/loopview/LoopView;->changeScrollState(I)V :cond_17 return-void .end method .method public convertData(Ljava/util/List;)Ljava/util/List; .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "Ljava/lang/String;", ">;)", "Ljava/util/List<", "Lcom/weigan/loopview/LoopView$IndexString;", ">;" } .end annotation .line 399 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V const/4 v1, 0x0 .line 400 :goto_6 invoke-interface {p1}, Ljava/util/List;->size()I move-result v2 if-ge v1, v2, :cond_1d .line 401 new-instance v2, Lcom/weigan/loopview/LoopView$IndexString; invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/lang/String; invoke-direct {v2, p0, v1, v3}, Lcom/weigan/loopview/LoopView$IndexString;->(Lcom/weigan/loopview/LoopView;ILjava/lang/String;)V invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z add-int/lit8 v1, v1, 0x1 goto :goto_6 :cond_1d return-object v0 .end method .method public final getSelectedItem()I .registers 2 .line 407 iget v0, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I return v0 .end method .method protected onDraw(Landroid/graphics/Canvas;)V .registers 14 .line 451 invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V .line 452 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; if-eqz v0, :cond_211 invoke-interface {v0}, Ljava/util/List;->isEmpty()Z move-result v0 if-eqz v0, :cond_f goto/16 :goto_211 .line 456 :cond_f iget v0, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I int-to-float v0, v0 iget v1, p0, Lcom/weigan/loopview/LoopView;->lineSpacingMultiplier:F iget v2, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I int-to-float v2, v2 mul-float/2addr v1, v2 div-float/2addr v0, v1 float-to-int v0, v0 iput v0, p0, Lcom/weigan/loopview/LoopView;->change:I .line 457 iget v1, p0, Lcom/weigan/loopview/LoopView;->initPosition:I iget-object v2, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v2}, Ljava/util/List;->size()I move-result v2 rem-int/2addr v0, v2 add-int/2addr v1, v0 iput v1, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I .line 459 iget-boolean v0, p0, Lcom/weigan/loopview/LoopView;->isLoop:Z const/4 v2, 0x0 if-nez v0, :cond_48 if-gez v1, :cond_31 .line 461 iput v2, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I .line 463 :cond_31 iget v0, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I iget-object v1, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v1}, Ljava/util/List;->size()I move-result v1 add-int/lit8 v1, v1, -0x1 if-le v0, v1, :cond_6c .line 464 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 iput v0, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I goto :goto_6c :cond_48 if-gez v1, :cond_55 .line 468 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 iget v1, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I add-int/2addr v0, v1 iput v0, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I .line 470 :cond_55 iget v0, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I iget-object v1, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v1}, Ljava/util/List;->size()I move-result v1 add-int/lit8 v1, v1, -0x1 if-le v0, v1, :cond_6c .line 471 iget v0, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I iget-object v1, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v1}, Ljava/util/List;->size()I move-result v1 sub-int/2addr v0, v1 iput v0, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I .line 475 :cond_6c :goto_6c iget v0, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I int-to-float v0, v0 iget v1, p0, Lcom/weigan/loopview/LoopView;->lineSpacingMultiplier:F iget v3, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I int-to-float v3, v3 mul-float/2addr v1, v3 rem-float/2addr v0, v1 float-to-int v0, v0 move v1, v2 .line 478 :goto_78 iget v3, p0, Lcom/weigan/loopview/LoopView;->itemsVisibleCount:I if-ge v1, v3, :cond_f2 .line 479 iget v4, p0, Lcom/weigan/loopview/LoopView;->preCurrentIndex:I div-int/lit8 v3, v3, 0x2 sub-int/2addr v3, v1 sub-int/2addr v4, v3 .line 480 iget-boolean v3, p0, Lcom/weigan/loopview/LoopView;->isLoop:Z if-eqz v3, :cond_b4 :goto_86 if-gez v4, :cond_90 .line 482 iget-object v3, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v3}, Ljava/util/List;->size()I move-result v3 add-int/2addr v4, v3 goto :goto_86 .line 484 :cond_90 :goto_90 iget-object v3, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v3}, Ljava/util/List;->size()I move-result v3 add-int/lit8 v3, v3, -0x1 if-le v4, v3, :cond_a2 .line 485 iget-object v3, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v3}, Ljava/util/List;->size()I move-result v3 sub-int/2addr v4, v3 goto :goto_90 .line 487 :cond_a2 iget-object v3, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v5 iget-object v6, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v6, v4}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v4 check-cast v4, Lcom/weigan/loopview/LoopView$IndexString; invoke-virtual {v3, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_ef :cond_b4 if-gez v4, :cond_c5 .line 490 iget-object v3, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 new-instance v5, Lcom/weigan/loopview/LoopView$IndexString; invoke-direct {v5, p0}, Lcom/weigan/loopview/LoopView$IndexString;->(Lcom/weigan/loopview/LoopView;)V invoke-virtual {v3, v4, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_ef .line 491 :cond_c5 iget-object v3, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v3}, Ljava/util/List;->size()I move-result v3 add-int/lit8 v3, v3, -0x1 if-le v4, v3, :cond_de .line 493 iget-object v3, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 new-instance v5, Lcom/weigan/loopview/LoopView$IndexString; invoke-direct {v5, p0}, Lcom/weigan/loopview/LoopView$IndexString;->(Lcom/weigan/loopview/LoopView;)V invoke-virtual {v3, v4, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_ef .line 496 :cond_de iget-object v3, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v5 iget-object v6, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v6, v4}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v4 check-cast v4, Lcom/weigan/loopview/LoopView$IndexString; invoke-virtual {v3, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :goto_ef add-int/lit8 v1, v1, 0x1 goto :goto_78 .line 500 :cond_f2 iget v1, p0, Lcom/weigan/loopview/LoopView;->paddingLeft:I int-to-float v4, v1 iget v1, p0, Lcom/weigan/loopview/LoopView;->firstLineY:I int-to-float v5, v1 iget v3, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I int-to-float v6, v3 int-to-float v7, v1 iget-object v8, p0, Lcom/weigan/loopview/LoopView;->paintIndicator:Landroid/graphics/Paint; move-object v3, p1 invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V .line 501 iget v1, p0, Lcom/weigan/loopview/LoopView;->paddingLeft:I int-to-float v4, v1 iget v1, p0, Lcom/weigan/loopview/LoopView;->secondLineY:I int-to-float v5, v1 iget v3, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I int-to-float v6, v3 int-to-float v7, v1 iget-object v8, p0, Lcom/weigan/loopview/LoopView;->paintIndicator:Landroid/graphics/Paint; move-object v3, p1 invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V move v1, v2 .line 504 :goto_113 iget v3, p0, Lcom/weigan/loopview/LoopView;->itemsVisibleCount:I if-ge v1, v3, :cond_1e2 .line 505 invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I .line 506 iget v3, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I int-to-float v3, v3 iget v4, p0, Lcom/weigan/loopview/LoopView;->lineSpacingMultiplier:F mul-float/2addr v3, v4 int-to-float v4, v1 mul-float/2addr v4, v3 int-to-float v5, v0 sub-float/2addr v4, v5 float-to-double v4, v4 const-wide v6, 0x400921fb54442d18L # Math.PI mul-double/2addr v4, v6 .line 507 iget v8, p0, Lcom/weigan/loopview/LoopView;->halfCircumference:I int-to-double v8, v8 div-double/2addr v4, v8 cmpl-double v6, v4, v6 if-gez v6, :cond_1db const-wide/16 v6, 0x0 cmpg-double v6, v4, v6 if-gtz v6, :cond_13b goto/16 :goto_1db .line 511 :cond_13b iget v6, p0, Lcom/weigan/loopview/LoopView;->radius:I int-to-double v6, v6 invoke-static {v4, v5}, Ljava/lang/Math;->cos(D)D move-result-wide v8 iget v10, p0, Lcom/weigan/loopview/LoopView;->radius:I int-to-double v10, v10 mul-double/2addr v8, v10 sub-double/2addr v6, v8 invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D move-result-wide v8 iget v10, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I int-to-double v10, v10 mul-double/2addr v8, v10 const-wide/high16 v10, 0x4000000000000000L # 2.0 div-double/2addr v8, v10 sub-double/2addr v6, v8 double-to-int v6, v6 const/4 v7, 0x0 int-to-float v8, v6 .line 512 invoke-virtual {p1, v7, v8}, Landroid/graphics/Canvas;->translate(FF)V .line 513 invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D move-result-wide v4 double-to-float v4, v4 const/high16 v5, 0x3f800000 # 1.0f invoke-virtual {p1, v5, v4}, Landroid/graphics/Canvas;->scale(FF)V .line 514 iget v4, p0, Lcom/weigan/loopview/LoopView;->firstLineY:I if-gt v6, v4, :cond_190 iget v5, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I add-int/2addr v5, v6 if-lt v5, v4, :cond_190 .line 516 invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I .line 517 iget v4, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I iget v5, p0, Lcom/weigan/loopview/LoopView;->firstLineY:I sub-int/2addr v5, v6 invoke-virtual {p1, v2, v2, v4, v5}, Landroid/graphics/Canvas;->clipRect(IIII)Z .line 518 invoke-direct {p0, p1, v1}, Lcom/weigan/loopview/LoopView;->drawOuterText(Landroid/graphics/Canvas;I)V .line 519 invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V .line 520 invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I .line 521 iget v4, p0, Lcom/weigan/loopview/LoopView;->firstLineY:I sub-int/2addr v4, v6 iget v5, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I float-to-int v3, v3 invoke-virtual {p1, v2, v4, v5, v3}, Landroid/graphics/Canvas;->clipRect(IIII)Z .line 522 invoke-direct {p0, p1, v1}, Lcom/weigan/loopview/LoopView;->drawCenterText(Landroid/graphics/Canvas;I)V .line 523 invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V goto :goto_1d7 .line 524 :cond_190 iget v5, p0, Lcom/weigan/loopview/LoopView;->secondLineY:I if-gt v6, v5, :cond_1bd iget v7, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I add-int/2addr v7, v6 if-lt v7, v5, :cond_1bd .line 526 invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I .line 527 iget v4, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I iget v5, p0, Lcom/weigan/loopview/LoopView;->secondLineY:I sub-int/2addr v5, v6 invoke-virtual {p1, v2, v2, v4, v5}, Landroid/graphics/Canvas;->clipRect(IIII)Z .line 528 invoke-direct {p0, p1, v1}, Lcom/weigan/loopview/LoopView;->drawCenterText(Landroid/graphics/Canvas;I)V .line 529 invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V .line 530 invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I .line 531 iget v4, p0, Lcom/weigan/loopview/LoopView;->secondLineY:I sub-int/2addr v4, v6 iget v5, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I float-to-int v3, v3 invoke-virtual {p1, v2, v4, v5, v3}, Landroid/graphics/Canvas;->clipRect(IIII)Z .line 532 invoke-direct {p0, p1, v1}, Lcom/weigan/loopview/LoopView;->drawOuterText(Landroid/graphics/Canvas;I)V .line 533 invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V goto :goto_1d7 :cond_1bd if-lt v6, v4, :cond_1ce .line 534 iget v4, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I add-int/2addr v4, v6 if-gt v4, v5, :cond_1ce .line 536 iget v4, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I float-to-int v3, v3 invoke-virtual {p1, v2, v2, v4, v3}, Landroid/graphics/Canvas;->clipRect(IIII)Z .line 537 invoke-direct {p0, p1, v1}, Lcom/weigan/loopview/LoopView;->drawCenterText(Landroid/graphics/Canvas;I)V goto :goto_1d7 .line 540 :cond_1ce iget v4, p0, Lcom/weigan/loopview/LoopView;->measuredWidth:I float-to-int v3, v3 invoke-virtual {p1, v2, v2, v4, v3}, Landroid/graphics/Canvas;->clipRect(IIII)Z .line 541 invoke-direct {p0, p1, v1}, Lcom/weigan/loopview/LoopView;->drawOuterText(Landroid/graphics/Canvas;I)V .line 543 :goto_1d7 invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V goto :goto_1de .line 509 :cond_1db :goto_1db invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V :goto_1de add-int/lit8 v1, v1, 0x1 goto/16 :goto_113 .line 548 :cond_1e2 iget p1, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I iget v3, p0, Lcom/weigan/loopview/LoopView;->lastScrollState:I if-eq p1, v3, :cond_1fa .line 550 iput p1, p0, Lcom/weigan/loopview/LoopView;->lastScrollState:I .line 551 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->mOnItemScrollListener:Lcom/weigan/loopview/OnItemScrollListener; if-eqz v0, :cond_1fa .line 552 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getSelectedItem()I move-result v2 iget v4, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I iget v5, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I move-object v1, p0 invoke-interface/range {v0 .. v5}, Lcom/weigan/loopview/OnItemScrollListener;->onItemScrollStateChanged(Lcom/weigan/loopview/LoopView;IIII)V .line 556 :cond_1fa iget p1, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I const/4 v0, 0x2 if-eq p1, v0, :cond_202 const/4 v0, 0x3 if-ne p1, v0, :cond_211 .line 557 :cond_202 iget-object p1, p0, Lcom/weigan/loopview/LoopView;->mOnItemScrollListener:Lcom/weigan/loopview/OnItemScrollListener; if-eqz p1, :cond_211 .line 558 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getSelectedItem()I move-result v0 iget v1, p0, Lcom/weigan/loopview/LoopView;->currentScrollState:I iget v2, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I invoke-interface {p1, p0, v0, v1, v2}, Lcom/weigan/loopview/OnItemScrollListener;->onItemScrolling(Lcom/weigan/loopview/LoopView;III)V :cond_211 :goto_211 return-void .end method .method protected final onItemSelected()V .registers 4 .line 417 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->onItemSelectedListener:Lcom/weigan/loopview/OnItemSelectedListener; if-eqz v0, :cond_e .line 418 new-instance v0, Lcom/weigan/loopview/OnItemSelectedRunnable; invoke-direct {v0, p0}, Lcom/weigan/loopview/OnItemSelectedRunnable;->(Lcom/weigan/loopview/LoopView;)V const-wide/16 v1, 0xc8 invoke-virtual {p0, v0, v1, v2}, Lcom/weigan/loopview/LoopView;->postDelayed(Ljava/lang/Runnable;J)Z :cond_e return-void .end method .method protected onMeasure(II)V .registers 3 .line 594 invoke-super {p0, p1, p2}, Landroid/view/View;->onMeasure(II)V .line 595 invoke-direct {p0}, Lcom/weigan/loopview/LoopView;->initPaintsIfPossible()V .line 596 invoke-direct {p0}, Lcom/weigan/loopview/LoopView;->remeasure()V return-void .end method .method public onTouchEvent(Landroid/view/MotionEvent;)Z .registers 11 .line 602 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->flingGestureDetector:Landroid/view/GestureDetector; invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z move-result v0 .line 603 iget v1, p0, Lcom/weigan/loopview/LoopView;->lineSpacingMultiplier:F iget v2, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I int-to-float v2, v2 mul-float/2addr v1, v2 .line 605 invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I move-result v2 const/4 v3, 0x1 if-eqz v2, :cond_ab const/4 v4, 0x2 if-eq v2, v4, :cond_6b if-nez v0, :cond_5c .line 638 invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F move-result p1 .line 639 iget v0, p0, Lcom/weigan/loopview/LoopView;->radius:I int-to-float v2, v0 sub-float/2addr v2, p1 int-to-float p1, v0 div-float/2addr v2, p1 float-to-double v5, v2 invoke-static {v5, v6}, Ljava/lang/Math;->acos(D)D move-result-wide v5 iget p1, p0, Lcom/weigan/loopview/LoopView;->radius:I int-to-double v7, p1 mul-double/2addr v5, v7 const/high16 p1, 0x40000000 # 2.0f div-float p1, v1, p1 float-to-double v7, p1 add-double/2addr v5, v7 float-to-double v7, v1 div-double/2addr v5, v7 double-to-int p1, v5 .line 642 iget v0, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I int-to-float v0, v0 rem-float/2addr v0, v1 add-float/2addr v0, v1 rem-float/2addr v0, v1 .line 643 iget v2, p0, Lcom/weigan/loopview/LoopView;->itemsVisibleCount:I div-int/2addr v2, v4 sub-int/2addr p1, v2 int-to-float p1, p1 mul-float/2addr p1, v1 sub-float/2addr p1, v0 float-to-int p1, p1 iput p1, p0, Lcom/weigan/loopview/LoopView;->mOffset:I .line 645 invoke-static {}, Ljava/lang/System;->currentTimeMillis()J move-result-wide v0 iget-wide v4, p0, Lcom/weigan/loopview/LoopView;->startTime:J sub-long/2addr v0, v4 const-wide/16 v4, 0x78 cmp-long p1, v0, v4 if-lez p1, :cond_57 .line 646 sget-object p1, Lcom/weigan/loopview/LoopView$ACTION;->DRAG:Lcom/weigan/loopview/LoopView$ACTION; invoke-virtual {p0, p1}, Lcom/weigan/loopview/LoopView;->smoothScroll(Lcom/weigan/loopview/LoopView$ACTION;)V goto :goto_5c .line 648 :cond_57 sget-object p1, Lcom/weigan/loopview/LoopView$ACTION;->CLICK:Lcom/weigan/loopview/LoopView$ACTION; invoke-virtual {p0, p1}, Lcom/weigan/loopview/LoopView;->smoothScroll(Lcom/weigan/loopview/LoopView$ACTION;)V .line 651 :cond_5c :goto_5c invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getParent()Landroid/view/ViewParent; move-result-object p1 if-eqz p1, :cond_c7 .line 652 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getParent()Landroid/view/ViewParent; move-result-object p1 const/4 v0, 0x0 invoke-interface {p1, v0}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V goto :goto_c7 .line 616 :cond_6b iget v0, p0, Lcom/weigan/loopview/LoopView;->previousY:F invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F move-result v2 sub-float/2addr v0, v2 .line 617 invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F move-result p1 iput p1, p0, Lcom/weigan/loopview/LoopView;->previousY:F .line 619 iget p1, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I int-to-float p1, p1 add-float/2addr p1, v0 float-to-int p1, p1 iput p1, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I .line 621 iget-boolean p1, p0, Lcom/weigan/loopview/LoopView;->isLoop:Z if-nez p1, :cond_a7 .line 622 iget p1, p0, Lcom/weigan/loopview/LoopView;->initPosition:I neg-int p1, p1 int-to-float p1, p1 mul-float/2addr p1, v1 .line 623 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 sub-int/2addr v0, v3 iget v2, p0, Lcom/weigan/loopview/LoopView;->initPosition:I sub-int/2addr v0, v2 int-to-float v0, v0 mul-float/2addr v0, v1 .line 625 iget v1, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I int-to-float v2, v1 cmpg-float v2, v2, p1 if-gez v2, :cond_9f float-to-int p1, p1 .line 626 iput p1, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I goto :goto_a7 :cond_9f int-to-float p1, v1 cmpl-float p1, p1, v0 if-lez p1, :cond_a7 float-to-int p1, v0 .line 628 iput p1, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I .line 631 :cond_a7 :goto_a7 invoke-direct {p0, v4}, Lcom/weigan/loopview/LoopView;->changeScrollState(I)V goto :goto_c7 .line 607 :cond_ab invoke-static {}, Ljava/lang/System;->currentTimeMillis()J move-result-wide v0 iput-wide v0, p0, Lcom/weigan/loopview/LoopView;->startTime:J .line 608 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->cancelFuture()V .line 609 invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F move-result p1 iput p1, p0, Lcom/weigan/loopview/LoopView;->previousY:F .line 610 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getParent()Landroid/view/ViewParent; move-result-object p1 if-eqz p1, :cond_c7 .line 611 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getParent()Landroid/view/ViewParent; move-result-object p1 invoke-interface {p1, v3}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V .line 657 :cond_c7 :goto_c7 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->invalidate()V return v3 .end method .method protected final scrollBy(F)V .registers 9 .line 302 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->cancelFuture()V .line 305 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->mExecutor:Ljava/util/concurrent/ScheduledExecutorService; new-instance v1, Lcom/weigan/loopview/InertiaTimerTask; invoke-direct {v1, p0, p1}, Lcom/weigan/loopview/InertiaTimerTask;->(Lcom/weigan/loopview/LoopView;F)V const/16 p1, 0xa int-to-long v4, p1 sget-object v6, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit; const-wide/16 v2, 0x0 invoke-interface/range {v0 .. v6}, Ljava/util/concurrent/ScheduledExecutorService;->scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture; move-result-object p1 iput-object p1, p0, Lcom/weigan/loopview/LoopView;->mFuture:Ljava/util/concurrent/ScheduledFuture; const/4 p1, 0x2 .line 307 invoke-direct {p0, p1}, Lcom/weigan/loopview/LoopView;->changeScrollState(I)V return-void .end method .method public setCenterTextColor(I)V .registers 3 .line 125 iput p1, p0, Lcom/weigan/loopview/LoopView;->centerTextColor:I .line 126 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; if-eqz v0, :cond_9 .line 127 invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V :cond_9 return-void .end method .method public setCurrentPosition(I)V .registers 3 .line 436 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; if-eqz v0, :cond_29 invoke-interface {v0}, Ljava/util/List;->isEmpty()Z move-result v0 if-eqz v0, :cond_b goto :goto_29 .line 439 :cond_b iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 if-ltz p1, :cond_29 if-ge p1, v0, :cond_29 .line 440 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->getSelectedItem()I move-result v0 if-eq p1, v0, :cond_29 .line 441 iput p1, p0, Lcom/weigan/loopview/LoopView;->initPosition:I const/4 p1, 0x0 .line 442 iput p1, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I .line 443 iput p1, p0, Lcom/weigan/loopview/LoopView;->mOffset:I const/4 p1, 0x1 .line 444 invoke-direct {p0, p1}, Lcom/weigan/loopview/LoopView;->changeScrollState(I)V .line 445 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->invalidate()V :cond_29 :goto_29 return-void .end method .method public setDividerColor(I)V .registers 3 .line 148 iput p1, p0, Lcom/weigan/loopview/LoopView;->dividerColor:I .line 149 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintIndicator:Landroid/graphics/Paint; if-eqz v0, :cond_9 .line 150 invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V :cond_9 return-void .end method .method public final setInitPosition(I)V .registers 3 if-gez p1, :cond_6 const/4 p1, 0x0 .line 373 iput p1, p0, Lcom/weigan/loopview/LoopView;->initPosition:I goto :goto_12 .line 375 :cond_6 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; if-eqz v0, :cond_12 invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 if-le v0, p1, :cond_12 .line 376 iput p1, p0, Lcom/weigan/loopview/LoopView;->initPosition:I :cond_12 :goto_12 return-void .end method .method public final setItems(Ljava/util/List;)V .registers 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "Ljava/lang/String;", ">;)V" } .end annotation .line 393 invoke-virtual {p0, p1}, Lcom/weigan/loopview/LoopView;->convertData(Ljava/util/List;)Ljava/util/List; move-result-object p1 iput-object p1, p0, Lcom/weigan/loopview/LoopView;->items:Ljava/util/List; .line 394 invoke-direct {p0}, Lcom/weigan/loopview/LoopView;->remeasure()V .line 395 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->invalidate()V return-void .end method .method public setItemsVisibleCount(I)V .registers 3 .line 212 rem-int/lit8 v0, p1, 0x2 if-nez v0, :cond_5 return-void .line 215 :cond_5 iget v0, p0, Lcom/weigan/loopview/LoopView;->itemsVisibleCount:I if-eq p1, v0, :cond_12 .line 216 iput p1, p0, Lcom/weigan/loopview/LoopView;->itemsVisibleCount:I .line 217 new-instance p1, Ljava/util/HashMap; invoke-direct {p1}, Ljava/util/HashMap;->()V iput-object p1, p0, Lcom/weigan/loopview/LoopView;->drawingStrings:Ljava/util/HashMap; :cond_12 return-void .end method .method public setLineSpacingMultiplier(F)V .registers 3 const/high16 v0, 0x3f800000 # 1.0f cmpl-float v0, p1, v0 if-lez v0, :cond_8 .line 116 iput p1, p0, Lcom/weigan/loopview/LoopView;->lineSpacingMultiplier:F :cond_8 return-void .end method .method public final setListener(Lcom/weigan/loopview/OnItemSelectedListener;)V .registers 2 .line 382 iput-object p1, p0, Lcom/weigan/loopview/LoopView;->onItemSelectedListener:Lcom/weigan/loopview/OnItemSelectedListener; return-void .end method .method public setNotLoop()V .registers 2 const/4 v0, 0x0 .line 351 iput-boolean v0, p0, Lcom/weigan/loopview/LoopView;->isLoop:Z return-void .end method .method public final setOnItemScrollListener(Lcom/weigan/loopview/OnItemScrollListener;)V .registers 2 .line 386 iput-object p1, p0, Lcom/weigan/loopview/LoopView;->mOnItemScrollListener:Lcom/weigan/loopview/OnItemScrollListener; return-void .end method .method public setOuterTextColor(I)V .registers 3 .line 137 iput p1, p0, Lcom/weigan/loopview/LoopView;->outerTextColor:I .line 138 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; if-eqz v0, :cond_9 .line 139 invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V :cond_9 return-void .end method .method public setScaleX(F)V .registers 2 .line 428 iput p1, p0, Lcom/weigan/loopview/LoopView;->scaleX:F return-void .end method .method public final setTextSize(F)V .registers 3 const/4 v0, 0x0 cmpl-float v0, p1, v0 if-lez v0, :cond_27 .line 360 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->context:Landroid/content/Context; invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics; move-result-object v0 iget v0, v0, Landroid/util/DisplayMetrics;->density:F mul-float/2addr v0, p1 float-to-int p1, v0 iput p1, p0, Lcom/weigan/loopview/LoopView;->textSize:I .line 361 iget-object v0, p0, Lcom/weigan/loopview/LoopView;->paintOuterText:Landroid/graphics/Paint; if-eqz v0, :cond_1d int-to-float p1, p1 .line 362 invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setTextSize(F)V .line 364 :cond_1d iget-object p1, p0, Lcom/weigan/loopview/LoopView;->paintCenterText:Landroid/graphics/Paint; if-eqz p1, :cond_27 .line 365 iget v0, p0, Lcom/weigan/loopview/LoopView;->textSize:I int-to-float v0, v0 invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setTextSize(F)V :cond_27 return-void .end method .method public setTypeface(Landroid/graphics/Typeface;)V .registers 2 .line 159 iput-object p1, p0, Lcom/weigan/loopview/LoopView;->typeface:Landroid/graphics/Typeface; return-void .end method .method smoothScroll(Lcom/weigan/loopview/LoopView$ACTION;)V .registers 9 .line 286 invoke-virtual {p0}, Lcom/weigan/loopview/LoopView;->cancelFuture()V .line 287 sget-object v0, Lcom/weigan/loopview/LoopView$ACTION;->FLING:Lcom/weigan/loopview/LoopView$ACTION; if-eq p1, v0, :cond_b sget-object v0, Lcom/weigan/loopview/LoopView$ACTION;->DRAG:Lcom/weigan/loopview/LoopView$ACTION; if-ne p1, v0, :cond_2c .line 288 :cond_b iget p1, p0, Lcom/weigan/loopview/LoopView;->lineSpacingMultiplier:F iget v0, p0, Lcom/weigan/loopview/LoopView;->itemTextHeight:I int-to-float v0, v0 mul-float/2addr p1, v0 .line 289 iget v0, p0, Lcom/weigan/loopview/LoopView;->totalScrollY:I int-to-float v0, v0 rem-float/2addr v0, p1 add-float/2addr v0, p1 rem-float/2addr v0, p1 float-to-int v0, v0 iput v0, p0, Lcom/weigan/loopview/LoopView;->mOffset:I int-to-float v1, v0 const/high16 v2, 0x40000000 # 2.0f div-float v2, p1, v2 cmpl-float v1, v1, v2 if-lez v1, :cond_29 int-to-float v0, v0 sub-float/2addr p1, v0 float-to-int p1, p1 .line 291 iput p1, p0, Lcom/weigan/loopview/LoopView;->mOffset:I goto :goto_2c :cond_29 neg-int p1, v0 .line 293 iput p1, p0, Lcom/weigan/loopview/LoopView;->mOffset:I .line 296 :cond_2c :goto_2c iget-object v0, p0, Lcom/weigan/loopview/LoopView;->mExecutor:Ljava/util/concurrent/ScheduledExecutorService; new-instance v1, Lcom/weigan/loopview/SmoothScrollTimerTask; iget p1, p0, Lcom/weigan/loopview/LoopView;->mOffset:I invoke-direct {v1, p0, p1}, Lcom/weigan/loopview/SmoothScrollTimerTask;->(Lcom/weigan/loopview/LoopView;I)V const-wide/16 v4, 0xa sget-object v6, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit; const-wide/16 v2, 0x0 .line 297 invoke-interface/range {v0 .. v6}, Ljava/util/concurrent/ScheduledExecutorService;->scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture; move-result-object p1 iput-object p1, p0, Lcom/weigan/loopview/LoopView;->mFuture:Ljava/util/concurrent/ScheduledFuture; const/4 p1, 0x3 .line 298 invoke-direct {p0, p1}, Lcom/weigan/loopview/LoopView;->changeScrollState(I)V return-void .end method