I have custom
which is dynamically added multiple times in same activity.
Each of custom view instance has beside other stuff a
has it's ID
and it is same for each view instance.
For each custom view instance I set different
when activity is created.
When I rotate the screen, the activity is recreated but now each
(text is same as text of the last instance).
This is because the save and restore of instance state saves some information automatically, but this information is obviously linked to IDs and in my case creates the problem.
Is there a way to disable automatic state retaining for particular views?
Is there a property or setting or some workaround?