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.
185 lines
4.4 KiB
185 lines
4.4 KiB
.class public Lcom/viatech/camera/CircleTabView; |
|
.super Landroid/support/v7/widget/RecyclerView; |
|
.source "CircleTabView.java" |
|
|
|
# interfaces |
|
.implements Lcom/viatech/camera/TabController$ITabChange; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/viatech/camera/CircleTabView$Item;, |
|
Lcom/viatech/camera/CircleTabView$TabAdapter; |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final SELECTED_RES:I = 0x7f0201db |
|
|
|
.field private static final UNSELECTED_RES:I = 0x7f0201da |
|
|
|
|
|
# instance fields |
|
.field private tabAdapter:Lcom/viatech/camera/CircleTabView$TabAdapter; |
|
|
|
.field private final tabData:[I |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>(Landroid/content/Context;)V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 28 |
|
invoke-direct {p0, p1}, Landroid/support/v7/widget/RecyclerView;-><init>(Landroid/content/Context;)V |
|
|
|
.line 23 |
|
new-instance v0, Lcom/viatech/camera/CircleTabView$TabAdapter; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, p0, v1}, Lcom/viatech/camera/CircleTabView$TabAdapter;-><init>(Lcom/viatech/camera/CircleTabView;Lcom/viatech/camera/CircleTabView$1;)V |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CircleTabView;->tabAdapter:Lcom/viatech/camera/CircleTabView$TabAdapter; |
|
|
|
.line 24 |
|
const/4 v0, 0x2 |
|
|
|
new-array v0, v0, [I |
|
|
|
fill-array-data v0, :array_0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CircleTabView;->tabData:[I |
|
|
|
.line 29 |
|
return-void |
|
|
|
.line 24 |
|
:array_0 |
|
.array-data 4 |
|
0x7f0201da |
|
0x7f0201db |
|
.end array-data |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
|
.locals 3 |
|
.param p2 # Landroid/util/AttributeSet; |
|
.annotation build Landroid/support/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 32 |
|
invoke-direct {p0, p1, p2}, Landroid/support/v7/widget/RecyclerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
|
|
|
.line 23 |
|
new-instance v0, Lcom/viatech/camera/CircleTabView$TabAdapter; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, p0, v1}, Lcom/viatech/camera/CircleTabView$TabAdapter;-><init>(Lcom/viatech/camera/CircleTabView;Lcom/viatech/camera/CircleTabView$1;)V |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CircleTabView;->tabAdapter:Lcom/viatech/camera/CircleTabView$TabAdapter; |
|
|
|
.line 24 |
|
const/4 v0, 0x2 |
|
|
|
new-array v0, v0, [I |
|
|
|
fill-array-data v0, :array_0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/CircleTabView;->tabData:[I |
|
|
|
.line 33 |
|
iget-object v0, p0, Lcom/viatech/camera/CircleTabView;->tabAdapter:Lcom/viatech/camera/CircleTabView$TabAdapter; |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CircleTabView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V |
|
|
|
.line 34 |
|
new-instance v0, Landroid/support/v7/widget/StaggeredGridLayoutManager; |
|
|
|
const/4 v1, 0x1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-direct {v0, v1, v2}, Landroid/support/v7/widget/StaggeredGridLayoutManager;-><init>(II)V |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/camera/CircleTabView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V |
|
|
|
.line 35 |
|
return-void |
|
|
|
.line 24 |
|
nop |
|
|
|
:array_0 |
|
.array-data 4 |
|
0x7f0201da |
|
0x7f0201db |
|
.end array-data |
|
.end method |
|
|
|
.method static synthetic access$100(Lcom/viatech/camera/CircleTabView;)[I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 20 |
|
iget-object v0, p0, Lcom/viatech/camera/CircleTabView;->tabData:[I |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public tabSelect(I)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 60 |
|
const/4 v0, 0x0 |
|
|
|
:goto_0 |
|
iget-object v1, p0, Lcom/viatech/camera/CircleTabView;->tabData:[I |
|
|
|
array-length v1, v1 |
|
|
|
if-ge v0, v1, :cond_1 |
|
|
|
.line 61 |
|
if-ne v0, p1, :cond_0 |
|
|
|
.line 62 |
|
iget-object v1, p0, Lcom/viatech/camera/CircleTabView;->tabData:[I |
|
|
|
const v2, 0x7f0201db |
|
|
|
aput v2, v1, v0 |
|
|
|
.line 60 |
|
:goto_1 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 64 |
|
:cond_0 |
|
iget-object v1, p0, Lcom/viatech/camera/CircleTabView;->tabData:[I |
|
|
|
const v2, 0x7f0201da |
|
|
|
aput v2, v1, v0 |
|
|
|
goto :goto_1 |
|
|
|
.line 66 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/viatech/camera/CircleTabView;->tabAdapter:Lcom/viatech/camera/CircleTabView$TabAdapter; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/camera/CircleTabView$TabAdapter;->notifyDataSetChanged()V |
|
|
|
.line 67 |
|
return-void |
|
.end method
|
|
|