205 lines
5.1 KiB
Smali
205 lines
5.1 KiB
Smali
.class public abstract Landroidx/constraintlayout/widget/VirtualLayout;
|
|
.super Landroidx/constraintlayout/widget/ConstraintHelper;
|
|
.source "VirtualLayout.java"
|
|
|
|
|
|
# instance fields
|
|
.field private mApplyElevationOnAttach:Z
|
|
|
|
.field private mApplyVisibilityOnAttach:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public init(Landroid/util/AttributeSet;)V
|
|
.locals 5
|
|
|
|
invoke-super {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;->init(Landroid/util/AttributeSet;)V
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout:[I
|
|
|
|
invoke-virtual {v0, p1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->getIndexCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getIndex(I)I
|
|
|
|
move-result v2
|
|
|
|
sget v3, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout_android_visibility:I
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ne v2, v3, :cond_0
|
|
|
|
iput-boolean v4, p0, Landroidx/constraintlayout/widget/VirtualLayout;->mApplyVisibilityOnAttach:Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
sget v3, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout_android_elevation:I
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
iput-boolean v4, p0, Landroidx/constraintlayout/widget/VirtualLayout;->mApplyElevationOnAttach:Z
|
|
|
|
:cond_1
|
|
:goto_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAttachedToWindow()V
|
|
.locals 6
|
|
|
|
invoke-super {p0}, Landroidx/constraintlayout/widget/ConstraintHelper;->onAttachedToWindow()V
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/widget/VirtualLayout;->mApplyVisibilityOnAttach:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/widget/VirtualLayout;->mApplyElevationOnAttach:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
instance-of v1, v0, Landroidx/constraintlayout/widget/ConstraintLayout;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
check-cast v0, Landroidx/constraintlayout/widget/ConstraintLayout;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getElevation()F
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
iget v4, p0, Landroidx/constraintlayout/widget/ConstraintHelper;->mCount:I
|
|
|
|
if-ge v3, v4, :cond_3
|
|
|
|
iget-object v4, p0, Landroidx/constraintlayout/widget/ConstraintHelper;->mIds:[I
|
|
|
|
aget v4, v4, v3
|
|
|
|
invoke-virtual {v0, v4}, Landroidx/constraintlayout/widget/ConstraintLayout;->getViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
iget-boolean v5, p0, Landroidx/constraintlayout/widget/VirtualLayout;->mApplyVisibilityOnAttach:Z
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
invoke-virtual {v4, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_1
|
|
iget-boolean v5, p0, Landroidx/constraintlayout/widget/VirtualLayout;->mApplyElevationOnAttach:Z
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
const/4 v5, 0x0
|
|
|
|
cmpl-float v5, v2, v5
|
|
|
|
if-lez v5, :cond_2
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getTranslationZ()F
|
|
|
|
move-result v5
|
|
|
|
add-float/2addr v5, v2
|
|
|
|
invoke-virtual {v4, v5}, Landroid/view/View;->setTranslationZ(F)V
|
|
|
|
:cond_2
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMeasure(Landroidx/constraintlayout/solver/widgets/VirtualLayout;II)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setElevation(F)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/view/View;->setElevation(F)V
|
|
|
|
invoke-virtual {p0}, Landroidx/constraintlayout/widget/ConstraintHelper;->applyLayoutFeatures()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisibility(I)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
invoke-virtual {p0}, Landroidx/constraintlayout/widget/ConstraintHelper;->applyLayoutFeatures()V
|
|
|
|
return-void
|
|
.end method
|