Posts

Showing posts with the label fastadapter

fastadapter doesnt save states

fastadapter doesnt save states I have a like button in a viewHolder and when I show it in fast adapter when users like a post and then scroll to down and then come back to top the like suddenly disappear but the request was sent to server successfully and if refresh the app the like button works correctly but if you unlike again the problems shown up. Does BindView Hold this like button status or I Should use onBindViewHolder() ? onBindViewHolder() public class TestAppAdapterHolder extends AbstractItem<TestAppAdapterHolder,ViewHolder> { private Result result; public TestAppAdapterHolder(Result result) { this.result = result; } public TestAppAdapterHolder() { } public Result getResult() { return result; } @Override public ViewHolder getViewHolder(View v) { return new ViewHolder(v); } // Fast Adapter methods @Override public int getType() { return R.id.parent_testApp_list_item; } @Override ...