previously loaded data of the android listview is hidden in background and exist on empty space
<p>I have an app with 3 fragments and 3 Custom Array-adapters.</p>

<p>First fragment gets data from the first custom array adapter which contains 3 different row layouts.</p>

<p>Second fragment gets data from second Array-adapter and so on ...</p>

<p>All these three adapters share a class as a data provider which contains set and get methods.</p>

<p>when a user clicks to launch the fragment one for example, list-view gets filled with some specific data which fetched from the database and so on ....</p>

<p>I have activated click listener for each row of the list-view inside all adapters.</p>

<p>The data fills correctly on each fragment, but my problem is that it seems on the empty space of each list-view, there are previously loaded data from previous fragment(s), because I see that row click-listener works on empty spaces and do action based on previously filled data and these filled data are kept and were correct in the previous fragment.</p>

<p>In the other word, if the previous fragment list-view had a longer filled data than the newly loaded fragment, the empty space of the newly loaded fragment fills with previous fragment list-view data, but they are hidden. Just I realize this when I click on the empty space.</p>

<p>I tried everything like clearing the adapter and so on on fragments onCreate but no trick helped me.</p>