android swipe to dismiss listview won't remove item -
Text after "
.
I am using an ArrayAdapter and use this code to create a swipe to dismiss the listener
to dismiss the feature. SwipeSystemSystem LIST We Touch Listener Touch Listener = New SwipDescription ListWeight Touch Listener (See list, new swipiodisme list live touch listener. Desississ callback () {@ Override public boolean candis (status of int) {delete} N true;} @ Override public Whoid OnDismiss (ListView ListView Int [] reverseSortedPositions) {(int position: reverseSortedPositions) of {mAdapter.remove (mAdapter.getItem (status));} mAdapter.notifyDataSetChanged (for);}}); ListView.setOnTouchListener (touchListener); // Setting this scroll listener is essential to ensure that during the catalog view scrolling, // we do not search for swipe. ListView.setOnScrollListener (touchListener.makeScrollListener ());But to swipe every time it looks like it did the work but trying to get the item back.
The log cat does not have any exceptions to me.
Did anyone have this error before? Please help. After the text "itemprop =" text ">
When I used to reject the swipe by the Roman Nouric, I suffered the same issue. Create your own extract method in the adapter:
Public Zero (the status of the int) {yourList.remove (position); }
and you want to call it:
@Override public zero onDismiss (ListView ListView int [] reverseSortedPositions) {(for integer post: ReverseSortedPositions) {MAdapter.remove (status); } MAdapter.notifyDataSetChanged (); }
Comments
Post a Comment