- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
163 lines
4.7 KiB
Smali
163 lines
4.7 KiB
Smali
.class Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;
|
|
.super Landroid/graphics/drawable/shapes/OvalShape;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/swiperefreshlayout/widget/CircleImageView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = "OvalShadow"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mRadialGradient:Landroid/graphics/RadialGradient;
|
|
|
|
.field private mShadowPaint:Landroid/graphics/Paint;
|
|
|
|
.field final synthetic this$0:Landroidx/swiperefreshlayout/widget/CircleImageView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/swiperefreshlayout/widget/CircleImageView;I)V
|
|
.locals 1
|
|
|
|
iput-object p1, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->this$0:Landroidx/swiperefreshlayout/widget/CircleImageView;
|
|
|
|
.line 132
|
|
invoke-direct {p0}, Landroid/graphics/drawable/shapes/OvalShape;-><init>()V
|
|
|
|
.line 133
|
|
new-instance v0, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->mShadowPaint:Landroid/graphics/Paint;
|
|
|
|
.line 134
|
|
iput p2, p1, Landroidx/swiperefreshlayout/widget/CircleImageView;->mShadowRadius:I
|
|
|
|
.line 135
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/shapes/RectShape;->rect()Landroid/graphics/RectF;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/RectF;->width()F
|
|
|
|
move-result p1
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-direct {p0, p1}, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->updateRadialGradient(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateRadialGradient(I)V
|
|
.locals 8
|
|
|
|
.line 153
|
|
new-instance v7, Landroid/graphics/RadialGradient;
|
|
|
|
div-int/lit8 p1, p1, 0x2
|
|
|
|
int-to-float v2, p1
|
|
|
|
iget-object p1, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->this$0:Landroidx/swiperefreshlayout/widget/CircleImageView;
|
|
|
|
iget p1, p1, Landroidx/swiperefreshlayout/widget/CircleImageView;->mShadowRadius:I
|
|
|
|
int-to-float v3, p1
|
|
|
|
const/high16 p1, 0x3d000000 # 0.03125f
|
|
|
|
const/4 v0, 0x0
|
|
|
|
filled-new-array {p1, v0}, [I
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
sget-object v6, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;
|
|
|
|
move-object v0, v7
|
|
|
|
move v1, v2
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroid/graphics/RadialGradient;-><init>(FFF[I[FLandroid/graphics/Shader$TileMode;)V
|
|
|
|
iput-object v7, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->mRadialGradient:Landroid/graphics/RadialGradient;
|
|
|
|
iget-object p1, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->mShadowPaint:Landroid/graphics/Paint;
|
|
|
|
.line 156
|
|
invoke-virtual {p1, v7}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public draw(Landroid/graphics/Canvas;Landroid/graphics/Paint;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->this$0:Landroidx/swiperefreshlayout/widget/CircleImageView;
|
|
|
|
.line 146
|
|
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->this$0:Landroidx/swiperefreshlayout/widget/CircleImageView;
|
|
|
|
.line 147
|
|
invoke-virtual {v1}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
.line 148
|
|
div-int/lit8 v0, v0, 0x2
|
|
|
|
int-to-float v2, v0
|
|
|
|
div-int/lit8 v1, v1, 0x2
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget-object v3, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->mShadowPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {p1, v2, v1, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
|
|
|
|
iget-object v3, p0, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->this$0:Landroidx/swiperefreshlayout/widget/CircleImageView;
|
|
|
|
.line 149
|
|
iget v3, v3, Landroidx/swiperefreshlayout/widget/CircleImageView;->mShadowRadius:I
|
|
|
|
sub-int/2addr v0, v3
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-virtual {p1, v2, v1, v0, p2}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onResize(FF)V
|
|
.locals 0
|
|
|
|
.line 140
|
|
invoke-super {p0, p1, p2}, Landroid/graphics/drawable/shapes/Shape;->onResize(FF)V
|
|
|
|
float-to-int p1, p1
|
|
|
|
.line 141
|
|
invoke-direct {p0, p1}, Landroidx/swiperefreshlayout/widget/CircleImageView$OvalShadow;->updateRadialGradient(I)V
|
|
|
|
return-void
|
|
.end method
|