关于open&close的bug
zhiweioo7 opened this issue · comments
/**
* Close pannel smoothly.
*
* @param smooth true, smoothly. false otherwise.
*/
public void smoothClose(boolean smooth) {
if (mStatus != Status.CLOSE) {
mStatus = Status.OPEN;
final float height = -getMeasuredHeight();
animatorSwitch(height, 0, true, smooth ? mDuration : 0);
}
}
这里mStatus的值应该是 Status.CLOSE。不然调用smoothClose方法再次滑动的时候会再次打开Layout
点个赞, 确实有这么个问题, 我也遇到了.