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

156 lines
4.1 KiB

.class Lcom/viatech/camera/CircleTabView$TabAdapter;
.super Landroid/support/v7/widget/RecyclerView$Adapter;
.source "CircleTabView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/viatech/camera/CircleTabView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "TabAdapter"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/support/v7/widget/RecyclerView$Adapter",
"<",
"Lcom/viatech/camera/CircleTabView$Item;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/viatech/camera/CircleTabView;
# direct methods
.method private constructor <init>(Lcom/viatech/camera/CircleTabView;)V
.locals 0
.prologue
.line 37
iput-object p1, p0, Lcom/viatech/camera/CircleTabView$TabAdapter;->this$0:Lcom/viatech/camera/CircleTabView;
invoke-direct {p0}, Landroid/support/v7/widget/RecyclerView$Adapter;-><init>()V
return-void
.end method
.method synthetic constructor <init>(Lcom/viatech/camera/CircleTabView;Lcom/viatech/camera/CircleTabView$1;)V
.locals 0
.prologue
.line 37
invoke-direct {p0, p1}, Lcom/viatech/camera/CircleTabView$TabAdapter;-><init>(Lcom/viatech/camera/CircleTabView;)V
return-void
.end method
# virtual methods
.method public getItemCount()I
.locals 1
.prologue
.line 51
sget-boolean v0, Lcom/viatech/a;->l:Z
if-nez v0, :cond_0
.line 52
const/4 v0, 0x0
.line 54
:goto_0
return v0
:cond_0
iget-object v0, p0, Lcom/viatech/camera/CircleTabView$TabAdapter;->this$0:Lcom/viatech/camera/CircleTabView;
invoke-static {v0}, Lcom/viatech/camera/CircleTabView;->access$100(Lcom/viatech/camera/CircleTabView;)[I
move-result-object v0
array-length v0, v0
goto :goto_0
.end method
.method public bridge synthetic onBindViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
.locals 0
.prologue
.line 37
check-cast p1, Lcom/viatech/camera/CircleTabView$Item;
invoke-virtual {p0, p1, p2}, Lcom/viatech/camera/CircleTabView$TabAdapter;->onBindViewHolder(Lcom/viatech/camera/CircleTabView$Item;I)V
return-void
.end method
.method public onBindViewHolder(Lcom/viatech/camera/CircleTabView$Item;I)V
.locals 2
.prologue
.line 46
iget-object v0, p1, Lcom/viatech/camera/CircleTabView$Item;->iv_tab:Landroid/widget/ImageView;
iget-object v1, p0, Lcom/viatech/camera/CircleTabView$TabAdapter;->this$0:Lcom/viatech/camera/CircleTabView;
invoke-static {v1}, Lcom/viatech/camera/CircleTabView;->access$100(Lcom/viatech/camera/CircleTabView;)[I
move-result-object v1
aget v1, v1, p2
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V
.line 47
return-void
.end method
.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
.locals 1
.prologue
.line 37
invoke-virtual {p0, p1, p2}, Lcom/viatech/camera/CircleTabView$TabAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/viatech/camera/CircleTabView$Item;
move-result-object v0
return-object v0
.end method
.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/viatech/camera/CircleTabView$Item;
.locals 5
.prologue
.line 41
new-instance v0, Lcom/viatech/camera/CircleTabView$Item;
iget-object v1, p0, Lcom/viatech/camera/CircleTabView$TabAdapter;->this$0:Lcom/viatech/camera/CircleTabView;
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v2
invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v2
const v3, 0x7f0300b5
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v2
invoke-direct {v0, v1, v2}, Lcom/viatech/camera/CircleTabView$Item;-><init>(Lcom/viatech/camera/CircleTabView;Landroid/view/View;)V
return-object v0
.end method