GameRefreshHorizontalWithCircleProgress.smali

.class public Lcom/sandboxol/center/view/widget/GameRefreshHorizontalWithCircleProgress;
.super Lcom/scwang/smartrefresh/horizontal/SmartRefreshHorizontal;
.source "GameRefreshHorizontalWithCircleProgress.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 2

    .line 1
    invoke-direct {p0, p1}, Lcom/scwang/smartrefresh/horizontal/SmartRefreshHorizontal;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 3

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/scwang/smartrefresh/horizontal/SmartRefreshHorizontal;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method


# virtual methods
.method public initCircleProgress(Landroid/content/Context;Ljava/lang/String;)V
    .registers 5

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setEnableRefresh(Z)Lcom/scwang/smartrefresh/layout/a/j;

    const/16 v1, 0x64

    .line 2
    invoke-virtual {p0, v1}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setReboundDuration(I)Lcom/scwang/smartrefresh/layout/a/j;

    .line 3
    invoke-virtual {p0, v0}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setEnableAutoLoadMore(Z)Lcom/scwang/smartrefresh/layout/a/j;

    .line 4
    new-instance v0, Lcom/sandboxol/center/view/widget/GameLoadMoreFooter;

    invoke-direct {v0, p1, p2}, Lcom/sandboxol/center/view/widget/GameLoadMoreFooter;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    const/high16 p2, 0x428c0000    # 70.0f

    .line 5
    invoke-static {p1, p2}, Lcom/sandboxol/common/utils/SizeUtil;->dp2px(Landroid/content/Context;F)F

    move-result p1

    float-to-int p1, p1

    const/4 p2, -0x1

    .line 6
    invoke-virtual {p0, v0, p2, p1}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setRefreshFooter(Lcom/scwang/smartrefresh/layout/a/f;II)Lcom/scwang/smartrefresh/layout/a/j;

    return-void
.end method