2019-07-24 11:27:29 +00:00
|
|
|
.class public Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.super Landroid/view/ViewGroup;
|
|
|
|
.source "SlidingPaneLayout.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$AccessibilityDelegate;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SimplePanelSlideListener;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field private static final DEFAULT_FADE_COLOR:I = -0x33333334
|
|
|
|
|
|
|
|
.field private static final DEFAULT_OVERHANG_SIZE:I = 0x20
|
|
|
|
|
|
|
|
.field private static final MIN_FLING_VELOCITY:I = 0x190
|
|
|
|
|
|
|
|
.field private static final TAG:Ljava/lang/String; = "SlidingPaneLayout"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private mCanSlide:Z
|
|
|
|
|
|
|
|
.field private mCoveredFadeColor:I
|
|
|
|
|
|
|
|
.field private mDisplayListReflectionLoaded:Z
|
|
|
|
|
|
|
|
.field final mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
.field private mFirstLayout:Z
|
|
|
|
|
|
|
|
.field private mGetDisplayList:Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
.field private mInitialMotionX:F
|
|
|
|
|
|
|
|
.field private mInitialMotionY:F
|
|
|
|
|
|
|
|
.field mIsUnableToDrag:Z
|
|
|
|
|
|
|
|
.field private final mOverhangSize:I
|
|
|
|
|
|
|
|
.field private mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
.field private mParallaxBy:I
|
|
|
|
|
|
|
|
.field private mParallaxOffset:F
|
|
|
|
|
|
|
|
.field final mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayList<",
|
|
|
|
"Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field mPreservedOpenState:Z
|
|
|
|
|
|
|
|
.field private mRecreateDisplayList:Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
.field private mShadowDrawableLeft:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
.field private mShadowDrawableRight:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
.field mSlideOffset:F
|
|
|
|
|
|
|
|
.field mSlideRange:I
|
|
|
|
|
|
|
|
.field mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
.field private mSliderFadeColor:I
|
|
|
|
|
|
|
|
.field private final mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
const p2, -0x33333334
|
|
|
|
|
|
|
|
iput p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
iput-boolean p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
new-instance p3, Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
|
|
|
|
iput-object p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
new-instance p3, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
iput-object p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget p1, p1, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
|
|
|
|
const/high16 p3, 0x42000000 # 32.0f
|
|
|
|
|
|
|
|
mul-float p3, p3, p1
|
|
|
|
|
|
|
|
const/high16 v0, 0x3f000000 # 0.5f
|
|
|
|
|
|
|
|
add-float/2addr p3, v0
|
|
|
|
|
|
|
|
float-to-int p3, p3
|
|
|
|
|
|
|
|
iput p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mOverhangSize:I
|
|
|
|
|
|
|
|
const/4 p3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setWillNotDraw(Z)V
|
|
|
|
|
|
|
|
new-instance p3, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$AccessibilityDelegate;
|
|
|
|
|
|
|
|
invoke-direct {p3, p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$AccessibilityDelegate;-><init>(Landroidx/slidingpanelayout/widget/SlidingPaneLayout;)V
|
|
|
|
|
|
|
|
invoke-static {p0, p3}, Landroidx/core/view/ViewCompat;->setAccessibilityDelegate(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V
|
|
|
|
|
|
|
|
invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V
|
|
|
|
|
|
|
|
new-instance p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;-><init>(Landroidx/slidingpanelayout/widget/SlidingPaneLayout;)V
|
|
|
|
|
|
|
|
invoke-static {p0, v0, p2}, Landroidx/customview/widget/ViewDragHelper;->create(Landroid/view/ViewGroup;FLandroidx/customview/widget/ViewDragHelper$Callback;)Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iput-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
const/high16 p3, 0x43c80000 # 400.0f
|
|
|
|
|
|
|
|
mul-float p1, p1, p3
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/customview/widget/ViewDragHelper;->setMinVelocity(F)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private closePane(Landroid/view/View;I)Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->smoothSlideTo(FI)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
iput-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private dimChildView(Landroid/view/View;FI)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
cmpl-float v1, p2, v1
|
|
|
|
|
|
|
|
if-lez v1, :cond_2
|
|
|
|
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
|
|
|
|
const/high16 v1, -0x1000000
|
|
|
|
|
|
|
|
and-int/2addr v1, p3
|
|
|
|
|
|
|
|
ushr-int/lit8 v1, v1, 0x18
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
mul-float v1, v1, p2
|
|
|
|
|
|
|
|
float-to-int p2, v1
|
|
|
|
|
|
|
|
shl-int/lit8 p2, p2, 0x18
|
|
|
|
|
|
|
|
const v1, 0xffffff
|
|
|
|
|
|
|
|
and-int/2addr p3, v1
|
|
|
|
|
|
|
|
or-int/2addr p2, p3
|
|
|
|
|
|
|
|
iget-object p3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
|
|
|
|
new-instance p3, Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Landroid/graphics/Paint;-><init>()V
|
|
|
|
|
|
|
|
iput-object p3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object p3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
new-instance v1, Landroid/graphics/PorterDuffColorFilter;
|
|
|
|
|
|
|
|
sget-object v2, Landroid/graphics/PorterDuff$Mode;->SRC_OVER:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
invoke-direct {v1, p2, v2}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
|
|
|
|
|
|
|
|
invoke-virtual {p3, v1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayerType()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
const/4 p3, 0x2
|
|
|
|
|
|
|
|
if-eq p2, p3, :cond_1
|
|
|
|
|
|
|
|
iget-object p2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3, p2}, Landroid/view/View;->setLayerType(ILandroid/graphics/Paint;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->invalidateChildRegion(Landroid/view/View;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayerType()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
iget-object p2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
iget-object p2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
const/4 p3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;-><init>(Landroidx/slidingpanelayout/widget/SlidingPaneLayout;Landroid/view/View;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private openPane(Landroid/view/View;I)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->smoothSlideTo(FI)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private parallaxOtherViews(F)V
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-boolean v2, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget v1, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget v1, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-gtz v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-ge v3, v2, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {p0, v3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
iget-object v5, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
if-eq v4, v5, :cond_4
|
|
|
|
|
|
|
|
iget v5, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxOffset:F
|
|
|
|
|
|
|
|
const/high16 v6, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
sub-float v5, v6, v5
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
int-to-float v8, v7
|
|
|
|
|
|
|
|
mul-float v5, v5, v8
|
|
|
|
|
|
|
|
float-to-int v5, v5
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxOffset:F
|
|
|
|
|
|
|
|
sub-float v8, v6, p1
|
|
|
|
|
|
|
|
int-to-float v7, v7
|
|
|
|
|
|
|
|
mul-float v8, v8, v7
|
|
|
|
|
|
|
|
float-to-int v7, v8
|
|
|
|
|
|
|
|
sub-int/2addr v5, v7
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
neg-int v5, v5
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v4, v5}, Landroid/view/View;->offsetLeftAndRight(I)V
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
iget v5, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxOffset:F
|
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
sub-float/2addr v5, v6
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sub-float v5, v6, v5
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
iget v6, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCoveredFadeColor:I
|
|
|
|
|
|
|
|
invoke-direct {p0, v4, v5, v6}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dimChildView(Landroid/view/View;FI)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static viewIsOpaque(Landroid/view/View;)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->isOpaque()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v2, 0x12
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getOpacity()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
if-ne p0, v0, :cond_2
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v3
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method protected canScroll(Landroid/view/View;ZIII)Z
|
|
|
|
.locals 12
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
instance-of v1, v0, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getScrollX()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getScrollY()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v5, v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ltz v5, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v5}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
add-int v6, p4, v3
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
if-lt v6, v8, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
if-ge v6, v8, :cond_0
|
|
|
|
|
|
|
|
add-int v8, p5, v4
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-lt v8, v9, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-ge v8, v9, :cond_0
|
|
|
|
|
|
|
|
const/4 v9, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
sub-int v10, v6, v10
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
sub-int v11, v8, v6
|
|
|
|
|
|
|
|
move-object v6, p0
|
|
|
|
|
|
|
|
move v8, v9
|
|
|
|
|
|
|
|
move v9, p3
|
|
|
|
|
|
|
|
invoke-virtual/range {v6 .. v11}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->canScroll(Landroid/view/View;ZIII)Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v5, v5, -0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
move v1, p3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move v1, p3
|
|
|
|
|
|
|
|
neg-int v1, v1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->canScrollHorizontally(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public canSlide()Z
|
|
|
|
.locals 1
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public closePane()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->closePane(Landroid/view/View;I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public computeScroll()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/customview/widget/ViewDragHelper;->continueSettling(Z)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/customview/widget/ViewDragHelper;->abort()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method dispatchOnPanelClosed(Landroid/view/View;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;->onPanelClosed(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 p1, 0x20
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->sendAccessibilityEvent(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method dispatchOnPanelOpened(Landroid/view/View;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;->onPanelOpened(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 p1, 0x20
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->sendAccessibilityEvent(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method dispatchOnPanelSlide(Landroid/view/View;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
invoke-interface {v0, p1, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;->onPanelSlide(Landroid/view/View;F)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public draw(Landroid/graphics/Canvas;)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mShadowDrawableRight:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mShadowDrawableLeft:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-le v1, v2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
add-int/2addr v4, v1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sub-int v4, v1, v4
|
|
|
|
|
|
|
|
move v6, v4
|
|
|
|
|
|
|
|
move v4, v1
|
|
|
|
|
|
|
|
move v1, v6
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual {v0, v1, v2, v4, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
:goto_3
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-boolean v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
iget-boolean v0, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->getClipBounds(Landroid/graphics/Rect;)Z
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v2, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
iput v2, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v2, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
iput v2, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->clipRect(Landroid/graphics/Rect;)Z
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
|
|
|
|
return p2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;-><init>()V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getCoveredFadeColor()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCoveredFadeColor:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getParallaxDistance()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSliderFadeColor()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method invalidateChildRegion(Landroid/view/View;)V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v1, 0x11
|
|
|
|
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-object v0, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->setLayerPaint(Landroid/view/View;Landroid/graphics/Paint;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v1, 0x10
|
|
|
|
|
|
|
|
if-lt v0, v1, :cond_4
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDisplayListReflectionLoaded:Z
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
const-string v3, "SlidingPaneLayout"
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-class v0, Landroid/view/View;
|
|
|
|
|
|
|
|
const-string v4, "getDisplayList"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4, v1}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mGetDisplayList:Ljava/lang/reflect/Method;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
const-string v4, "Couldn\'t fetch getDisplayList method; dimming won\'t work right."
|
|
|
|
|
|
|
|
invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
:try_start_1
|
|
|
|
const-class v0, Landroid/view/View;
|
|
|
|
|
|
|
|
const-string v4, "mRecreateDisplayList"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mRecreateDisplayList:Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mRecreateDisplayList:Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/reflect/Field;->setAccessible(Z)V
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/lang/NoSuchFieldException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
const-string v4, "Couldn\'t fetch mRecreateDisplayList field; dimming will be slow."
|
|
|
|
|
|
|
|
invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
iput-boolean v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDisplayListReflectionLoaded:Z
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mGetDisplayList:Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mRecreateDisplayList:Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:try_start_2
|
|
|
|
invoke-virtual {v0, p1, v2}, Ljava/lang/reflect/Field;->setBoolean(Ljava/lang/Object;Z)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mGetDisplayList:Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
const-string v1, "Error refreshing display list state"
|
|
|
|
|
|
|
|
invoke-static {v3, v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->invalidate()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
:goto_3
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-static {p0, v0, v1, v2, p1}, Landroidx/core/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;IIII)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method isDimmed(Landroid/view/View;)Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
iget-boolean p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
cmpl-float p1, p1, v1
|
|
|
|
|
|
|
|
if-lez p1, :cond_1
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method isLayoutRtlSupport()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isOpen()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
cmpl-float v0, v0, v1
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isSlideable()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onAttachedToWindow()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onDetachedFromWindow()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v1, v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;->run()V
|
|
|
|
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-le v1, v2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
float-to-int v4, v4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
float-to-int v5, v5
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1, v4, v5}, Landroidx/customview/widget/ViewDragHelper;->isViewUnder(Landroid/view/View;II)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
xor-int/2addr v1, v2
|
|
|
|
|
|
|
|
iput-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mIsUnableToDrag:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
goto/16 :goto_4
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_8
|
|
|
|
|
|
|
|
if-ne v0, v2, :cond_2
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionX:F
|
|
|
|
|
|
|
|
sub-float/2addr v0, v4
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionY:F
|
|
|
|
|
|
|
|
sub-float/2addr v1, v4
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroidx/customview/widget/ViewDragHelper;->getTouchSlop()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
int-to-float v4, v4
|
|
|
|
|
|
|
|
cmpl-float v4, v0, v4
|
|
|
|
|
|
|
|
if-lez v4, :cond_5
|
|
|
|
|
|
|
|
cmpl-float v0, v1, v0
|
|
|
|
|
|
|
|
if-lez v0, :cond_5
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/customview/widget/ViewDragHelper;->cancel()V
|
|
|
|
|
|
|
|
iput-boolean v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mIsUnableToDrag:Z
|
|
|
|
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iput-boolean v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mIsUnableToDrag:Z
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionX:F
|
|
|
|
|
|
|
|
iput v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionY:F
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
iget-object v5, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
float-to-int v0, v0
|
|
|
|
|
|
|
|
float-to-int v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v4, v5, v0, v1}, Landroidx/customview/widget/ViewDragHelper;->isViewUnder(Landroid/view/View;II)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isDimmed(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Landroidx/customview/widget/ViewDragHelper;->shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_2
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_3
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/customview/widget/ViewDragHelper;->cancel()V
|
|
|
|
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
:goto_4
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/customview/widget/ViewDragHelper;->cancel()V
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onLayout(ZIIII)V
|
|
|
|
.locals 18
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
iget-object v3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
const/4 v4, 0x2
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Landroidx/customview/widget/ViewDragHelper;->setEdgeTrackingEnabled(I)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Landroidx/customview/widget/ViewDragHelper;->setEdgeTrackingEnabled(I)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
sub-int v3, p4, p2
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingTop()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
iget-boolean v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
if-eqz v8, :cond_4
|
|
|
|
|
|
|
|
iget-boolean v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
|
|
|
|
iget-boolean v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
|
|
|
|
const/high16 v8, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
iput v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move v11, v4
|
|
|
|
|
|
|
|
move v12, v11
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-ge v4, v7, :cond_b
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v13
|
|
|
|
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v14
|
|
|
|
|
|
|
|
const/16 v15, 0x8
|
|
|
|
|
|
|
|
if-eq v14, v15, :cond_a
|
|
|
|
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v14
|
|
|
|
|
|
|
|
check-cast v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
iget-boolean v2, v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
|
|
|
|
iget v2, v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
iget v8, v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
add-int/2addr v2, v8
|
|
|
|
|
|
|
|
sub-int v8, v3, v5
|
|
|
|
|
|
|
|
iget v10, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mOverhangSize:I
|
|
|
|
|
|
|
|
sub-int v10, v8, v10
|
|
|
|
|
|
|
|
invoke-static {v11, v10}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
sub-int/2addr v10, v12
|
|
|
|
|
|
|
|
sub-int/2addr v10, v2
|
|
|
|
|
|
|
|
iput v10, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
iget v2, v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
iget v2, v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
add-int v16, v12, v2
|
|
|
|
|
|
|
|
add-int v16, v16, v10
|
|
|
|
|
|
|
|
div-int/lit8 v17, v15, 0x2
|
|
|
|
|
|
|
|
add-int v9, v16, v17
|
|
|
|
|
|
|
|
if-le v9, v8, :cond_6
|
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
iput-boolean v8, v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
int-to-float v8, v10
|
|
|
|
|
|
|
|
iget v9, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
mul-float v8, v8, v9
|
|
|
|
|
|
|
|
float-to-int v8, v8
|
|
|
|
|
|
|
|
add-int/2addr v2, v8
|
|
|
|
|
|
|
|
add-int/2addr v2, v12
|
|
|
|
|
|
|
|
int-to-float v8, v8
|
|
|
|
|
|
|
|
iget v9, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
int-to-float v9, v9
|
|
|
|
|
|
|
|
div-float/2addr v8, v9
|
|
|
|
|
|
|
|
iput v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/high16 v9, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
goto :goto_8
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
iget-boolean v2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
|
|
|
|
iget v2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
|
|
|
|
iget v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
const/high16 v9, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
sub-float v8, v9, v8
|
|
|
|
|
|
|
|
int-to-float v2, v2
|
|
|
|
|
|
|
|
mul-float v8, v8, v2
|
|
|
|
|
|
|
|
float-to-int v8, v8
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const/high16 v9, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
:goto_7
|
|
|
|
move v2, v11
|
|
|
|
|
|
|
|
:goto_8
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
|
|
|
|
sub-int v10, v3, v2
|
|
|
|
|
|
|
|
add-int/2addr v10, v8
|
|
|
|
|
|
|
|
sub-int v8, v10, v15
|
|
|
|
|
|
|
|
goto :goto_9
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
sub-int v8, v2, v8
|
|
|
|
|
|
|
|
add-int v10, v8, v15
|
|
|
|
|
|
|
|
:goto_9
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v12
|
|
|
|
|
|
|
|
add-int/2addr v12, v6
|
|
|
|
|
|
|
|
invoke-virtual {v13, v8, v6, v10, v12}, Landroid/view/View;->layout(IIII)V
|
|
|
|
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getWidth()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
add-int/2addr v11, v8
|
|
|
|
|
|
|
|
move v12, v2
|
|
|
|
|
|
|
|
goto :goto_a
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const/high16 v9, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
:goto_a
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto/16 :goto_4
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
iget-boolean v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget-boolean v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_d
|
|
|
|
|
|
|
|
iget v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
|
|
|
|
iget v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->parallaxOtherViews(F)V
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-boolean v1, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_e
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
iget v2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
iget v3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dimChildView(Landroid/view/View;FI)V
|
|
|
|
|
|
|
|
goto :goto_c
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_b
|
|
|
|
if-ge v1, v7, :cond_e
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
iget v3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v4, v3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dimChildView(Landroid/view/View;FI)V
|
|
|
|
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_b
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
:goto_c
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->updateObscuredViewsVisibility(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
iput-boolean v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onMeasure(II)V
|
|
|
|
.locals 20
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/16 v5, 0x12c
|
|
|
|
|
|
|
|
const/high16 v6, -0x80000000
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
if-eq v1, v7, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isInEditMode()Z
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
if-eqz v8, :cond_0
|
|
|
|
|
|
|
|
if-eq v1, v6, :cond_3
|
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
|
|
|
const/16 v2, 0x12c
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v2, "Width must have an exact value or MATCH_PARENT"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isInEditMode()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
|
|
|
|
const/high16 v3, -0x80000000
|
|
|
|
|
|
|
|
const/16 v4, 0x12c
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v2, "Height must not be UNSPECIFIED"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eq v3, v6, :cond_5
|
|
|
|
|
|
|
|
if-eq v3, v7, :cond_4
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingTop()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingBottom()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
move v5, v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingTop()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingBottom()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
move v5, v4
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
sub-int v8, v2, v8
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
sub-int/2addr v8, v9
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
const/4 v10, 0x2
|
|
|
|
|
|
|
|
if-le v9, v10, :cond_6
|
|
|
|
|
|
|
|
const-string v10, "SlidingPaneLayout"
|
|
|
|
|
|
|
|
const-string v11, "onMeasure: More than two child views are not supported."
|
|
|
|
|
|
|
|
invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
iput-object v10, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
move v13, v4
|
|
|
|
|
|
|
|
move v14, v8
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
const/16 v15, 0x8
|
|
|
|
|
|
|
|
const/16 v16, 0x1
|
|
|
|
|
|
|
|
if-ge v4, v9, :cond_11
|
|
|
|
|
|
|
|
invoke-virtual {v0, v4}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v18
|
|
|
|
|
|
|
|
move-object/from16 v7, v18
|
|
|
|
|
|
|
|
check-cast v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
if-ne v10, v15, :cond_7
|
|
|
|
|
|
|
|
iput-boolean v1, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
goto/16 :goto_6
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
iget v10, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
cmpl-float v10, v10, v15
|
|
|
|
|
|
|
|
if-lez v10, :cond_8
|
|
|
|
|
|
|
|
iget v10, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
add-float/2addr v12, v10
|
|
|
|
|
|
|
|
iget v10, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->width:I
|
|
|
|
|
|
|
|
if-eqz v10, :cond_10
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
iget v10, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
iget v15, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
add-int/2addr v10, v15
|
|
|
|
|
|
|
|
iget v15, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->width:I
|
|
|
|
|
|
|
|
const/4 v1, -0x2
|
|
|
|
|
|
|
|
if-ne v15, v1, :cond_9
|
|
|
|
|
|
|
|
sub-int v1, v8, v10
|
|
|
|
|
|
|
|
const/high16 v10, -0x80000000
|
|
|
|
|
|
|
|
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
iget v1, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->width:I
|
|
|
|
|
|
|
|
const/4 v15, -0x1
|
|
|
|
|
|
|
|
if-ne v1, v15, :cond_a
|
|
|
|
|
|
|
|
sub-int v1, v8, v10
|
|
|
|
|
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
iget v1, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->width:I
|
|
|
|
|
|
|
|
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
iget v15, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
const/4 v10, -0x2
|
|
|
|
|
|
|
|
if-ne v15, v10, :cond_b
|
|
|
|
|
|
|
|
const/high16 v10, -0x80000000
|
|
|
|
|
|
|
|
invoke-static {v5, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
iget v10, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
const/4 v15, -0x1
|
|
|
|
|
|
|
|
if-ne v10, v15, :cond_c
|
|
|
|
|
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v5, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
iget v15, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
invoke-static {v15, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-virtual {v6, v1, v15}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
const/high16 v15, -0x80000000
|
|
|
|
|
|
|
|
if-ne v3, v15, :cond_d
|
|
|
|
|
|
|
|
if-le v10, v13, :cond_d
|
|
|
|
|
|
|
|
invoke-static {v10, v5}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v13
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
sub-int/2addr v14, v1
|
|
|
|
|
|
|
|
if-gez v14, :cond_e
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
iput-boolean v1, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
|
|
|
|
or-int/2addr v1, v11
|
|
|
|
|
|
|
|
iget-boolean v7, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
|
|
|
|
if-eqz v7, :cond_f
|
|
|
|
|
|
|
|
iput-object v6, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
move v11, v1
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
:goto_6
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/high16 v6, -0x80000000
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
if-nez v11, :cond_12
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
cmpl-float v3, v12, v1
|
|
|
|
|
|
|
|
if-lez v3, :cond_20
|
|
|
|
|
|
|
|
:cond_12
|
|
|
|
iget v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mOverhangSize:I
|
|
|
|
|
|
|
|
sub-int v1, v8, v1
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_7
|
|
|
|
if-ge v3, v9, :cond_20
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eq v6, v15, :cond_1e
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
check-cast v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-eq v7, v15, :cond_1e
|
|
|
|
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->width:I
|
|
|
|
|
|
|
|
if-nez v7, :cond_13
|
|
|
|
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
cmpl-float v7, v7, v10
|
|
|
|
|
|
|
|
if-lez v7, :cond_13
|
|
|
|
|
|
|
|
const/4 v7, 0x1
|
|
|
|
|
|
|
|
goto :goto_8
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
:goto_8
|
|
|
|
if-eqz v7, :cond_14
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
goto :goto_9
|
|
|
|
|
|
|
|
:cond_14
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
:goto_9
|
|
|
|
if-eqz v11, :cond_19
|
|
|
|
|
|
|
|
iget-object v15, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
if-eq v4, v15, :cond_19
|
|
|
|
|
|
|
|
iget v15, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->width:I
|
|
|
|
|
|
|
|
if-gez v15, :cond_1e
|
|
|
|
|
|
|
|
if-gt v10, v1, :cond_15
|
|
|
|
|
|
|
|
iget v10, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
cmpl-float v10, v10, v15
|
|
|
|
|
|
|
|
if-lez v10, :cond_1e
|
|
|
|
|
|
|
|
:cond_15
|
|
|
|
if-eqz v7, :cond_18
|
|
|
|
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
const/4 v10, -0x2
|
|
|
|
|
|
|
|
if-ne v7, v10, :cond_16
|
|
|
|
|
|
|
|
const/high16 v7, -0x80000000
|
|
|
|
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
goto :goto_a
|
|
|
|
|
|
|
|
:cond_16
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
const/4 v10, -0x1
|
|
|
|
|
|
|
|
if-ne v7, v10, :cond_17
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
goto :goto_a
|
|
|
|
|
|
|
|
:cond_17
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
goto :goto_a
|
|
|
|
|
|
|
|
:cond_18
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
:goto_a
|
|
|
|
invoke-static {v1, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
invoke-virtual {v4, v10, v6}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
goto/16 :goto_c
|
|
|
|
|
|
|
|
:cond_19
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
cmpl-float v7, v7, v15
|
|
|
|
|
|
|
|
if-lez v7, :cond_1e
|
|
|
|
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->width:I
|
|
|
|
|
|
|
|
if-nez v7, :cond_1c
|
|
|
|
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
const/4 v15, -0x2
|
|
|
|
|
|
|
|
if-ne v7, v15, :cond_1a
|
|
|
|
|
|
|
|
const/high16 v7, -0x80000000
|
|
|
|
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v17
|
|
|
|
|
|
|
|
move/from16 v15, v17
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
goto :goto_b
|
|
|
|
|
|
|
|
:cond_1a
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
const/4 v15, -0x1
|
|
|
|
|
|
|
|
if-ne v7, v15, :cond_1b
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v19
|
|
|
|
|
|
|
|
move/from16 v15, v19
|
|
|
|
|
|
|
|
goto :goto_b
|
|
|
|
|
|
|
|
:cond_1b
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
iget v15, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->height:I
|
|
|
|
|
|
|
|
invoke-static {v15, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
goto :goto_b
|
|
|
|
|
|
|
|
:cond_1c
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
invoke-static {v15, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
:goto_b
|
|
|
|
if-eqz v11, :cond_1d
|
|
|
|
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
add-int/2addr v7, v6
|
|
|
|
|
|
|
|
sub-int v6, v8, v7
|
|
|
|
|
|
|
|
move/from16 v19, v1
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eq v10, v6, :cond_1f
|
|
|
|
|
|
|
|
invoke-virtual {v4, v1, v15}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
goto :goto_d
|
|
|
|
|
|
|
|
:cond_1d
|
|
|
|
move/from16 v19, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-static {v1, v14}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
int-to-float v7, v7
|
|
|
|
|
|
|
|
mul-float v6, v6, v7
|
|
|
|
|
|
|
|
div-float/2addr v6, v12
|
|
|
|
|
|
|
|
float-to-int v6, v6
|
|
|
|
|
|
|
|
add-int/2addr v10, v6
|
|
|
|
|
|
|
|
const/high16 v6, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v10, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-virtual {v4, v7, v15}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
goto :goto_e
|
|
|
|
|
|
|
|
:cond_1e
|
|
|
|
:goto_c
|
|
|
|
move/from16 v19, v1
|
|
|
|
|
|
|
|
:cond_1f
|
|
|
|
:goto_d
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/high16 v6, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
:goto_e
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
|
|
|
|
move/from16 v1, v19
|
|
|
|
|
|
|
|
const/16 v15, 0x8
|
|
|
|
|
|
|
|
goto/16 :goto_7
|
|
|
|
|
|
|
|
:cond_20
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingTop()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
add-int/2addr v13, v1
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingBottom()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
add-int/2addr v13, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v13}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setMeasuredDimension(II)V
|
|
|
|
|
|
|
|
iput-boolean v11, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/customview/widget/ViewDragHelper;->getViewDragState()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_21
|
|
|
|
|
|
|
|
if-nez v11, :cond_21
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/customview/widget/ViewDragHelper;->abort()V
|
|
|
|
|
|
|
|
:cond_21
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method onPanelDragged(I)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getWidth()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getWidth()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
sub-int/2addr v3, p1
|
|
|
|
|
|
|
|
sub-int p1, v3, v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
iget v0, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
iget v0, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
|
|
|
|
sub-int/2addr p1, v2
|
|
|
|
|
|
|
|
int-to-float p1, p1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
div-float/2addr p1, v0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->parallaxOtherViews(F)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget-boolean p1, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
iget v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dimChildView(Landroid/view/View;FI)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dispatchOnPanelSlide(Landroid/view/View;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-super {p0, v0}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
iget-boolean v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;->isOpen:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->openPane()Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->closePane()Z
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-boolean p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;->isOpen:Z
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isSlideable()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isOpen()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput-boolean v0, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;->isOpen:Z
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onSizeChanged(IIII)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->onSizeChanged(IIII)V
|
|
|
|
|
|
|
|
if-eq p1, p3, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/customview/widget/ViewDragHelper;->processTouchEvent(Landroid/view/MotionEvent;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isDimmed(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iget v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionX:F
|
|
|
|
|
|
|
|
sub-float v2, v0, v2
|
|
|
|
|
|
|
|
iget v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionY:F
|
|
|
|
|
|
|
|
sub-float v3, p1, v3
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroidx/customview/widget/ViewDragHelper;->getTouchSlop()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
mul-float v2, v2, v2
|
|
|
|
|
|
|
|
mul-float v3, v3, v3
|
|
|
|
|
|
|
|
add-float/2addr v2, v3
|
|
|
|
|
|
|
|
mul-int v4, v4, v4
|
|
|
|
|
|
|
|
int-to-float v3, v4
|
|
|
|
|
|
|
|
cmpg-float v2, v2, v3
|
|
|
|
|
|
|
|
if-gez v2, :cond_3
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
float-to-int v0, v0
|
|
|
|
|
|
|
|
float-to-int p1, p1
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3, v0, p1}, Landroidx/customview/widget/ViewDragHelper;->isViewUnder(Landroid/view/View;II)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->closePane(Landroid/view/View;I)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionX:F
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionY:F
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_0
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public openPane()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->openPane(Landroid/view/View;I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public requestChildFocus(Landroid/view/View;Landroid/view/View;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->requestChildFocus(Landroid/view/View;Landroid/view/View;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isInTouchMode()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
|
|
|
|
iget-boolean p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
|
|
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method setAllChildrenVisible()V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v2, v0, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v5, 0x4
|
|
|
|
|
|
|
|
if-ne v4, v5, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCoveredFadeColor(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCoveredFadeColor:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setPanelSlideListener(Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setParallaxDistance(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->requestLayout()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setShadowDrawableLeft(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowDrawableLeft(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mShadowDrawableLeft:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowDrawableRight(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mShadowDrawableRight:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowResource(I)V
|
|
|
|
.locals 1
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setShadowDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowResourceLeft(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setShadowDrawableLeft(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowResourceRight(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setShadowDrawableRight(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSliderFadeColor(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothSlideClosed()V
|
|
|
|
.locals 0
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->closePane()Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothSlideOpen()V
|
|
|
|
.locals 0
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->openPane()Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method smoothSlideTo(FI)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
iget-boolean p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
iget v1, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
add-int/2addr p2, v1
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getWidth()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getWidth()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
int-to-float v2, v2
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
iget v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
int-to-float v3, v3
|
|
|
|
|
|
|
|
mul-float p1, p1, v3
|
|
|
|
|
|
|
|
add-float/2addr p2, p1
|
|
|
|
|
|
|
|
int-to-float p1, v1
|
|
|
|
|
|
|
|
add-float/2addr p2, p1
|
|
|
|
|
|
|
|
sub-float/2addr v2, p2
|
|
|
|
|
|
|
|
float-to-int p1, v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
iget v1, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
add-int/2addr p2, v1
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
iget v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
mul-float p1, p1, v1
|
|
|
|
|
|
|
|
add-float/2addr p2, p1
|
|
|
|
|
|
|
|
float-to-int p1, p2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v1, p1, v2}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setAllChildrenVisible()V
|
|
|
|
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method updateObscuredViewsVisibility(Landroid/view/View;)V
|
|
|
|
.locals 17
|
|
|
|
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getWidth()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingLeft()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getWidth()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingRight()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingTop()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getHeight()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getPaddingBottom()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
sub-int/2addr v5, v6
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->viewIsOpaque(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
move-object/from16 v13, p0
|
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
if-ge v12, v11, :cond_7
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v13, v12}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v14
|
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
if-eq v14, v0, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
const/16 v6, 0x8
|
|
|
|
|
|
|
|
if-eq v15, v6, :cond_6
|
|
|
|
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
move v6, v3
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move v6, v2
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
invoke-static {v6, v15}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
invoke-static {v4, v15}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
move/from16 v16, v1
|
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
move v0, v2
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move v0, v3
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static {v5, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-lt v6, v7, :cond_5
|
|
|
|
|
|
|
|
if-lt v15, v9, :cond_5
|
|
|
|
|
|
|
|
if-gt v0, v8, :cond_5
|
|
|
|
|
|
|
|
if-gt v1, v10, :cond_5
|
|
|
|
|
|
|
|
const/4 v6, 0x4
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
invoke-virtual {v14, v6}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
move/from16 v16, v1
|
|
|
|
|
|
|
|
:goto_7
|
|
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
|
|
|
|
move/from16 v1, v16
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
return-void
|
|
|
|
.end method
|