Compund control affect another one with the same type
<p>I created a compound control that contains a gallery of textviews.
I put two of these in my xml and whenever the orientation changes the gallery of the first one will have the same element selected as in the second one.</p>

<p>E.g. at the begginning both of them have the 0th element selected.
Suppose I change the second gallery so now the 1st element is selected.
Now if I rotate the screen the selected item of the first gallery will be the 1st element too.
(it doesn't work vice-versa)</p>

<p>I found two other persons here who have the same problem as me. One of them didn't get any answers.  The advice for the other was to check whether the bug was caused by a static variable. Well the only static thing in my related classes was the ViewHolder but even when I rewrote my adapter the bug still remained.</p>

<p>Any idea?</p>
