KPSwitchPanelRelativeLayout.smali
.class public Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;
.super Landroid/widget/RelativeLayout;
.source "KPSwitchPanelRelativeLayout.java"
# interfaces
.implements Lcn/dreamtobe/kpswitch/IPanelHeightTarget;
.implements Lcn/dreamtobe/kpswitch/IPanelConflictLayout;
# instance fields
.field private panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.param p1, "context" # Landroid/content/Context;
.line 47
invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V
.line 48
const/4 v0, 0x0
invoke-direct {p0, v0}, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->init(Landroid/util/AttributeSet;)V
.line 49
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 3
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;
.line 52
invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 53
invoke-direct {p0, p2}, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->init(Landroid/util/AttributeSet;)V
.line 54
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 4
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;
.param p3, "defStyleAttr" # I
.line 57
invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 58
invoke-direct {p0, p2}, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->init(Landroid/util/AttributeSet;)V
.line 59
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.registers 5
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;
.param p3, "defStyleAttr" # I
.param p4, "defStyleRes" # I
.line 64
invoke-direct {p0, p1, p2, p3, p4}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.line 65
invoke-direct {p0, p2}, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->init(Landroid/util/AttributeSet;)V
.line 66
return-void
.end method
.method private init(Landroid/util/AttributeSet;)V
.registers 3
.param p1, "attrs" # Landroid/util/AttributeSet;
.line 69
new-instance v0, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-direct {v0, p0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;-><init>(Landroid/view/View;Landroid/util/AttributeSet;)V
iput-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
.line 70
return-void
.end method
# virtual methods
.method public handleHide()V
.registers 2
.line 105
iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-virtual {v0}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->handleHide()V
.line 106
return-void
.end method
.method public handleShow()V
.registers 2
.line 100
const/4 v0, 0x0
invoke-super {p0, v0}, Landroid/widget/RelativeLayout;->setVisibility(I)V
.line 101
return-void
.end method
.method public isKeyboardShowing()Z
.registers 2
.line 90
iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-virtual {v0}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->isKeyboardShowing()Z
move-result v0
return v0
.end method
.method public isVisible()Z
.registers 2
.line 95
iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-virtual {v0}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->isVisible()Z
move-result v0
return v0
.end method
.method public onKeyboardShowing(Z)V
.registers 3
.param p1, "showing" # Z
.line 120
iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->setIsKeyboardShowing(Z)V
.line 121
return-void
.end method
.method protected onMeasure(II)V
.registers 6
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 82
iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-virtual {v0, p1, p2}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->processOnMeasure(II)[I
move-result-object v0
.line 85
.local v0, "processedMeasureWHSpec":[I
const/4 v1, 0x0
aget v1, v0, v1
const/4 v2, 0x1
aget v2, v0, v2
invoke-super {p0, v1, v2}, Landroid/widget/RelativeLayout;->onMeasure(II)V
.line 86
return-void
.end method
.method public refreshHeight(I)V
.registers 3
.param p1, "panelHeight" # I
.line 115
iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->resetToRecommendPanelHeight(I)V
.line 116
return-void
.end method
.method public setIgnoreRecommendHeight(Z)V
.registers 3
.param p1, "isIgnoreRecommendHeight" # Z
.line 110
iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->setIgnoreRecommendHeight(Z)V
.line 111
return-void
.end method
.method public setVisibility(I)V
.registers 3
.param p1, "visibility" # I
.line 74
iget-object v0, p0, Lcn/dreamtobe/kpswitch/widget/KPSwitchPanelRelativeLayout;->panelLayoutHandler:Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;
invoke-virtual {v0, p1}, Lcn/dreamtobe/kpswitch/handler/KPSwitchPanelLayoutHandler;->filterSetVisibility(I)Z
move-result v0
if-eqz v0, :cond_9
.line 75
return-void
.line 77
:cond_9
invoke-super {p0, p1}, Landroid/widget/RelativeLayout;->setVisibility(I)V
.line 78
return-void
.end method