You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1300 lines
31 KiB
1300 lines
31 KiB
.class public Lcom/viatech/widget/ScaleSeekBar; |
|
.super Landroid/view/View; |
|
.source "ScaleSeekBar.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch; |
|
} |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private final TAG:Ljava/lang/String; |
|
|
|
.field private mColors:[I |
|
|
|
.field private mDisabledIcon:Landroid/graphics/Bitmap; |
|
|
|
.field private mEnabledIcon:Landroid/graphics/Bitmap; |
|
|
|
.field private mHeight:I |
|
|
|
.field private mLineY:I |
|
|
|
.field private mPaint:Landroid/graphics/Paint; |
|
|
|
.field private mPerWidth:I |
|
|
|
.field private mResponseOnTouch:Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch; |
|
|
|
.field private mSectionLabelWidths:Ljava/util/ArrayList; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/ArrayList", |
|
"<", |
|
"Ljava/lang/Integer;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field private mSectionLabels:Ljava/util/ArrayList; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/ArrayList", |
|
"<", |
|
"Ljava/lang/String;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field private mSelectedIcon:Landroid/graphics/Bitmap; |
|
|
|
.field private mSelectedIconWH:I |
|
|
|
.field private mSelectedIndex:I |
|
|
|
.field private mSelectedPaint:Landroid/graphics/Paint; |
|
|
|
.field private mSelectedTextPaint:Landroid/graphics/Paint; |
|
|
|
.field private mTextPaint:Landroid/graphics/Paint; |
|
|
|
.field private mTextSize:I |
|
|
|
.field private mWidth:I |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>(Landroid/content/Context;)V |
|
.locals 2 |
|
|
|
.prologue |
|
const/4 v1, 0x2 |
|
|
|
.line 43 |
|
invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V |
|
|
|
.line 22 |
|
const-string v0, "Vpai_ScaleSeekBar" |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->TAG:Ljava/lang/String; |
|
|
|
.line 36 |
|
new-array v0, v1, [I |
|
|
|
fill-array-data v0, :array_0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mColors:[I |
|
|
|
.line 39 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabelWidths:Ljava/util/ArrayList; |
|
|
|
.line 40 |
|
iput v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
.line 44 |
|
return-void |
|
|
|
.line 36 |
|
nop |
|
|
|
:array_0 |
|
.array-data 4 |
|
-0x2c4e99 |
|
-0xcccccd |
|
.end array-data |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 46 |
|
const/4 v0, 0x0 |
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/viatech/widget/ScaleSeekBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
|
|
|
.line 47 |
|
return-void |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
|
.locals 8 |
|
|
|
.prologue |
|
const v7, 0x7f02011a |
|
|
|
const/4 v6, 0x0 |
|
|
|
const/4 v5, 0x2 |
|
|
|
const/4 v4, 0x4 |
|
|
|
const/4 v3, 0x1 |
|
|
|
.line 49 |
|
invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
|
|
|
.line 22 |
|
const-string v0, "Vpai_ScaleSeekBar" |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->TAG:Ljava/lang/String; |
|
|
|
.line 36 |
|
new-array v0, v5, [I |
|
|
|
fill-array-data v0, :array_0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mColors:[I |
|
|
|
.line 39 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabelWidths:Ljava/util/ArrayList; |
|
|
|
.line 40 |
|
iput v5, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
.line 50 |
|
iput v6, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
.line 51 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mColors:[I |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v1 |
|
|
|
const v2, 0x7f0b005f |
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I |
|
|
|
move-result v1 |
|
|
|
aput v1, v0, v6 |
|
|
|
.line 52 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mColors:[I |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v1 |
|
|
|
const v2, 0x7f0b0069 |
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I |
|
|
|
move-result v1 |
|
|
|
aput v1, v0, v3 |
|
|
|
.line 53 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v0 |
|
|
|
const v1, 0x7f02009a |
|
|
|
invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 54 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, v7}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mDisabledIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 55 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, v7}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mEnabledIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 56 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIcon:Landroid/graphics/Bitmap; |
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I |
|
|
|
move-result v0 |
|
|
|
iput v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
.line 57 |
|
const/high16 v0, 0x41400000 # 12.0f |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v5, v0, v1}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F |
|
|
|
move-result v0 |
|
|
|
float-to-int v0, v0 |
|
|
|
iput v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextSize:I |
|
|
|
.line 58 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingTop()I |
|
|
|
move-result v0 |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextSize:I |
|
|
|
add-int/2addr v0, v1 |
|
|
|
add-int/lit8 v0, v0, 0xa |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
add-int/2addr v0, v1 |
|
|
|
iput v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mLineY:I |
|
|
|
.line 59 |
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mLineY:I |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
add-int/2addr v0, v1 |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingBottom()I |
|
|
|
move-result v1 |
|
|
|
add-int/2addr v0, v1 |
|
|
|
iput v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mHeight:I |
|
|
|
.line 60 |
|
new-instance v0, Landroid/graphics/Paint; |
|
|
|
invoke-direct {v0, v4}, Landroid/graphics/Paint;-><init>(I)V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
.line 61 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setAntiAlias(Z)V |
|
|
|
.line 62 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
const/high16 v1, 0x41000000 # 8.0f |
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V |
|
|
|
.line 63 |
|
new-instance v0, Landroid/graphics/Paint; |
|
|
|
invoke-direct {v0, v4}, Landroid/graphics/Paint;-><init>(I)V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextPaint:Landroid/graphics/Paint; |
|
|
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextPaint:Landroid/graphics/Paint; |
|
|
|
invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setAntiAlias(Z)V |
|
|
|
.line 65 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextPaint:Landroid/graphics/Paint; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextSize:I |
|
|
|
int-to-float v1, v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V |
|
|
|
.line 66 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextPaint:Landroid/graphics/Paint; |
|
|
|
const v1, -0x6f6f70 |
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V |
|
|
|
.line 67 |
|
new-instance v0, Landroid/graphics/Paint; |
|
|
|
invoke-direct {v0, v4}, Landroid/graphics/Paint;-><init>(I)V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedTextPaint:Landroid/graphics/Paint; |
|
|
|
.line 68 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedTextPaint:Landroid/graphics/Paint; |
|
|
|
invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setAntiAlias(Z)V |
|
|
|
.line 69 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedTextPaint:Landroid/graphics/Paint; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextSize:I |
|
|
|
int-to-float v1, v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V |
|
|
|
.line 70 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedTextPaint:Landroid/graphics/Paint; |
|
|
|
const/4 v1, -0x1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V |
|
|
|
.line 71 |
|
new-instance v0, Landroid/graphics/Paint; |
|
|
|
invoke-direct {v0, v4}, Landroid/graphics/Paint;-><init>(I)V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedPaint:Landroid/graphics/Paint; |
|
|
|
.line 72 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedPaint:Landroid/graphics/Paint; |
|
|
|
invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setAntiAlias(Z)V |
|
|
|
.line 73 |
|
return-void |
|
|
|
.line 36 |
|
:array_0 |
|
.array-data 4 |
|
-0x2c4e99 |
|
-0xcccccd |
|
.end array-data |
|
.end method |
|
|
|
.method private responseTouch(II)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 171 |
|
.line 172 |
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mWidth:I |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
sub-int/2addr v0, v1 |
|
|
|
if-gt p1, v0, :cond_1 |
|
|
|
.line 173 |
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
div-int/lit8 v0, v0, 0x3 |
|
|
|
add-int/2addr v0, p1 |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
div-int/2addr v0, v1 |
|
|
|
.line 177 |
|
:goto_0 |
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v1 |
|
|
|
if-ge v0, v1, :cond_0 |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
.line 178 |
|
iput v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
.line 179 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->invalidate()V |
|
|
|
.line 181 |
|
:cond_0 |
|
return-void |
|
|
|
.line 175 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public getMaxProgress()I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 193 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public initData(Ljava/util/ArrayList;)V |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/util/ArrayList", |
|
"<", |
|
"Ljava/lang/String;", |
|
">;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 76 |
|
if-eqz p1, :cond_1 |
|
|
|
.line 77 |
|
iput-object p1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
.line 78 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabelWidths:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V |
|
|
|
.line 79 |
|
const/4 v0, 0x0 |
|
|
|
move v1, v0 |
|
|
|
:goto_0 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v0 |
|
|
|
if-ge v1, v0, :cond_1 |
|
|
|
.line 80 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/String; |
|
|
|
.line 81 |
|
if-eqz v0, :cond_0 |
|
|
|
iget-object v2, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextPaint:Landroid/graphics/Paint; |
|
|
|
invoke-virtual {v2, v0}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F |
|
|
|
move-result v0 |
|
|
|
.line 82 |
|
:goto_1 |
|
iget-object v2, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabelWidths:Ljava/util/ArrayList; |
|
|
|
float-to-int v0, v0 |
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v2, v1, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V |
|
|
|
.line 79 |
|
add-int/lit8 v0, v1, 0x1 |
|
|
|
move v1, v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 81 |
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_1 |
|
|
|
.line 85 |
|
:cond_1 |
|
return-void |
|
.end method |
|
|
|
.method protected onDraw(Landroid/graphics/Canvas;)V |
|
.locals 9 |
|
|
|
.prologue |
|
const/4 v6, 0x0 |
|
|
|
.line 98 |
|
invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V |
|
|
|
.line 99 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingLeft()I |
|
|
|
move-result v7 |
|
|
|
iget v8, p0, Lcom/viatech/widget/ScaleSeekBar;->mLineY:I |
|
|
|
.line 102 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mColors:[I |
|
|
|
const/4 v2, 0x1 |
|
|
|
aget v1, v1, v2 |
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V |
|
|
|
.line 103 |
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v0, v0, 0x2 |
|
|
|
add-int/2addr v0, v7 |
|
|
|
int-to-float v1, v0 |
|
|
|
int-to-float v2, v8 |
|
|
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mWidth:I |
|
|
|
iget v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v3, v3, 0x2 |
|
|
|
sub-int/2addr v0, v3 |
|
|
|
sub-int/2addr v0, v7 |
|
|
|
int-to-float v3, v0 |
|
|
|
int-to-float v4, v8 |
|
|
|
iget-object v5, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
move-object v0, p1 |
|
|
|
invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V |
|
|
|
.line 105 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mColors:[I |
|
|
|
aget v1, v1, v6 |
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V |
|
|
|
.line 106 |
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v0, v0, 0x2 |
|
|
|
add-int/2addr v0, v7 |
|
|
|
int-to-float v1, v0 |
|
|
|
int-to-float v2, v8 |
|
|
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v0, v0, 0x2 |
|
|
|
add-int/2addr v0, v7 |
|
|
|
iget v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
iget v4, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
mul-int/2addr v3, v4 |
|
|
|
add-int/2addr v0, v3 |
|
|
|
int-to-float v3, v0 |
|
|
|
int-to-float v4, v8 |
|
|
|
iget-object v5, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
move-object v0, p1 |
|
|
|
invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V |
|
|
|
move v2, v6 |
|
|
|
.line 108 |
|
:goto_0 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
if-ge v2, v0, :cond_7 |
|
|
|
.line 110 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 111 |
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
if-ge v2, v0, :cond_1 |
|
|
|
.line 112 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mEnabledIcon:Landroid/graphics/Bitmap; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
add-int/2addr v1, v7 |
|
|
|
iget v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
mul-int/2addr v3, v2 |
|
|
|
add-int/2addr v1, v3 |
|
|
|
iget-object v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mEnabledIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 113 |
|
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I |
|
|
|
move-result v3 |
|
|
|
div-int/lit8 v3, v3, 0x2 |
|
|
|
sub-int/2addr v1, v3 |
|
|
|
int-to-float v1, v1 |
|
|
|
iget-object v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mEnabledIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 114 |
|
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I |
|
|
|
move-result v3 |
|
|
|
div-int/lit8 v3, v3, 0x2 |
|
|
|
sub-int v3, v8, v3 |
|
|
|
int-to-float v3, v3 |
|
|
|
iget-object v4, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
.line 112 |
|
invoke-virtual {p1, v0, v1, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V |
|
|
|
.line 123 |
|
:goto_1 |
|
if-nez v2, :cond_3 |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingLeft()I |
|
|
|
move-result v1 |
|
|
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabelWidths:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/Integer; |
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I |
|
|
|
move-result v0 |
|
|
|
div-int/lit8 v0, v0, 0x2 |
|
|
|
if-ge v1, v0, :cond_3 |
|
|
|
.line 124 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/String; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
add-int/2addr v1, v7 |
|
|
|
iget v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
mul-int/2addr v3, v2 |
|
|
|
add-int/2addr v1, v3 |
|
|
|
.line 125 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingLeft()I |
|
|
|
move-result v3 |
|
|
|
sub-int/2addr v1, v3 |
|
|
|
int-to-float v3, v1 |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextSize:I |
|
|
|
.line 126 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingTop()I |
|
|
|
move-result v4 |
|
|
|
add-int/2addr v1, v4 |
|
|
|
int-to-float v4, v1 |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
if-ne v2, v1, :cond_2 |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedTextPaint:Landroid/graphics/Paint; |
|
|
|
.line 124 |
|
:goto_2 |
|
invoke-virtual {p1, v0, v3, v4, v1}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V |
|
|
|
.line 108 |
|
:cond_0 |
|
:goto_3 |
|
add-int/lit8 v0, v2, 0x1 |
|
|
|
move v2, v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 117 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mDisabledIcon:Landroid/graphics/Bitmap; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
add-int/2addr v1, v7 |
|
|
|
iget v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
mul-int/2addr v3, v2 |
|
|
|
add-int/2addr v1, v3 |
|
|
|
iget-object v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mDisabledIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 118 |
|
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I |
|
|
|
move-result v3 |
|
|
|
div-int/lit8 v3, v3, 0x2 |
|
|
|
sub-int/2addr v1, v3 |
|
|
|
int-to-float v1, v1 |
|
|
|
iget-object v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mDisabledIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 119 |
|
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I |
|
|
|
move-result v3 |
|
|
|
div-int/lit8 v3, v3, 0x2 |
|
|
|
sub-int v3, v8, v3 |
|
|
|
int-to-float v3, v3 |
|
|
|
iget-object v4, p0, Lcom/viatech/widget/ScaleSeekBar;->mPaint:Landroid/graphics/Paint; |
|
|
|
.line 117 |
|
invoke-virtual {p1, v0, v1, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V |
|
|
|
goto :goto_1 |
|
|
|
.line 126 |
|
:cond_2 |
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextPaint:Landroid/graphics/Paint; |
|
|
|
goto :goto_2 |
|
|
|
.line 128 |
|
:cond_3 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
if-ne v2, v0, :cond_5 |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingRight()I |
|
|
|
move-result v1 |
|
|
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabelWidths:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/Integer; |
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I |
|
|
|
move-result v0 |
|
|
|
div-int/lit8 v0, v0, 0x2 |
|
|
|
if-ge v1, v0, :cond_5 |
|
|
|
.line 129 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/String; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
add-int/2addr v1, v7 |
|
|
|
iget v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
mul-int/2addr v3, v2 |
|
|
|
add-int/2addr v3, v1 |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabelWidths:Ljava/util/ArrayList; |
|
|
|
.line 130 |
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
check-cast v1, Ljava/lang/Integer; |
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I |
|
|
|
move-result v1 |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingRight()I |
|
|
|
move-result v4 |
|
|
|
sub-int/2addr v1, v4 |
|
|
|
sub-int v1, v3, v1 |
|
|
|
int-to-float v3, v1 |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextSize:I |
|
|
|
.line 131 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingTop()I |
|
|
|
move-result v4 |
|
|
|
add-int/2addr v1, v4 |
|
|
|
int-to-float v4, v1 |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
if-ne v2, v1, :cond_4 |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedTextPaint:Landroid/graphics/Paint; |
|
|
|
.line 129 |
|
:goto_4 |
|
invoke-virtual {p1, v0, v3, v4, v1}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V |
|
|
|
goto/16 :goto_3 |
|
|
|
.line 131 |
|
:cond_4 |
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextPaint:Landroid/graphics/Paint; |
|
|
|
goto :goto_4 |
|
|
|
.line 134 |
|
:cond_5 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/String; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
add-int/2addr v1, v7 |
|
|
|
iget v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
mul-int/2addr v3, v2 |
|
|
|
add-int/2addr v3, v1 |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabelWidths:Ljava/util/ArrayList; |
|
|
|
.line 135 |
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
check-cast v1, Ljava/lang/Integer; |
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I |
|
|
|
move-result v1 |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
sub-int v1, v3, v1 |
|
|
|
int-to-float v3, v1 |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextSize:I |
|
|
|
.line 136 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getPaddingTop()I |
|
|
|
move-result v4 |
|
|
|
add-int/2addr v1, v4 |
|
|
|
int-to-float v4, v1 |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
if-ne v2, v1, :cond_6 |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedTextPaint:Landroid/graphics/Paint; |
|
|
|
.line 134 |
|
:goto_5 |
|
invoke-virtual {p1, v0, v3, v4, v1}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V |
|
|
|
goto/16 :goto_3 |
|
|
|
.line 136 |
|
:cond_6 |
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mTextPaint:Landroid/graphics/Paint; |
|
|
|
goto :goto_5 |
|
|
|
.line 142 |
|
:cond_7 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIcon:Landroid/graphics/Bitmap; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
iget v2, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
mul-int/2addr v1, v2 |
|
|
|
add-int/2addr v1, v7 |
|
|
|
int-to-float v1, v1 |
|
|
|
iget v2, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIconWH:I |
|
|
|
div-int/lit8 v2, v2, 0x2 |
|
|
|
sub-int v2, v8, v2 |
|
|
|
int-to-float v2, v2 |
|
|
|
iget-object v3, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedPaint:Landroid/graphics/Paint; |
|
|
|
invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V |
|
|
|
.line 146 |
|
return-void |
|
.end method |
|
|
|
.method protected onMeasure(II)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 89 |
|
invoke-super {p0, p1, p2}, Landroid/view/View;->onMeasure(II)V |
|
|
|
.line 90 |
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I |
|
|
|
move-result v0 |
|
|
|
iput v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mWidth:I |
|
|
|
.line 92 |
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mWidth:I |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mHeight:I |
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/viatech/widget/ScaleSeekBar;->setMeasuredDimension(II)V |
|
|
|
.line 93 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v0 |
|
|
|
if-lez v0, :cond_0 |
|
|
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mWidth:I |
|
|
|
iget-object v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSectionLabels:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I |
|
|
|
move-result v1 |
|
|
|
add-int/lit8 v1, v1, -0x1 |
|
|
|
div-int/2addr v0, v1 |
|
|
|
:goto_0 |
|
iput v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mPerWidth:I |
|
|
|
.line 94 |
|
return-void |
|
|
|
.line 93 |
|
:cond_0 |
|
iget v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mWidth:I |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z |
|
.locals 2 |
|
|
|
.prologue |
|
const v1, 0x7f02009a |
|
|
|
.line 150 |
|
invoke-super {p0, p1}, Landroid/view/View;->onTouchEvent(Landroid/view/MotionEvent;)Z |
|
|
|
.line 151 |
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I |
|
|
|
move-result v0 |
|
|
|
packed-switch v0, :pswitch_data_0 |
|
|
|
.line 168 |
|
:cond_0 |
|
:goto_0 |
|
const/4 v0, 0x1 |
|
|
|
return v0 |
|
|
|
.line 153 |
|
:pswitch_0 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 154 |
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F |
|
|
|
move-result v0 |
|
|
|
float-to-int v0, v0 |
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F |
|
|
|
move-result v1 |
|
|
|
float-to-int v1, v1 |
|
|
|
invoke-direct {p0, v0, v1}, Lcom/viatech/widget/ScaleSeekBar;->responseTouch(II)V |
|
|
|
goto :goto_0 |
|
|
|
.line 157 |
|
:pswitch_1 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 158 |
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F |
|
|
|
move-result v0 |
|
|
|
float-to-int v0, v0 |
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F |
|
|
|
move-result v1 |
|
|
|
float-to-int v1, v1 |
|
|
|
invoke-direct {p0, v0, v1}, Lcom/viatech/widget/ScaleSeekBar;->responseTouch(II)V |
|
|
|
goto :goto_0 |
|
|
|
.line 161 |
|
:pswitch_2 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIcon:Landroid/graphics/Bitmap; |
|
|
|
.line 162 |
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F |
|
|
|
move-result v0 |
|
|
|
float-to-int v0, v0 |
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F |
|
|
|
move-result v1 |
|
|
|
float-to-int v1, v1 |
|
|
|
invoke-direct {p0, v0, v1}, Lcom/viatech/widget/ScaleSeekBar;->responseTouch(II)V |
|
|
|
.line 163 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mResponseOnTouch:Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 164 |
|
iget-object v0, p0, Lcom/viatech/widget/ScaleSeekBar;->mResponseOnTouch:Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch; |
|
|
|
iget v1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
invoke-interface {v0, v1}, Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch;->onTouchResponse(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 151 |
|
:pswitch_data_0 |
|
.packed-switch 0x0 |
|
:pswitch_0 |
|
:pswitch_2 |
|
:pswitch_1 |
|
.end packed-switch |
|
.end method |
|
|
|
.method public setProgress(I)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 188 |
|
iput p1, p0, Lcom/viatech/widget/ScaleSeekBar;->mSelectedIndex:I |
|
|
|
.line 189 |
|
invoke-virtual {p0}, Lcom/viatech/widget/ScaleSeekBar;->invalidate()V |
|
|
|
.line 190 |
|
return-void |
|
.end method |
|
|
|
.method public setResponseOnTouch(Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 184 |
|
iput-object p1, p0, Lcom/viatech/widget/ScaleSeekBar;->mResponseOnTouch:Lcom/viatech/widget/ScaleSeekBar$ResponseOnTouch; |
|
|
|
.line 185 |
|
return-void |
|
.end method
|
|
|