2013-11-14 14 views

回答

0

您應該使用的代碼如下:

listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); 
1
mSwipeListView.setSwipeListViewListener(new com.example.swipelistview.BaseSwipeListViewListener() { 
        @Override 
        public void onOpened(int position, boolean toRight) { 

         for(int i=0;i<mSwipeListView.getChildCount();i++){ 
          if(i!=position) 
           mSwipeListView.closeAnimate(i); 

         } 

試試這個它可能工作,我沒有測試它

相關問題