.class Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;
.super Landroid/support/v7/widget/RecyclerView$ViewHolder;
.source "ChannelAdapter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/feed/adapter/ChannelAdapter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "PinViewHolder"
.end annotation


# instance fields
.field final synthetic n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter;

.field private o:Landroid/widget/TextView;

.field private p:Landroid/widget/ImageView;

.field private q:Landroid/widget/ImageView;

.field private r:Landroid/view/View;

.field private s:Landroid/widget/ImageView;


# direct methods
.method public constructor <init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/View;)V
    .locals 4

    .line 850
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter;

    .line 851
    invoke-direct {p0, p2}, Landroid/support/v7/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 852
    sget v0, Lcom/moji/mjweather/feed/R$id;->tv_name:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->o:Landroid/widget/TextView;

    .line 853
    sget v0, Lcom/moji/mjweather/feed/R$id;->iv_img:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->p:Landroid/widget/ImageView;

    .line 854
    sget v0, Lcom/moji/mjweather/feed/R$id;->iv_action:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->q:Landroid/widget/ImageView;

    .line 855
    sget v0, Lcom/moji/mjweather/feed/R$id;->rl_root:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->r:Landroid/view/View;

    .line 856
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->q:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 857
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->o:Landroid/widget/TextView;

    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;)Landroid/content/Context;

    move-result-object v2

    sget v3, Lcom/moji/mjweather/feed/R$color;->c_80_1a1a1a:I

    invoke-static {v2, v3}, Lcom/moji/mjweather/feed/utils/ResourceUtils;->a(Landroid/content/Context;I)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 858
    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v0

    .line 859
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;)Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v2, Lcom/moji/mjweather/feed/R$dimen;->channel_manager_item_margin:I

    invoke-virtual {p1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result p1

    mul-int/lit8 p1, p1, 0x8

    sub-int/2addr v0, p1

    div-int/2addr v0, v1

    .line 860
    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->r:Landroid/view/View;

    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Landroid/widget/FrameLayout$LayoutParams;

    .line 861
    iput v0, p1, Landroid/widget/FrameLayout$LayoutParams;->width:I

    .line 862
    iput v0, p1, Landroid/widget/FrameLayout$LayoutParams;->height:I

    .line 863
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->r:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 865
    sget p1, Lcom/moji/mjweather/feed/R$id;->iv_hot:I

    invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->s:Landroid/widget/ImageView;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;)Landroid/widget/TextView;
    .locals 0

    .line 833
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->o:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;)Landroid/widget/ImageView;
    .locals 0

    .line 833
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->s:Landroid/widget/ImageView;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;)Landroid/widget/ImageView;
    .locals 0

    .line 833
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->p:Landroid/widget/ImageView;

    return-object p0
.end method
