Weird Tab Behavior, What's Wrong With The Adapter
My tabLayout is exhibiting this strange behaviour You can see that by swiping the tabs after clicking a row the content from a tab gets mixed with the content from another. Each r
Solution 1:
Ok, the problem in the toggleWatched method. When retrieving the ListView it was going back to the activity to get it. Instead I needed to save in a private variable the ListView object in which the row is and remove this line in the method.
private void toggleWatched(long episodeId) {
...
ListView episodeList = (ListView) this.getActivity().findViewById(R.id.episode_list);
...
}
Post a Comment for "Weird Tab Behavior, What's Wrong With The Adapter"