為啥我的按鈕事件。沒有啥反應(yīng)。我在手動(dòng)打開菜單。再按的時(shí)候。會(huì)關(guān)閉。
調(diào)試的確認(rèn)點(diǎn)按鈕進(jìn)入了打開菜單
private boolean isopen;
private void openMenu(){
if(!isopen){
//調(diào)試確認(rèn)進(jìn)來這里
this.smoothScrollBy(0, 0);
isopen=!isopen;
}
}
private void closeMenu(){
if(isopen){
this.smoothScrollBy(mMenuWitdth, 0);
isopen=!isopen;
}
}
2014-10-29
你好,應(yīng)該使用smoothScrollTo,請(qǐng)對(duì)比下視頻
2014-10-29
謝謝。習(xí)慣IDE的自動(dòng)完成。都沒有注意到。