693 lines
17 KiB
Smali
693 lines
17 KiB
Smali
.class public Lcom/moji/mjweather/aqi/control/AQINearViewControl;
|
|
.super Lcom/moji/viewcontrol/MJViewControl;
|
|
.source "AQINearViewControl.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/viewcontrol/MJViewControl<",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/widget/LinearLayout;
|
|
|
|
.field private b:Z
|
|
|
|
.field private c:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private d:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 49
|
|
invoke-direct {p0, p1}, Lcom/moji/viewcontrol/MJViewControl;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 40
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->c:Ljava/util/List;
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 41
|
|
iput p1, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->d:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/mjweather/aqi/control/AQINearViewControl;)I
|
|
.locals 0
|
|
|
|
.line 36
|
|
iget p0, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->d:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private a(Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;Z)Landroid/view/View;
|
|
.locals 9
|
|
|
|
.line 139
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->getInflater()Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f0b02e8
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f090aff
|
|
|
|
.line 140
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/TextView;
|
|
|
|
const v2, 0x7f090a66
|
|
|
|
.line 141
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
const v3, 0x7f090367
|
|
|
|
.line 142
|
|
invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/widget/ImageView;
|
|
|
|
const v4, 0x7f0909d7
|
|
|
|
.line 143
|
|
invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/widget/TextView;
|
|
|
|
const v5, 0x7f090aba
|
|
|
|
.line 144
|
|
invoke-virtual {v0, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Landroid/widget/TextView;
|
|
|
|
.line 146
|
|
iget-object v6, p1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;->name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 147
|
|
iget-object v1, p1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;->distance:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 148
|
|
iget-object v1, p1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;->distance:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "--"
|
|
|
|
.line 150
|
|
invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 153
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/mjweather/aqi/AQIActivity;
|
|
|
|
.line 154
|
|
invoke-virtual {v1}, Lcom/moji/mjweather/aqi/AQIActivity;->getFirstAqiBean()Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x8
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 155
|
|
iget-object v8, v1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;->nearby:Ljava/lang/String;
|
|
|
|
invoke-static {v8}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_1
|
|
|
|
iget-object v1, v1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;->nearby:Ljava/lang/String;
|
|
|
|
iget-object v8, p1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;->name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 156
|
|
invoke-virtual {v3, v6}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
const/16 v1, 0x7f
|
|
|
|
.line 157
|
|
invoke-virtual {v3, v1}, Landroid/widget/ImageView;->setAlpha(I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 159
|
|
:cond_1
|
|
invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
:goto_1
|
|
if-eqz p2, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/16 v6, 0x8
|
|
|
|
.line 162
|
|
:goto_2
|
|
invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 164
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget v1, p1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;->value:I
|
|
|
|
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ""
|
|
|
|
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {v4, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 165
|
|
iget-object p2, p1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;->level:Ljava/lang/String;
|
|
|
|
invoke-virtual {v5, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 166
|
|
iget p1, p1, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;->colour_level:I
|
|
|
|
invoke-static {p1}, Lcom/moji/mjweather/aqi/DrawableUtils;->a(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v5, p1}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private a(I)V
|
|
.locals 2
|
|
|
|
.line 102
|
|
iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 104
|
|
invoke-direct {p0, v0, v1}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a(Landroid/view/View;Z)V
|
|
|
|
.line 107
|
|
iget v0, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->d:I
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
.line 108
|
|
iget-object v0, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->c:Ljava/util/List;
|
|
|
|
iget v1, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->d:I
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 109
|
|
invoke-direct {p0, v0, v1}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a(Landroid/view/View;Z)V
|
|
|
|
.line 111
|
|
:cond_0
|
|
iput p1, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->d:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/view/View;Z)V
|
|
.locals 4
|
|
|
|
const v0, 0x7f090aff
|
|
|
|
.line 115
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
const v1, 0x7f090a66
|
|
|
|
.line 116
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/TextView;
|
|
|
|
const v2, 0x7f0909d7
|
|
|
|
.line 117
|
|
invoke-virtual {p1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
const v3, 0x7f090367
|
|
|
|
.line 118
|
|
invoke-virtual {p1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/widget/ImageView;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const p2, 0x7f060051
|
|
|
|
.line 120
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setBackgroundResource(I)V
|
|
|
|
const p1, 0x7f060235
|
|
|
|
.line 121
|
|
invoke-static {p1}, Lcom/moji/tool/Utils;->b(I)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 122
|
|
invoke-static {p1}, Lcom/moji/tool/Utils;->b(I)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {v1, p2}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 123
|
|
invoke-static {p1}, Lcom/moji/tool/Utils;->b(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v2, p1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
const/16 p1, 0xff
|
|
|
|
.line 124
|
|
invoke-virtual {v3, p1}, Landroid/widget/ImageView;->setAlpha(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p2, 0x7f08068b
|
|
|
|
.line 126
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setBackgroundResource(I)V
|
|
|
|
const p1, 0x7f060242
|
|
|
|
.line 127
|
|
invoke-static {p1}, Lcom/moji/tool/Utils;->b(I)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 128
|
|
invoke-static {p1}, Lcom/moji/tool/Utils;->b(I)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {v1, p2}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 129
|
|
invoke-static {p1}, Lcom/moji/tool/Utils;->b(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v2, p1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
const/16 p1, 0x7f
|
|
|
|
.line 130
|
|
invoke-virtual {v3, p1}, Landroid/widget/ImageView;->setAlpha(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/mjweather/aqi/control/AQINearViewControl;I)V
|
|
.locals 0
|
|
|
|
.line 36
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(Z)Landroid/view/View;
|
|
.locals 2
|
|
|
|
.line 135
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->getInflater()Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const p1, 0x7f0b00c1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p1, 0x7f0b00bb
|
|
|
|
:goto_0
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/String;)V
|
|
.locals 4
|
|
|
|
.line 176
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 178
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->getData()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 179
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v2, v3, :cond_1
|
|
|
|
.line 180
|
|
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;
|
|
|
|
.line 181
|
|
iget-object v3, v3, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;->name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
if-ltz v0, :cond_2
|
|
|
|
.line 188
|
|
invoke-direct {p0, v0}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a(I)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/List;)V
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 65
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->hideView()V
|
|
|
|
return-void
|
|
|
|
.line 68
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->showView()V
|
|
|
|
.line 69
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->AQI_STATION_NEARBY_SHOW:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 70
|
|
new-instance v0, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
const/high16 v1, 0x42440000 # 49.0f
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, -0x1
|
|
|
|
invoke-direct {v0, v2, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/16 v1, 0x11
|
|
|
|
.line 71
|
|
iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->gravity:I
|
|
|
|
.line 72
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
.line 73
|
|
iget-object v3, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a:Landroid/widget/LinearLayout;
|
|
|
|
invoke-virtual {v3}, Landroid/widget/LinearLayout;->removeAllViews()V
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
if-ge v4, v1, :cond_2
|
|
|
|
.line 75
|
|
invoke-interface {p1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;
|
|
|
|
.line 76
|
|
iget-boolean v6, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->b:Z
|
|
|
|
invoke-direct {p0, v5, v6}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a(Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;Z)Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
.line 77
|
|
iget-object v7, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v7, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 78
|
|
iget-object v7, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a:Landroid/widget/LinearLayout;
|
|
|
|
invoke-virtual {v7, v6, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
add-int/lit8 v7, v1, -0x1
|
|
|
|
const/4 v8, 0x1
|
|
|
|
if-ne v4, v7, :cond_1
|
|
|
|
const/4 v7, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v7, 0x0
|
|
|
|
.line 80
|
|
:goto_1
|
|
invoke-direct {p0, v7}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->b(Z)Landroid/view/View;
|
|
|
|
move-result-object v7
|
|
|
|
.line 81
|
|
iget-object v9, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a:Landroid/widget/LinearLayout;
|
|
|
|
new-instance v10, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
invoke-direct {v10, v2, v8}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
invoke-virtual {v9, v7, v10}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 83
|
|
new-instance v7, Lcom/moji/mjweather/aqi/control/AQINearViewControl$1;
|
|
|
|
invoke-direct {v7, p0, v4, v5}, Lcom/moji/mjweather/aqi/control/AQINearViewControl$1;-><init>(Lcom/moji/mjweather/aqi/control/AQINearViewControl;ILcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$PointListBean;)V
|
|
|
|
invoke-virtual {v6, v7}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 0
|
|
|
|
.line 172
|
|
iput-boolean p1, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->b:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected getResLayoutId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0b00be
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public synthetic onBindViewData(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 36
|
|
check-cast p1, Ljava/util/List;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onCreatedView(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
const v0, 0x7f0904d7
|
|
|
|
.line 59
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/LinearLayout;
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/aqi/control/AQINearViewControl;->a:Landroid/widget/LinearLayout;
|
|
|
|
return-void
|
|
.end method
|