Open Zhuinden opened 7 years ago
@Zhuinden Sure
hello brother, i am wondering why do i get repeated views whens swiping.
@scorlingonzalez It's added again for the demo purpose.
what am trying to say is that i get repeated people while i swipe
also for some reason i can get the image to show
@scorlingonzalez you are referring to the TinderSwipe project or tinder-swipe-v2?
check this method:
@SwipeOut
private void onSwipedOut(){
Log.d("EVENT", "onSwipedOut");
mSwipeView.addView(this);
}
remove this line: mSwipeView.addView(this)
It adds the view again if removed.
@SwipeOut public void onSwipedOut() { mSwipeView.addView(this); }
i do have this method in the same format... it is usally random behavior for example i may get the same person twice in a row or just at random.. and also if let say an array has 3 people i can scroll like 15 or more time randomly repeating the people... do you think i can send you my code in facebook maybe u can help me out a bit please
i delete that line but still same behaviour
You can replace the JSONArray with
TypeToken
and use GSON to parse theList<Profile>
directly.