166 lines
4.2 KiB
Smali
166 lines
4.2 KiB
Smali
.class public Lcom/moji/mjweather/feed/view/ClickEffectImageView;
|
|
.super Landroid/widget/ImageView;
|
|
.source "ClickEffectImageView.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 15
|
|
invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 19
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
.line 23
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 5
|
|
|
|
.line 28
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->isClickable()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x3
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/16 v4, 0xff
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 29
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
.line 30
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v4}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V
|
|
|
|
.line 31
|
|
invoke-virtual {p0, v3}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 33
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 34
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v2, 0x96
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V
|
|
|
|
.line 35
|
|
sget v0, Lcom/moji/mjweather/feed/R$drawable;->black_50_drawable:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->setBackgroundResource(I)V
|
|
|
|
.line 37
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
.line 38
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v4}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V
|
|
|
|
.line 39
|
|
invoke-virtual {p0, v3}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 41
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->isClickable()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 42
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v2, :cond_4
|
|
|
|
.line 43
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v4}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V
|
|
|
|
.line 44
|
|
invoke-virtual {p0, v3}, Lcom/moji/mjweather/feed/view/ClickEffectImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 47
|
|
:cond_4
|
|
:goto_0
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|