.class public Lcom/makeramen/roundedimageview/RoundedImageView; .super Landroid/widget/ImageView; .source "RoundedImageView.java" # static fields .field static final synthetic $assertionsDisabled:Z = false .field public static final DEFAULT_BORDER_WIDTH:F = 0.0f .field public static final DEFAULT_RADIUS:F = 0.0f .field public static final DEFAULT_TILE_MODE:Landroid/graphics/Shader$TileMode; .field private static final SCALE_TYPES:[Landroid/widget/ImageView$ScaleType; .field public static final TAG:Ljava/lang/String; = "RoundedImageView" .field private static final TILE_MODE_CLAMP:I = 0x0 .field private static final TILE_MODE_MIRROR:I = 0x2 .field private static final TILE_MODE_REPEAT:I = 0x1 .field private static final TILE_MODE_UNDEFINED:I = -0x2 # instance fields .field private mBackgroundDrawable:Landroid/graphics/drawable/Drawable; .field private mBackgroundResource:I .field private mBorderColor:Landroid/content/res/ColorStateList; .field private mBorderWidth:F .field private mColorFilter:Landroid/graphics/ColorFilter; .field private mColorMod:Z .field private final mCornerRadii:[F .field private mDrawable:Landroid/graphics/drawable/Drawable; .field private mHasColorFilter:Z .field private mIsOval:Z .field private mMutateBackground:Z .field private mResource:I .field private mScaleType:Landroid/widget/ImageView$ScaleType; .field private mTileModeX:Landroid/graphics/Shader$TileMode; .field private mTileModeY:Landroid/graphics/Shader$TileMode; # direct methods .method static constructor ()V .locals 3 .line 50 sget-object v0, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode; sput-object v0, Lcom/makeramen/roundedimageview/RoundedImageView;->DEFAULT_TILE_MODE:Landroid/graphics/Shader$TileMode; const/16 v0, 0x8 new-array v0, v0, [Landroid/widget/ImageView$ScaleType; const/4 v1, 0x0 .line 51 sget-object v2, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType; aput-object v2, v0, v1 const/4 v1, 0x1 sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType; aput-object v2, v0, v1 const/4 v1, 0x2 sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_START:Landroid/widget/ImageView$ScaleType; aput-object v2, v0, v1 const/4 v1, 0x3 sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType; aput-object v2, v0, v1 const/4 v1, 0x4 sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_END:Landroid/widget/ImageView$ScaleType; aput-object v2, v0, v1 const/4 v1, 0x5 sget-object v2, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType; aput-object v2, v0, v1 const/4 v1, 0x6 sget-object v2, Landroid/widget/ImageView$ScaleType;->CENTER_CROP:Landroid/widget/ImageView$ScaleType; aput-object v2, v0, v1 const/4 v1, 0x7 sget-object v2, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType; aput-object v2, v0, v1 sput-object v0, Lcom/makeramen/roundedimageview/RoundedImageView;->SCALE_TYPES:[Landroid/widget/ImageView$ScaleType; return-void .end method .method public constructor (Landroid/content/Context;)V .locals 0 .line 82 invoke-direct {p0, p1}, Landroid/widget/ImageView;->(Landroid/content/Context;)V const/4 p1, 0x4 new-array p1, p1, [F .line 62 fill-array-data p1, :array_0 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F const/high16 p1, -0x1000000 .line 67 invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList; move-result-object p1 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; const/4 p1, 0x0 .line 68 iput p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F const/4 p1, 0x0 .line 69 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorFilter:Landroid/graphics/ColorFilter; const/4 p1, 0x0 .line 70 iput-boolean p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorMod:Z .line 72 iput-boolean p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mHasColorFilter:Z .line 73 iput-boolean p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mIsOval:Z .line 74 iput-boolean p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mMutateBackground:Z .line 78 sget-object p1, Lcom/makeramen/roundedimageview/RoundedImageView;->DEFAULT_TILE_MODE:Landroid/graphics/Shader$TileMode; iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeX:Landroid/graphics/Shader$TileMode; .line 79 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeY:Landroid/graphics/Shader$TileMode; return-void nop :array_0 .array-data 4 0x0 0x0 0x0 0x0 .end array-data .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;)V .locals 1 const/4 v0, 0x0 .line 86 invoke-direct {p0, p1, p2, v0}, Lcom/makeramen/roundedimageview/RoundedImageView;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;I)V .locals 9 .line 90 invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V const/4 v0, 0x4 new-array v0, v0, [F .line 62 fill-array-data v0, :array_0 iput-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F const/high16 v1, -0x1000000 .line 67 invoke-static {v1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList; move-result-object v2 iput-object v2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; const/4 v2, 0x0 .line 68 iput v2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F const/4 v3, 0x0 .line 69 iput-object v3, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorFilter:Landroid/graphics/ColorFilter; const/4 v3, 0x0 .line 70 iput-boolean v3, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorMod:Z .line 72 iput-boolean v3, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mHasColorFilter:Z .line 73 iput-boolean v3, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mIsOval:Z .line 74 iput-boolean v3, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mMutateBackground:Z .line 78 sget-object v4, Lcom/makeramen/roundedimageview/RoundedImageView;->DEFAULT_TILE_MODE:Landroid/graphics/Shader$TileMode; iput-object v4, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeX:Landroid/graphics/Shader$TileMode; .line 79 iput-object v4, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeY:Landroid/graphics/Shader$TileMode; .line 92 sget-object v4, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView:[I invoke-virtual {p1, p2, v4, p3, v3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray; move-result-object p1 .line 94 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_android_scaleType:I const/4 p3, -0x1 invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getInt(II)I move-result p2 if-ltz p2, :cond_0 .line 96 sget-object v4, Lcom/makeramen/roundedimageview/RoundedImageView;->SCALE_TYPES:[Landroid/widget/ImageView$ScaleType; aget-object p2, v4, p2 invoke-virtual {p0, p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V goto :goto_0 .line 99 :cond_0 sget-object p2, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType; invoke-virtual {p0, p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V .line 102 :goto_0 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_corner_radius:I .line 103 invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I move-result p2 int-to-float p2, p2 .line 105 sget v4, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_corner_radius_top_left:I .line 106 invoke-virtual {p1, v4, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I move-result v4 int-to-float v4, v4 aput v4, v0, v3 .line 107 sget v4, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_corner_radius_top_right:I .line 108 invoke-virtual {p1, v4, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I move-result v4 int-to-float v4, v4 const/4 v5, 0x1 aput v4, v0, v5 const/4 v4, 0x2 .line 109 sget v6, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_corner_radius_bottom_right:I .line 110 invoke-virtual {p1, v6, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I move-result v6 int-to-float v6, v6 aput v6, v0, v4 const/4 v4, 0x3 .line 111 sget v6, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_corner_radius_bottom_left:I .line 112 invoke-virtual {p1, v6, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I move-result v6 int-to-float v6, v6 aput v6, v0, v4 .line 115 array-length v0, v0 move v4, v3 move v6, v4 :goto_1 if-ge v4, v0, :cond_2 .line 116 iget-object v7, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F aget v8, v7, v4 cmpg-float v8, v8, v2 if-gez v8, :cond_1 .line 117 aput v2, v7, v4 goto :goto_2 :cond_1 move v6, v5 :goto_2 add-int/lit8 v4, v4, 0x1 goto :goto_1 :cond_2 if-nez v6, :cond_4 cmpg-float v0, p2, v2 if-gez v0, :cond_3 move p2, v2 .line 127 :cond_3 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F array-length v0, v0 move v4, v3 :goto_3 if-ge v4, v0, :cond_4 .line 128 iget-object v6, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F aput p2, v6, v4 add-int/lit8 v4, v4, 0x1 goto :goto_3 .line 132 :cond_4 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_border_width:I invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I move-result p2 int-to-float p2, p2 iput p2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F cmpg-float p2, p2, v2 if-gez p2, :cond_5 .line 134 iput v2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F .line 137 :cond_5 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_border_color:I invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList; move-result-object p2 iput-object p2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; if-nez p2, :cond_6 .line 139 invoke-static {v1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList; move-result-object p2 iput-object p2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; .line 142 :cond_6 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_mutate_background:I invoke-virtual {p1, p2, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z move-result p2 iput-boolean p2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mMutateBackground:Z .line 143 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_oval:I invoke-virtual {p1, p2, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z move-result p2 iput-boolean p2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mIsOval:Z .line 145 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_tile_mode:I const/4 p3, -0x2 invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getInt(II)I move-result p2 if-eq p2, p3, :cond_7 .line 147 invoke-static {p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->parseTileMode(I)Landroid/graphics/Shader$TileMode; move-result-object v0 invoke-virtual {p0, v0}, Lcom/makeramen/roundedimageview/RoundedImageView;->setTileModeX(Landroid/graphics/Shader$TileMode;)V .line 148 invoke-static {p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->parseTileMode(I)Landroid/graphics/Shader$TileMode; move-result-object p2 invoke-virtual {p0, p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->setTileModeY(Landroid/graphics/Shader$TileMode;)V .line 151 :cond_7 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_tile_mode_x:I .line 152 invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getInt(II)I move-result p2 if-eq p2, p3, :cond_8 .line 154 invoke-static {p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->parseTileMode(I)Landroid/graphics/Shader$TileMode; move-result-object p2 invoke-virtual {p0, p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->setTileModeX(Landroid/graphics/Shader$TileMode;)V .line 157 :cond_8 sget p2, Lcom/makeramen/roundedimageview/R$styleable;->RoundedImageView_riv_tile_mode_y:I .line 158 invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getInt(II)I move-result p2 if-eq p2, p3, :cond_9 .line 160 invoke-static {p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->parseTileMode(I)Landroid/graphics/Shader$TileMode; move-result-object p2 invoke-virtual {p0, p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->setTileModeY(Landroid/graphics/Shader$TileMode;)V .line 163 :cond_9 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V .line 164 invoke-direct {p0, v5}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 166 iget-boolean p2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mMutateBackground:Z if-eqz p2, :cond_a .line 172 iget-object p2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundDrawable:Landroid/graphics/drawable/Drawable; invoke-super {p0, p2}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V .line 175 :cond_a invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V return-void nop :array_0 .array-data 4 0x0 0x0 0x0 0x0 .end array-data .end method .method private applyColorMod()V .locals 2 .line 344 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; if-eqz v0, :cond_0 iget-boolean v1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorMod:Z if-eqz v1, :cond_0 .line 345 invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable; move-result-object v0 iput-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; .line 346 iget-boolean v1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mHasColorFilter:Z if-eqz v1, :cond_0 .line 347 iget-object v1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorFilter:Landroid/graphics/ColorFilter; invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V :cond_0 return-void .end method .method private static parseTileMode(I)Landroid/graphics/Shader$TileMode; .locals 1 if-eqz p0, :cond_2 const/4 v0, 0x1 if-eq p0, v0, :cond_1 const/4 v0, 0x2 if-eq p0, v0, :cond_0 const/4 p0, 0x0 return-object p0 .line 185 :cond_0 sget-object p0, Landroid/graphics/Shader$TileMode;->MIRROR:Landroid/graphics/Shader$TileMode; return-object p0 .line 183 :cond_1 sget-object p0, Landroid/graphics/Shader$TileMode;->REPEAT:Landroid/graphics/Shader$TileMode; return-object p0 .line 181 :cond_2 sget-object p0, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode; return-object p0 .end method .method private resolveBackgroundResource()Landroid/graphics/drawable/Drawable; .locals 4 .line 300 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->getResources()Landroid/content/res/Resources; move-result-object v0 const/4 v1, 0x0 if-nez v0, :cond_0 return-object v1 .line 305 :cond_0 iget v2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundResource:I if-eqz v2, :cond_1 .line 307 :try_start_0 invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object v1 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception v0 .line 309 new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "Unable to find resource: " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 iget v3, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundResource:I invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 const-string v3, "RoundedImageView" invoke-static {v3, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I const/4 v0, 0x0 .line 311 iput v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundResource:I .line 314 :cond_1 :goto_0 invoke-static {v1}, Lcom/makeramen/roundedimageview/RoundedDrawable;->fromDrawable(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object v0 return-object v0 .end method .method private resolveResource()Landroid/graphics/drawable/Drawable; .locals 4 .line 262 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->getResources()Landroid/content/res/Resources; move-result-object v0 const/4 v1, 0x0 if-nez v0, :cond_0 return-object v1 .line 267 :cond_0 iget v2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mResource:I if-eqz v2, :cond_1 .line 269 :try_start_0 invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object v1 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception v0 .line 271 new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "Unable to find resource: " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 iget v3, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mResource:I invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 const-string v3, "RoundedImageView" invoke-static {v3, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I const/4 v0, 0x0 .line 273 iput v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mResource:I .line 276 :cond_1 :goto_0 invoke-static {v1}, Lcom/makeramen/roundedimageview/RoundedDrawable;->fromDrawable(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object v0 return-object v0 .end method .method private updateAttrs(Landroid/graphics/drawable/Drawable;Landroid/widget/ImageView$ScaleType;)V .locals 4 if-nez p1, :cond_0 return-void .line 358 :cond_0 instance-of v0, p1, Lcom/makeramen/roundedimageview/RoundedDrawable; const/4 v1, 0x0 if-eqz v0, :cond_2 .line 359 check-cast p1, Lcom/makeramen/roundedimageview/RoundedDrawable; .line 360 invoke-virtual {p1, p2}, Lcom/makeramen/roundedimageview/RoundedDrawable;->setScaleType(Landroid/widget/ImageView$ScaleType;)Lcom/makeramen/roundedimageview/RoundedDrawable; move-result-object p2 iget v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F .line 361 invoke-virtual {p2, v0}, Lcom/makeramen/roundedimageview/RoundedDrawable;->setBorderWidth(F)Lcom/makeramen/roundedimageview/RoundedDrawable; move-result-object p2 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; .line 362 invoke-virtual {p2, v0}, Lcom/makeramen/roundedimageview/RoundedDrawable;->setBorderColor(Landroid/content/res/ColorStateList;)Lcom/makeramen/roundedimageview/RoundedDrawable; move-result-object p2 iget-boolean v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mIsOval:Z .line 363 invoke-virtual {p2, v0}, Lcom/makeramen/roundedimageview/RoundedDrawable;->setOval(Z)Lcom/makeramen/roundedimageview/RoundedDrawable; move-result-object p2 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeX:Landroid/graphics/Shader$TileMode; .line 364 invoke-virtual {p2, v0}, Lcom/makeramen/roundedimageview/RoundedDrawable;->setTileModeX(Landroid/graphics/Shader$TileMode;)Lcom/makeramen/roundedimageview/RoundedDrawable; move-result-object p2 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeY:Landroid/graphics/Shader$TileMode; .line 365 invoke-virtual {p2, v0}, Lcom/makeramen/roundedimageview/RoundedDrawable;->setTileModeY(Landroid/graphics/Shader$TileMode;)Lcom/makeramen/roundedimageview/RoundedDrawable; .line 367 iget-object p2, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F if-eqz p2, :cond_1 .line 368 aget v0, p2, v1 const/4 v1, 0x1 aget v1, p2, v1 const/4 v2, 0x2 aget v2, p2, v2 const/4 v3, 0x3 aget p2, p2, v3 invoke-virtual {p1, v0, v1, v2, p2}, Lcom/makeramen/roundedimageview/RoundedDrawable;->setCornerRadius(FFFF)Lcom/makeramen/roundedimageview/RoundedDrawable; .line 375 :cond_1 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->applyColorMod()V goto :goto_1 .line 376 :cond_2 instance-of v0, p1, Landroid/graphics/drawable/LayerDrawable; if-eqz v0, :cond_3 .line 378 check-cast p1, Landroid/graphics/drawable/LayerDrawable; .line 379 invoke-virtual {p1}, Landroid/graphics/drawable/LayerDrawable;->getNumberOfLayers()I move-result v0 :goto_0 if-ge v1, v0, :cond_3 .line 380 invoke-virtual {p1, v1}, Landroid/graphics/drawable/LayerDrawable;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object v2 invoke-direct {p0, v2, p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateAttrs(Landroid/graphics/drawable/Drawable;Landroid/widget/ImageView$ScaleType;)V add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_3 :goto_1 return-void .end method .method private updateBackgroundDrawableAttrs(Z)V .locals 1 .line 322 iget-boolean v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mMutateBackground:Z if-eqz v0, :cond_1 if-eqz p1, :cond_0 .line 324 iget-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundDrawable:Landroid/graphics/drawable/Drawable; invoke-static {p1}, Lcom/makeramen/roundedimageview/RoundedDrawable;->fromDrawable(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object p1 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundDrawable:Landroid/graphics/drawable/Drawable; .line 326 :cond_0 iget-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundDrawable:Landroid/graphics/drawable/Drawable; sget-object v0, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType; invoke-direct {p0, p1, v0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateAttrs(Landroid/graphics/drawable/Drawable;Landroid/widget/ImageView$ScaleType;)V :cond_1 return-void .end method .method private updateDrawableAttrs()V .locals 2 .line 318 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; iget-object v1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mScaleType:Landroid/widget/ImageView$ScaleType; invoke-direct {p0, v0, v1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateAttrs(Landroid/graphics/drawable/Drawable;Landroid/widget/ImageView$ScaleType;)V return-void .end method # virtual methods .method protected drawableStateChanged()V .locals 0 .line 193 invoke-super {p0}, Landroid/widget/ImageView;->drawableStateChanged()V .line 194 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V return-void .end method .method public getBorderColor()I .locals 1 .line 514 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; invoke-virtual {v0}, Landroid/content/res/ColorStateList;->getDefaultColor()I move-result v0 return v0 .end method .method public getBorderColors()Landroid/content/res/ColorStateList; .locals 1 .line 522 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; return-object v0 .end method .method public getBorderWidth()F .locals 1 .line 496 iget v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F return v0 .end method .method public getCornerRadius()F .locals 1 .line 398 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->getMaxCornerRadius()F move-result v0 return v0 .end method .method public getCornerRadius(I)F .locals 1 .line 419 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F aget p1, v0, p1 return p1 .end method .method public getMaxCornerRadius()F .locals 5 .line 406 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F array-length v1, v0 const/4 v2, 0x0 const/4 v3, 0x0 :goto_0 if-ge v3, v1, :cond_0 aget v4, v0, v3 .line 407 invoke-static {v4, v2}, Ljava/lang/Math;->max(FF)F move-result v2 add-int/lit8 v3, v3, 0x1 goto :goto_0 :cond_0 return v2 .end method .method public getScaleType()Landroid/widget/ImageView$ScaleType; .locals 1 .line 199 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mScaleType:Landroid/widget/ImageView$ScaleType; return-object v0 .end method .method public getTileModeX()Landroid/graphics/Shader$TileMode; .locals 1 .line 549 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeX:Landroid/graphics/Shader$TileMode; return-object v0 .end method .method public getTileModeY()Landroid/graphics/Shader$TileMode; .locals 1 .line 562 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeY:Landroid/graphics/Shader$TileMode; return-object v0 .end method .method public isOval()Z .locals 1 .line 538 iget-boolean v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mIsOval:Z return v0 .end method .method public mutateBackground(Z)V .locals 1 .line 579 iget-boolean v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mMutateBackground:Z if-ne v0, p1, :cond_0 return-void .line 581 :cond_0 iput-boolean p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mMutateBackground:Z const/4 p1, 0x1 .line 582 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 583 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V return-void .end method .method public mutatesBackground()Z .locals 1 .line 575 iget-boolean v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mMutateBackground:Z return v0 .end method .method public setBackground(Landroid/graphics/drawable/Drawable;)V .locals 0 .line 281 invoke-virtual {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V return-void .end method .method public setBackgroundColor(I)V .locals 1 .line 295 new-instance v0, Landroid/graphics/drawable/ColorDrawable; invoke-direct {v0, p1}, Landroid/graphics/drawable/ColorDrawable;->(I)V iput-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundDrawable:Landroid/graphics/drawable/Drawable; .line 296 invoke-virtual {p0, v0}, Lcom/makeramen/roundedimageview/RoundedImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V return-void .end method .method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 388 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundDrawable:Landroid/graphics/drawable/Drawable; const/4 p1, 0x1 .line 389 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 391 iget-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundDrawable:Landroid/graphics/drawable/Drawable; invoke-super {p0, p1}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V return-void .end method .method public setBackgroundResource(I)V .locals 1 .line 286 iget v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundResource:I if-eq v0, p1, :cond_0 .line 287 iput p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundResource:I .line 288 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->resolveBackgroundResource()Landroid/graphics/drawable/Drawable; move-result-object p1 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBackgroundDrawable:Landroid/graphics/drawable/Drawable; .line 289 invoke-virtual {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V :cond_0 return-void .end method .method public setBorderColor(I)V .locals 0 .line 518 invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList; move-result-object p1 invoke-virtual {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->setBorderColor(Landroid/content/res/ColorStateList;)V return-void .end method .method public setBorderColor(Landroid/content/res/ColorStateList;)V .locals 1 .line 526 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 return-void :cond_0 if-eqz p1, :cond_1 goto :goto_0 :cond_1 const/high16 p1, -0x1000000 .line 529 invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList; move-result-object p1 :goto_0 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderColor:Landroid/content/res/ColorStateList; .line 530 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V const/4 p1, 0x0 .line 531 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 532 iget p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F const/4 v0, 0x0 cmpl-float p1, p1, v0 if-lez p1, :cond_2 .line 533 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V :cond_2 return-void .end method .method public setBorderWidth(F)V .locals 1 .line 504 iget v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F cmpl-float v0, v0, p1 if-nez v0, :cond_0 return-void .line 506 :cond_0 iput p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mBorderWidth:F .line 507 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V const/4 p1, 0x0 .line 508 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 509 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V return-void .end method .method public setBorderWidth(I)V .locals 1 .line 500 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F move-result p1 invoke-virtual {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->setBorderWidth(F)V return-void .end method .method public setColorFilter(Landroid/graphics/ColorFilter;)V .locals 1 .line 331 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorFilter:Landroid/graphics/ColorFilter; if-eq v0, p1, :cond_0 .line 332 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorFilter:Landroid/graphics/ColorFilter; const/4 p1, 0x1 .line 333 iput-boolean p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mHasColorFilter:Z .line 334 iput-boolean p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mColorMod:Z .line 335 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->applyColorMod()V .line 336 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V :cond_0 return-void .end method .method public setCornerRadius(F)V .locals 0 .line 448 invoke-virtual {p0, p1, p1, p1, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->setCornerRadius(FFFF)V return-void .end method .method public setCornerRadius(FFFF)V .locals 6 .line 478 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F const/4 v1, 0x0 aget v2, v0, v1 cmpl-float v2, v2, p1 const/4 v3, 0x2 const/4 v4, 0x3 const/4 v5, 0x1 if-nez v2, :cond_0 aget v2, v0, v5 cmpl-float v2, v2, p2 if-nez v2, :cond_0 aget v2, v0, v3 cmpl-float v2, v2, p4 if-nez v2, :cond_0 aget v2, v0, v4 cmpl-float v2, v2, p3 if-nez v2, :cond_0 return-void .line 485 :cond_0 aput p1, v0, v1 .line 486 aput p2, v0, v5 .line 487 aput p3, v0, v4 .line 488 aput p4, v0, v3 .line 490 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V .line 491 invoke-direct {p0, v1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 492 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V return-void .end method .method public setCornerRadius(IF)V .locals 2 .line 458 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mCornerRadii:[F aget v1, v0, p1 cmpl-float v1, v1, p2 if-nez v1, :cond_0 return-void .line 461 :cond_0 aput p2, v0, p1 .line 463 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V const/4 p1, 0x0 .line 464 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 465 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V return-void .end method .method public setCornerRadiusDimen(I)V .locals 1 .line 428 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F move-result p1 .line 429 invoke-virtual {p0, p1, p1, p1, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->setCornerRadius(FFFF)V return-void .end method .method public setCornerRadiusDimen(II)V .locals 1 .line 439 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I move-result p2 int-to-float p2, p2 invoke-virtual {p0, p1, p2}, Lcom/makeramen/roundedimageview/RoundedImageView;->setCornerRadius(IF)V return-void .end method .method public setImageBitmap(Landroid/graphics/Bitmap;)V .locals 1 const/4 v0, 0x0 .line 240 iput v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mResource:I .line 241 invoke-static {p1}, Lcom/makeramen/roundedimageview/RoundedDrawable;->fromBitmap(Landroid/graphics/Bitmap;)Lcom/makeramen/roundedimageview/RoundedDrawable; move-result-object p1 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; .line 242 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V .line 243 iget-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V return-void .end method .method public setImageDrawable(Landroid/graphics/drawable/Drawable;)V .locals 1 const/4 v0, 0x0 .line 232 iput v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mResource:I .line 233 invoke-static {p1}, Lcom/makeramen/roundedimageview/RoundedDrawable;->fromDrawable(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object p1 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; .line 234 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V .line 235 iget-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V return-void .end method .method public setImageResource(I)V .locals 1 .line 248 iget v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mResource:I if-eq v0, p1, :cond_0 .line 249 iput p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mResource:I .line 250 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->resolveResource()Landroid/graphics/drawable/Drawable; move-result-object p1 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; .line 251 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V .line 252 iget-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mDrawable:Landroid/graphics/drawable/Drawable; invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V :cond_0 return-void .end method .method public setImageURI(Landroid/net/Uri;)V .locals 0 .line 257 invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageURI(Landroid/net/Uri;)V .line 258 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->getDrawable()Landroid/graphics/drawable/Drawable; move-result-object p1 invoke-virtual {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V return-void .end method .method public setOval(Z)V .locals 0 .line 542 iput-boolean p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mIsOval:Z .line 543 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V const/4 p1, 0x0 .line 544 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 545 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V return-void .end method .method public setScaleType(Landroid/widget/ImageView$ScaleType;)V .locals 2 .line 206 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mScaleType:Landroid/widget/ImageView$ScaleType; if-eq v0, p1, :cond_0 .line 207 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mScaleType:Landroid/widget/ImageView$ScaleType; .line 209 sget-object v0, Lcom/makeramen/roundedimageview/RoundedImageView$1;->$SwitchMap$android$widget$ImageView$ScaleType:[I invoke-virtual {p1}, Landroid/widget/ImageView$ScaleType;->ordinal()I move-result v1 aget v0, v0, v1 packed-switch v0, :pswitch_data_0 .line 220 invoke-super {p0, p1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V goto :goto_0 .line 217 :pswitch_0 sget-object p1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType; invoke-super {p0, p1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V .line 224 :goto_0 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V const/4 p1, 0x0 .line 225 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 226 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V :cond_0 return-void nop :pswitch_data_0 .packed-switch 0x1 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_0 .end packed-switch .end method .method public setTileModeX(Landroid/graphics/Shader$TileMode;)V .locals 1 .line 553 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeX:Landroid/graphics/Shader$TileMode; if-ne v0, p1, :cond_0 return-void .line 555 :cond_0 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeX:Landroid/graphics/Shader$TileMode; .line 556 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V const/4 p1, 0x0 .line 557 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 558 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V return-void .end method .method public setTileModeY(Landroid/graphics/Shader$TileMode;)V .locals 1 .line 566 iget-object v0, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeY:Landroid/graphics/Shader$TileMode; if-ne v0, p1, :cond_0 return-void .line 568 :cond_0 iput-object p1, p0, Lcom/makeramen/roundedimageview/RoundedImageView;->mTileModeY:Landroid/graphics/Shader$TileMode; .line 569 invoke-direct {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateDrawableAttrs()V const/4 p1, 0x0 .line 570 invoke-direct {p0, p1}, Lcom/makeramen/roundedimageview/RoundedImageView;->updateBackgroundDrawableAttrs(Z)V .line 571 invoke-virtual {p0}, Lcom/makeramen/roundedimageview/RoundedImageView;->invalidate()V return-void .end method