- Feat: carry back the clicked view to the SwitchClickListener closes #87
- Fix(crash): Cover the case of user-root-view not ready on global-changed callback, refs: http://crashes.to/s/00beea75992
- Add
KPSwitchConflictUtil#attach(panelLayout,focusView,switchClickListener,subPanelAndTriggers...)
/KPSwitchConflictUtil#attach(panelLayout,focusView,subPanelAndTriggers...)
Used forattach
the case of onePanelLayout
contains more than oneSubPanel
. Closes #39.
- Fix: In the
Translucent Status
theme,some devices(Such as:Samsung S7 edge) the arithmetic used for calculating keyboard height is wrong. Closes #35 。 - Fix: In some devices(Such as: HuaWei Mate 7)The showing or hiding from the NavigationBar is mistaken for the keyboard showing or hiding. Merged #33 , Closes #34 , By @sollian 。
- Add
KeyboardUtil#detach
convenient to remove theViewTreeObserver.OnGlobalLayoutListener
inside the architecture. Merged #33 , By @sollian 。
- Support
Translucent Status
theme,the more detail please move to demo project or tutorial docs. Closes #27 。 - Add the option configuration of
whether the height of the panel need to ensure equal to the height of the keyboard
:setIgnoreRecommendHeight(boolean)
and the reference configuration params in the xml:cn.dreamtobe.kpswitch.R.styleable#KPSwitchPanelLayout_ignore_recommend_height
。Closes #25.
- Fix: The wrong arithmetic about calculating the keyboard height when the Page is extends from
Activity
orFragmentActivity
, which result in the the layout conflict. Closes #24.
- Fix: In some special cases(such as some inherited from
FragmentActivity
),it possible raise a bug in the wrong logic of determining whether the layout changed is triggered by the fullscreen theme page is being opened. Closes #21.
- No longer clear focus automatically when switching to the panel when you use the
KPSwitchConflictUtil#attach
, since sometimes you want to show some emoji panel, which need the focus in the EditText view. - Add the
SwitchClickListener
param in theKPSwitchConflictUtil#attach
method for listening the click event of showing the keyboard and the panel.
- Fix raising warning because carry some deprecated classes.
- Handle the conflict between the keyboard and the panel layout in the fullscreen theme.
- Add some root layouts for panel:
FrameLayout
、LinearLayout
、RelativeLayout
and support to extend other layouts. - Adjust some interface to make they more decoupled: Wrap the logic of showing keyboard and calculating the keyboard height to
KeyboardUtil
; Wrap the logic of handling the conflict of switching the keyboard and panel to theHandler
of each layout.
- Fix: when the chat-Activity is translucent and the current interface is not fullscreen theme with the behind interface isn't fullscreen theme either, we mistake for the height change in
measure
is the keyboard did.
- minSdkVersion 8->3
- Fix: the
Activity
theme is translucent.
initial release.