Generte resource ID at runtime?
<p>I am writing a custom preference with a seek bar, so far it works, except for one problem the ID of my seek bar is defined in XML, so when I try to use 2 of my custom prefernces and then I update the Seek Bar I cannot distinguish between the two.</p>

<pre><code>SeekBar bar = (SeekBar)view.findViewById(R.id.PreferenceSeekBar);
</code></pre>

<p>Is there a way to generate a custom Resource ID at runtime?
Or perhaps another way to solve this? </p>

<p>Thanks,
Jason</p>
