144 lines
3.1 KiB
Smali
144 lines
3.1 KiB
Smali
.class public Lcom/moji/appwidget/view/MDCustomView;
|
|
.super Landroid/widget/RelativeLayout;
|
|
.source "MDCustomView.java"
|
|
|
|
|
|
# instance fields
|
|
.field final a:I
|
|
|
|
.field b:I
|
|
|
|
.field public c:Z
|
|
|
|
.field d:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const-string p1, "#E2E2E2"
|
|
|
|
.line 18
|
|
invoke-static {p1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/appwidget/view/MDCustomView;->a:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 22
|
|
iput-boolean p1, p0, Lcom/moji/appwidget/view/MDCustomView;->c:Z
|
|
|
|
.line 42
|
|
iput-boolean p1, p0, Lcom/moji/appwidget/view/MDCustomView;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 25
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const-string p1, "#E2E2E2"
|
|
|
|
.line 18
|
|
invoke-static {p1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/appwidget/view/MDCustomView;->a:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 22
|
|
iput-boolean p1, p0, Lcom/moji/appwidget/view/MDCustomView;->c:Z
|
|
|
|
.line 42
|
|
iput-boolean p1, p0, Lcom/moji/appwidget/view/MDCustomView;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected onAnimationEnd()V
|
|
.locals 1
|
|
|
|
.line 52
|
|
invoke-super {p0}, Landroid/widget/RelativeLayout;->onAnimationEnd()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 53
|
|
iput-boolean v0, p0, Lcom/moji/appwidget/view/MDCustomView;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onAnimationStart()V
|
|
.locals 1
|
|
|
|
.line 46
|
|
invoke-super {p0}, Landroid/widget/RelativeLayout;->onAnimationStart()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 47
|
|
iput-boolean v0, p0, Lcom/moji/appwidget/view/MDCustomView;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onDraw(Landroid/graphics/Canvas;)V
|
|
.locals 0
|
|
|
|
.line 58
|
|
invoke-super {p0, p1}, Landroid/widget/RelativeLayout;->onDraw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 59
|
|
iget-boolean p1, p0, Lcom/moji/appwidget/view/MDCustomView;->d:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 60
|
|
invoke-virtual {p0}, Lcom/moji/appwidget/view/MDCustomView;->invalidate()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEnabled(Z)V
|
|
.locals 0
|
|
|
|
.line 34
|
|
invoke-super {p0, p1}, Landroid/widget/RelativeLayout;->setEnabled(Z)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 36
|
|
iget p1, p0, Lcom/moji/appwidget/view/MDCustomView;->b:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/appwidget/view/MDCustomView;->setBackgroundColor(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 38
|
|
:cond_0
|
|
iget p1, p0, Lcom/moji/appwidget/view/MDCustomView;->a:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/appwidget/view/MDCustomView;->setBackgroundColor(I)V
|
|
|
|
.line 39
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/appwidget/view/MDCustomView;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|