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.
323 lines
6.9 KiB
323 lines
6.9 KiB
.class public Lcom/viatech/gallery/ShareView; |
|
.super Landroid/widget/RelativeLayout; |
|
.source "ShareView.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/viatech/gallery/ShareView$GridListAdapter;, |
|
Lcom/viatech/gallery/ShareView$ShareItem; |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final TAG:Ljava/lang/String; = "Vpai_PhoneFilesView" |
|
|
|
|
|
# instance fields |
|
.field private mGridView:Landroid/widget/GridView; |
|
|
|
.field private mIconId:[I |
|
|
|
.field private mShareList:Ljava/util/List; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/List", |
|
"<", |
|
"Lcom/viatech/gallery/ShareView$ShareItem;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field private mTitleId:[I |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>(Landroid/content/Context;)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 28 |
|
invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V |
|
|
|
.line 22 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mShareList:Ljava/util/List; |
|
|
|
.line 25 |
|
const/4 v0, 0x4 |
|
|
|
new-array v0, v0, [I |
|
|
|
fill-array-data v0, :array_0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mIconId:[I |
|
|
|
.line 26 |
|
const/4 v0, 0x1 |
|
|
|
new-array v0, v0, [I |
|
|
|
const/4 v1, 0x0 |
|
|
|
const v2, 0x7f07014c |
|
|
|
aput v2, v0, v1 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mTitleId:[I |
|
|
|
.line 29 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/ShareView;->initview()V |
|
|
|
.line 30 |
|
return-void |
|
|
|
.line 25 |
|
nop |
|
|
|
:array_0 |
|
.array-data 4 |
|
0x7f0201b8 |
|
0x7f02022c |
|
0x7f02022b |
|
0x7f020216 |
|
.end array-data |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 36 |
|
invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
|
|
|
.line 22 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mShareList:Ljava/util/List; |
|
|
|
.line 25 |
|
const/4 v0, 0x4 |
|
|
|
new-array v0, v0, [I |
|
|
|
fill-array-data v0, :array_0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mIconId:[I |
|
|
|
.line 26 |
|
const/4 v0, 0x1 |
|
|
|
new-array v0, v0, [I |
|
|
|
const/4 v1, 0x0 |
|
|
|
const v2, 0x7f07014c |
|
|
|
aput v2, v0, v1 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mTitleId:[I |
|
|
|
.line 37 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/ShareView;->initview()V |
|
|
|
.line 38 |
|
return-void |
|
|
|
.line 25 |
|
nop |
|
|
|
:array_0 |
|
.array-data 4 |
|
0x7f0201b8 |
|
0x7f02022c |
|
0x7f02022b |
|
0x7f020216 |
|
.end array-data |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 41 |
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
|
|
|
.line 22 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mShareList:Ljava/util/List; |
|
|
|
.line 25 |
|
const/4 v0, 0x4 |
|
|
|
new-array v0, v0, [I |
|
|
|
fill-array-data v0, :array_0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mIconId:[I |
|
|
|
.line 26 |
|
const/4 v0, 0x1 |
|
|
|
new-array v0, v0, [I |
|
|
|
const/4 v1, 0x0 |
|
|
|
const v2, 0x7f07014c |
|
|
|
aput v2, v0, v1 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mTitleId:[I |
|
|
|
.line 42 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/ShareView;->initview()V |
|
|
|
.line 43 |
|
return-void |
|
|
|
.line 25 |
|
nop |
|
|
|
:array_0 |
|
.array-data 4 |
|
0x7f0201b8 |
|
0x7f02022c |
|
0x7f02022b |
|
0x7f020216 |
|
.end array-data |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 47 |
|
invoke-direct {p0, p1, p2, p3, p4}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
|
|
|
.line 22 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mShareList:Ljava/util/List; |
|
|
|
.line 25 |
|
const/4 v0, 0x4 |
|
|
|
new-array v0, v0, [I |
|
|
|
fill-array-data v0, :array_0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mIconId:[I |
|
|
|
.line 26 |
|
const/4 v0, 0x1 |
|
|
|
new-array v0, v0, [I |
|
|
|
const/4 v1, 0x0 |
|
|
|
const v2, 0x7f07014c |
|
|
|
aput v2, v0, v1 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mTitleId:[I |
|
|
|
.line 48 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/ShareView;->initview()V |
|
|
|
.line 49 |
|
return-void |
|
|
|
.line 25 |
|
nop |
|
|
|
:array_0 |
|
.array-data 4 |
|
0x7f0201b8 |
|
0x7f02022c |
|
0x7f02022b |
|
0x7f020216 |
|
.end array-data |
|
.end method |
|
|
|
.method static synthetic access$100(Lcom/viatech/gallery/ShareView;)[I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 17 |
|
iget-object v0, p0, Lcom/viatech/gallery/ShareView;->mIconId:[I |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public initview()V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 52 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/ShareView;->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 54 |
|
const v1, 0x7f0300ad |
|
|
|
invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View; |
|
|
|
.line 55 |
|
const v0, 0x7f0c02b2 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/ShareView;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/GridView; |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/ShareView;->mGridView:Landroid/widget/GridView; |
|
|
|
.line 56 |
|
iget-object v0, p0, Lcom/viatech/gallery/ShareView;->mGridView:Landroid/widget/GridView; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/ShareView;->mIconId:[I |
|
|
|
array-length v1, v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/GridView;->setNumColumns(I)V |
|
|
|
.line 58 |
|
new-instance v0, Lcom/viatech/gallery/ShareView$GridListAdapter; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, p0, v1}, Lcom/viatech/gallery/ShareView$GridListAdapter;-><init>(Lcom/viatech/gallery/ShareView;Lcom/viatech/gallery/ShareView$1;)V |
|
|
|
.line 59 |
|
iget-object v1, p0, Lcom/viatech/gallery/ShareView;->mGridView:Landroid/widget/GridView; |
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V |
|
|
|
.line 61 |
|
return-void |
|
.end method
|
|
|