-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no need to use JSONArray in Utils.loadProfiles() #3
Comments
@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: It adds the view again if removed. |
@SwipeOut |
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.The text was updated successfully, but these errors were encountered: