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.
747 lines
20 KiB
747 lines
20 KiB
.class public Lcom/viatech/widget/DownloadProgressView; |
|
.super Landroid/widget/RelativeLayout; |
|
.source "DownloadProgressView.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/viatech/widget/DownloadProgressView$MyAnimationListener; |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final TAG:Ljava/lang/String; = "Vpai_DownloadProgressView" |
|
|
|
|
|
# instance fields |
|
.field private mContext:Landroid/content/Context; |
|
|
|
.field private mDoingPopup:Z |
|
|
|
.field private mFromX:F |
|
|
|
.field private mFromY:F |
|
|
|
.field mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
.field private mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
.field private mTextView:Landroid/widget/TextView; |
|
|
|
.field private mToX:F |
|
|
|
.field private mToY:F |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>(Landroid/content/Context;)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 43 |
|
invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V |
|
|
|
.line 27 |
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
.line 29 |
|
const/4 v0, 0x0 |
|
|
|
iput-boolean v0, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
.line 119 |
|
new-instance v0, Landroid/view/animation/AnimationSet; |
|
|
|
const/4 v1, 0x1 |
|
|
|
invoke-direct {v0, v1}, Landroid/view/animation/AnimationSet;-><init>(Z)V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
.line 44 |
|
return-void |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 52 |
|
invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
|
|
|
.line 27 |
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
.line 29 |
|
const/4 v0, 0x0 |
|
|
|
iput-boolean v0, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
.line 119 |
|
new-instance v0, Landroid/view/animation/AnimationSet; |
|
|
|
const/4 v1, 0x1 |
|
|
|
invoke-direct {v0, v1}, Landroid/view/animation/AnimationSet;-><init>(Z)V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
.line 53 |
|
invoke-direct {p0, p1}, Lcom/viatech/widget/DownloadProgressView;->initView(Landroid/content/Context;)V |
|
|
|
.line 54 |
|
return-void |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 47 |
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
|
|
|
.line 27 |
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
.line 29 |
|
const/4 v0, 0x0 |
|
|
|
iput-boolean v0, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
.line 119 |
|
new-instance v0, Landroid/view/animation/AnimationSet; |
|
|
|
const/4 v1, 0x1 |
|
|
|
invoke-direct {v0, v1}, Landroid/view/animation/AnimationSet;-><init>(Z)V |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
.line 48 |
|
invoke-direct {p0, p1}, Lcom/viatech/widget/DownloadProgressView;->initView(Landroid/content/Context;)V |
|
|
|
.line 49 |
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$002(Lcom/viatech/widget/DownloadProgressView;Z)Z |
|
.locals 0 |
|
|
|
.prologue |
|
.line 22 |
|
iput-boolean p1, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
return p1 |
|
.end method |
|
|
|
.method private initView(Landroid/content/Context;)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 57 |
|
iput-object p1, p0, Lcom/viatech/widget/DownloadProgressView;->mContext:Landroid/content/Context; |
|
|
|
.line 58 |
|
invoke-virtual {p0}, Lcom/viatech/widget/DownloadProgressView;->getContext()Landroid/content/Context; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, "layout_inflater" |
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/view/LayoutInflater; |
|
|
|
.line 59 |
|
const v1, 0x7f030061 |
|
|
|
invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View; |
|
|
|
.line 60 |
|
const v0, 0x7f0c0239 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/widget/DownloadProgressView;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mTextView:Landroid/widget/TextView; |
|
|
|
.line 61 |
|
const v0, 0x7f0c023a |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/widget/DownloadProgressView;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ProgressBar; |
|
|
|
iput-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
.line 62 |
|
iget-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
const/16 v1, 0x64 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setMax(I)V |
|
|
|
.line 63 |
|
iget-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setProgress(I)V |
|
|
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mTextView:Landroid/widget/TextView; |
|
|
|
const-string v1, "" |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 65 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public getProgress()I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
iget-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
invoke-virtual {v0}, Landroid/widget/ProgressBar;->getProgress()I |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public hidePopupWindow(Lcom/viatech/widget/DownloadProgressView$MyAnimationListener;)Z |
|
.locals 7 |
|
|
|
.prologue |
|
const/4 v1, 0x0 |
|
|
|
const v6, 0x3dcccccd # 0.1f |
|
|
|
const/4 v0, 0x1 |
|
|
|
const/high16 v5, 0x3f800000 # 1.0f |
|
|
|
.line 121 |
|
invoke-virtual {p0}, Lcom/viatech/widget/DownloadProgressView;->getVisibility()I |
|
|
|
move-result v2 |
|
|
|
if-nez v2, :cond_0 |
|
|
|
iget-boolean v2, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
if-eqz v2, :cond_1 |
|
|
|
:cond_0 |
|
move v0, v1 |
|
|
|
.line 157 |
|
:goto_0 |
|
return v0 |
|
|
|
.line 123 |
|
:cond_1 |
|
iput-boolean v0, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
.line 124 |
|
const/4 v2, 0x2 |
|
|
|
new-array v2, v2, [I |
|
|
|
.line 125 |
|
invoke-virtual {p0, v2}, Lcom/viatech/widget/DownloadProgressView;->getLocationOnScreen([I)V |
|
|
|
.line 126 |
|
iget v3, p0, Lcom/viatech/widget/DownloadProgressView;->mToX:F |
|
|
|
aget v1, v2, v1 |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/DownloadProgressView;->getWidth()I |
|
|
|
move-result v4 |
|
|
|
add-int/2addr v1, v4 |
|
|
|
div-int/lit8 v1, v1, 0x2 |
|
|
|
int-to-float v1, v1 |
|
|
|
sub-float v1, v3, v1 |
|
|
|
iput v1, p0, Lcom/viatech/widget/DownloadProgressView;->mToX:F |
|
|
|
.line 127 |
|
iget v1, p0, Lcom/viatech/widget/DownloadProgressView;->mToY:F |
|
|
|
aget v2, v2, v0 |
|
|
|
invoke-virtual {p0}, Lcom/viatech/widget/DownloadProgressView;->getHeight()I |
|
|
|
move-result v3 |
|
|
|
add-int/2addr v2, v3 |
|
|
|
div-int/lit8 v2, v2, 0x2 |
|
|
|
int-to-float v2, v2 |
|
|
|
sub-float/2addr v1, v2 |
|
|
|
iput v1, p0, Lcom/viatech/widget/DownloadProgressView;->mToY:F |
|
|
|
.line 128 |
|
const-string v1, "Vpai_DownloadProgressView" |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "initStranslateAnimation() toX=" |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
iget v3, p0, Lcom/viatech/widget/DownloadProgressView;->mToX:F |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
const-string v3, ",toY=" |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
iget v3, p0, Lcom/viatech/widget/DownloadProgressView;->mToY:F |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
const-string v3, ",mFromX=" |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
iget v3, p0, Lcom/viatech/widget/DownloadProgressView;->mFromX:F |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
const-string v3, ",mFromY=" |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
iget v3, p0, Lcom/viatech/widget/DownloadProgressView;->mFromY:F |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 130 |
|
new-instance v1, Landroid/view/animation/ScaleAnimation; |
|
|
|
invoke-direct {v1, v5, v6, v5, v6}, Landroid/view/animation/ScaleAnimation;-><init>(FFFF)V |
|
|
|
.line 131 |
|
new-instance v2, Landroid/view/animation/AlphaAnimation; |
|
|
|
const/4 v3, 0x0 |
|
|
|
invoke-direct {v2, v5, v3}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V |
|
|
|
.line 132 |
|
iget-object v3, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
invoke-virtual {v3}, Landroid/view/animation/AnimationSet;->reset()V |
|
|
|
.line 134 |
|
iget-object v3, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
invoke-virtual {v3, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V |
|
|
|
.line 135 |
|
iget-object v1, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
invoke-virtual {v1, v2}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V |
|
|
|
.line 136 |
|
iget-object v1, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
const-wide/16 v2, 0x1f4 |
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/view/animation/AnimationSet;->setDuration(J)V |
|
|
|
.line 137 |
|
iget-object v1, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
new-instance v2, Lcom/viatech/widget/DownloadProgressView$2; |
|
|
|
invoke-direct {v2, p0, p1}, Lcom/viatech/widget/DownloadProgressView$2;-><init>(Lcom/viatech/widget/DownloadProgressView;Lcom/viatech/widget/DownloadProgressView$MyAnimationListener;)V |
|
|
|
invoke-virtual {v1, v2}, Landroid/view/animation/AnimationSet;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V |
|
|
|
.line 155 |
|
iget-object v1, p0, Lcom/viatech/widget/DownloadProgressView;->mHideAnimationSet:Landroid/view/animation/AnimationSet; |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/widget/DownloadProgressView;->startAnimation(Landroid/view/animation/Animation;)V |
|
|
|
.line 156 |
|
const-string v1, "Vpai_DownloadProgressView" |
|
|
|
const-string v2, "hidePopupWindow()" |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
goto/16 :goto_0 |
|
.end method |
|
|
|
.method public hideWindow()V |
|
.locals 4 |
|
|
|
.prologue |
|
const/4 v3, 0x1 |
|
|
|
.line 166 |
|
invoke-virtual {p0}, Lcom/viatech/widget/DownloadProgressView;->getVisibility()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
iget-boolean v0, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 194 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 168 |
|
:cond_1 |
|
const-string v0, "Vpai_DownloadProgressView" |
|
|
|
const-string v1, "hideWindow()" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 169 |
|
iput-boolean v3, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
.line 170 |
|
const/4 v0, 0x2 |
|
|
|
new-array v0, v0, [I |
|
|
|
.line 171 |
|
invoke-virtual {p0, v0}, Lcom/viatech/widget/DownloadProgressView;->getLocationOnScreen([I)V |
|
|
|
.line 172 |
|
const/4 v1, 0x0 |
|
|
|
aget v1, v0, v1 |
|
|
|
int-to-float v1, v1 |
|
|
|
iput v1, p0, Lcom/viatech/widget/DownloadProgressView;->mFromX:F |
|
|
|
.line 173 |
|
aget v0, v0, v3 |
|
|
|
int-to-float v0, v0 |
|
|
|
iput v0, p0, Lcom/viatech/widget/DownloadProgressView;->mFromY:F |
|
|
|
.line 174 |
|
new-instance v0, Landroid/view/animation/AlphaAnimation; |
|
|
|
const/high16 v1, 0x3f800000 # 1.0f |
|
|
|
const v2, 0x3dcccccd # 0.1f |
|
|
|
invoke-direct {v0, v1, v2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V |
|
|
|
.line 175 |
|
new-instance v1, Landroid/view/animation/AnimationSet; |
|
|
|
invoke-direct {v1, v3}, Landroid/view/animation/AnimationSet;-><init>(Z)V |
|
|
|
.line 176 |
|
invoke-virtual {v1, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V |
|
|
|
.line 177 |
|
const-wide/16 v2, 0x1f4 |
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/view/animation/AnimationSet;->setDuration(J)V |
|
|
|
.line 178 |
|
new-instance v0, Lcom/viatech/widget/DownloadProgressView$3; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/widget/DownloadProgressView$3;-><init>(Lcom/viatech/widget/DownloadProgressView;)V |
|
|
|
invoke-virtual {v1, v0}, Landroid/view/animation/AnimationSet;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V |
|
|
|
.line 193 |
|
invoke-virtual {p0, v1}, Lcom/viatech/widget/DownloadProgressView;->startAnimation(Landroid/view/animation/Animation;)V |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public initStranslateAnimation(FF)V |
|
.locals 4 |
|
|
|
.prologue |
|
const/4 v3, 0x0 |
|
|
|
.line 68 |
|
const-string v0, "Vpai_DownloadProgressView" |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "initStranslateAnimation() toX=" |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
const-string v2, ",toY=" |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 69 |
|
iput p1, p0, Lcom/viatech/widget/DownloadProgressView;->mToX:F |
|
|
|
.line 70 |
|
iput p2, p0, Lcom/viatech/widget/DownloadProgressView;->mToY:F |
|
|
|
.line 71 |
|
iput v3, p0, Lcom/viatech/widget/DownloadProgressView;->mFromX:F |
|
|
|
.line 72 |
|
iput v3, p0, Lcom/viatech/widget/DownloadProgressView;->mFromY:F |
|
|
|
.line 73 |
|
return-void |
|
.end method |
|
|
|
.method public setProgress(I)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 76 |
|
iget-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ProgressBar;->setProgress(I)V |
|
|
|
.line 77 |
|
iget-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mTextView:Landroid/widget/TextView; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
const-string v2, " %" |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 78 |
|
return-void |
|
.end method |
|
|
|
.method public setUnVisibility()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 161 |
|
const/16 v0, 0x8 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/widget/DownloadProgressView;->setVisibility(I)V |
|
|
|
.line 162 |
|
const/4 v0, 0x0 |
|
|
|
iput-boolean v0, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
.line 163 |
|
return-void |
|
.end method |
|
|
|
.method public showPopupWindow(Lcom/viatech/widget/DownloadProgressView$MyAnimationListener;)Z |
|
.locals 6 |
|
|
|
.prologue |
|
const/4 v5, 0x1 |
|
|
|
const/high16 v4, 0x3f800000 # 1.0f |
|
|
|
const v2, 0x3dcccccd # 0.1f |
|
|
|
const/4 v3, 0x0 |
|
|
|
.line 85 |
|
invoke-virtual {p0}, Lcom/viatech/widget/DownloadProgressView;->getVisibility()I |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
iget-boolean v0, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 116 |
|
:cond_0 |
|
:goto_0 |
|
return v3 |
|
|
|
.line 87 |
|
:cond_1 |
|
iput-boolean v5, p0, Lcom/viatech/widget/DownloadProgressView;->mDoingPopup:Z |
|
|
|
.line 88 |
|
iget-object v0, p0, Lcom/viatech/widget/DownloadProgressView;->mProgressBar:Landroid/widget/ProgressBar; |
|
|
|
invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setProgress(I)V |
|
|
|
.line 89 |
|
new-instance v0, Landroid/view/animation/ScaleAnimation; |
|
|
|
invoke-direct {v0, v2, v4, v2, v4}, Landroid/view/animation/ScaleAnimation;-><init>(FFFF)V |
|
|
|
.line 90 |
|
new-instance v1, Landroid/view/animation/AlphaAnimation; |
|
|
|
invoke-direct {v1, v2, v4}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V |
|
|
|
.line 91 |
|
new-instance v2, Landroid/view/animation/AnimationSet; |
|
|
|
invoke-direct {v2, v5}, Landroid/view/animation/AnimationSet;-><init>(Z)V |
|
|
|
.line 92 |
|
invoke-virtual {v2, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V |
|
|
|
.line 93 |
|
invoke-virtual {v2, v1}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V |
|
|
|
.line 94 |
|
const-wide/16 v0, 0x1f4 |
|
|
|
invoke-virtual {v2, v0, v1}, Landroid/view/animation/AnimationSet;->setDuration(J)V |
|
|
|
.line 95 |
|
new-instance v0, Lcom/viatech/widget/DownloadProgressView$1; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/viatech/widget/DownloadProgressView$1;-><init>(Lcom/viatech/widget/DownloadProgressView;Lcom/viatech/widget/DownloadProgressView$MyAnimationListener;)V |
|
|
|
invoke-virtual {v2, v0}, Landroid/view/animation/AnimationSet;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V |
|
|
|
.line 112 |
|
invoke-virtual {p0, v2}, Lcom/viatech/widget/DownloadProgressView;->startAnimation(Landroid/view/animation/Animation;)V |
|
|
|
.line 113 |
|
invoke-virtual {p0, v3}, Lcom/viatech/widget/DownloadProgressView;->setVisibility(I)V |
|
|
|
.line 114 |
|
invoke-virtual {p0, v5}, Lcom/viatech/widget/DownloadProgressView;->setFocusable(Z)V |
|
|
|
.line 115 |
|
const-string v0, "Vpai_DownloadProgressView" |
|
|
|
const-string v1, "showPopupWindow()" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public switchShow()V |
|
.locals 2 |
|
|
|
.prologue |
|
const/4 v1, 0x0 |
|
|
|
.line 197 |
|
invoke-virtual {p0}, Lcom/viatech/widget/DownloadProgressView;->getVisibility()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 198 |
|
invoke-virtual {p0, v1}, Lcom/viatech/widget/DownloadProgressView;->hidePopupWindow(Lcom/viatech/widget/DownloadProgressView$MyAnimationListener;)Z |
|
|
|
.line 202 |
|
:goto_0 |
|
return-void |
|
|
|
.line 200 |
|
:cond_0 |
|
invoke-virtual {p0, v1}, Lcom/viatech/widget/DownloadProgressView;->showPopupWindow(Lcom/viatech/widget/DownloadProgressView$MyAnimationListener;)Z |
|
|
|
goto :goto_0 |
|
.end method
|
|
|