178 lines
3.5 KiB
Smali
178 lines
3.5 KiB
Smali
.class public final Landroidx/core/view/MarginLayoutParamsCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "MarginLayoutParamsCompat.java"
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getLayoutDirection(Landroid/view/ViewGroup$MarginLayoutParams;)I
|
|
.locals 3
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x11
|
|
|
|
if-lt v0, v2, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup$MarginLayoutParams;->getLayoutDirection()I
|
|
|
|
move-result p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_1
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getMarginEnd(Landroid/view/ViewGroup$MarginLayoutParams;)I
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup$MarginLayoutParams;->getMarginEnd()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
iget p0, p0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getMarginStart(Landroid/view/ViewGroup$MarginLayoutParams;)I
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup$MarginLayoutParams;->getMarginStart()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
iget p0, p0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isMarginRelative(Landroid/view/ViewGroup$MarginLayoutParams;)Z
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup$MarginLayoutParams;->isMarginRelative()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static resolveLayoutDirection(Landroid/view/ViewGroup$MarginLayoutParams;I)V
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup$MarginLayoutParams;->resolveLayoutDirection(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setLayoutDirection(Landroid/view/ViewGroup$MarginLayoutParams;I)V
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup$MarginLayoutParams;->setLayoutDirection(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setMarginEnd(Landroid/view/ViewGroup$MarginLayoutParams;I)V
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup$MarginLayoutParams;->setMarginEnd(I)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iput p1, p0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setMarginStart(Landroid/view/ViewGroup$MarginLayoutParams;I)V
|
|
.locals 2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup$MarginLayoutParams;->setMarginStart(I)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iput p1, p0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
return-void
|
|
.end method
|