Listview Swipe inside viewflipper

后端 未结 3 535
旧巷少年郎
旧巷少年郎 2021-01-03 09:39

Im trying to swipe left and right on a listview and get the viewflipper to swtich. Just like the remeberthemilk app and the default news and weather app on the nexus one (Sw

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-03 10:33

    Well one way I found is instead of relying on, onItemClick, I implemented

    @Override
     public boolean onSingleTapConfirmed(MotionEvent e) {
    
         // TODO Auto-generated method stub
         Log.e("Item Click", "Item Click");
         return super.onSingleTapConfirmed(e);
    
     }
    

    Inside SimpleOnGestureListener and it seems as if it works

提交回复
热议问题