Programmatically assign resource ids
<p>I am creating views programmatically and later want to call 'addRule' and pass their id to this function.</p>

<p>Is it safe to assign ids programmatically?<br>
How do I know that I am not overriding existing ids?<br>
Is there a resource type '0' or can I presume that any resource id I create of the format 0xNNTTNNNN where 'TT' is the type = 0 is ok?</p>
