思路:重写ListView的setOnTouchListener事件;

         ListView.setOnTouchListener(new OnTouchListener(){

             @Override
public boolean onTouch(View arg0, MotionEvent arg1) {
// TODO Auto-generated method stub
hideMenu();//隐藏菜单
return false;
} });

延申:

点击窗体空白地方隐藏菜单或软键盘思路一样:

     @Override
public boolean onTouchEvent(MotionEvent event) {
// TODO Auto-generated method stub
hideMenu();
return super.onTouchEvent(event); }
05-11 11:02