67 lines
1.7 KiB
Smali
67 lines
1.7 KiB
Smali
.class public Lcom/moji/novice/component/PictureDetailCollectionComponent;
|
|
.super Ljava/lang/Object;
|
|
.source "PictureDetailCollectionComponent.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/novice/guide/Component;
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/graphics/Rect;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/graphics/Rect;)V
|
|
.locals 0
|
|
|
|
.line 20
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 21
|
|
iput-object p1, p0, Lcom/moji/novice/component/PictureDetailCollectionComponent;->a:Landroid/graphics/Rect;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/view/LayoutInflater;)Landroid/view/View;
|
|
.locals 3
|
|
|
|
.line 26
|
|
sget v0, Lcom/moji/novice/R$layout;->layout_picture_detail_collection:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
.line 27
|
|
iget-object v0, p0, Lcom/moji/novice/component/PictureDetailCollectionComponent;->a:Landroid/graphics/Rect;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/novice/component/PictureDetailCollectionComponent;->a:Landroid/graphics/Rect;
|
|
|
|
iget v0, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 28
|
|
iget-object v0, p0, Lcom/moji/novice/component/PictureDetailCollectionComponent;->a:Landroid/graphics/Rect;
|
|
|
|
iget v0, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
iget-object v1, p0, Lcom/moji/novice/component/PictureDetailCollectionComponent;->a:Landroid/graphics/Rect;
|
|
|
|
iget v1, v1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p1, v0, v1, v2, v2}, Landroid/view/View;->setPadding(IIII)V
|
|
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|