今奥全景相机
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.

193 lines
4.6 KiB

.class public Lcom/bigkoo/alertview/AlertViewAdapter;
.super Landroid/widget/BaseAdapter;
.source "AlertViewAdapter.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bigkoo/alertview/AlertViewAdapter$Holder;
}
.end annotation
# instance fields
.field private mDatas:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private mDestructive:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/List;Ljava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.prologue
.line 18
invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V
.line 19
iput-object p1, p0, Lcom/bigkoo/alertview/AlertViewAdapter;->mDatas:Ljava/util/List;
.line 20
iput-object p2, p0, Lcom/bigkoo/alertview/AlertViewAdapter;->mDestructive:Ljava/util/List;
.line 21
return-void
.end method
.method static synthetic access$000(Lcom/bigkoo/alertview/AlertViewAdapter;)Ljava/util/List;
.locals 1
.prologue
.line 15
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter;->mDestructive:Ljava/util/List;
return-object v0
.end method
# virtual methods
.method public creatHolder(Landroid/view/View;)Lcom/bigkoo/alertview/AlertViewAdapter$Holder;
.locals 1
.prologue
.line 55
new-instance v0, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;
invoke-direct {v0, p0, p1}, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;-><init>(Lcom/bigkoo/alertview/AlertViewAdapter;Landroid/view/View;)V
return-object v0
.end method
.method public getCount()I
.locals 1
.prologue
.line 24
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter;->mDatas:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
return v0
.end method
.method public getItem(I)Ljava/lang/Object;
.locals 1
.prologue
.line 29
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter;->mDatas:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public getItemId(I)J
.locals 2
.prologue
.line 34
int-to-long v0, p1
return-wide v0
.end method
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.locals 4
.prologue
.line 39
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter;->mDatas:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 42
if-nez p2, :cond_0
.line 43
invoke-virtual {p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v1
.line 44
sget v2, Lcom/bigkoo/alertview/R$layout;->item_alertbutton:I
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object p2
.line 45
invoke-virtual {p0, p2}, Lcom/bigkoo/alertview/AlertViewAdapter;->creatHolder(Landroid/view/View;)Lcom/bigkoo/alertview/AlertViewAdapter$Holder;
move-result-object v1
.line 46
invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
.line 51
:goto_0
invoke-virtual {p3}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v2
invoke-virtual {v1, v2, v0, p1}, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;->UpdateUI(Landroid/content/Context;Ljava/lang/String;I)V
.line 52
return-object p2
.line 49
:cond_0
invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;
goto :goto_0
.end method