title: Android set XML shape as drawable programmatically
body: <p>Hello I have a drawable myshape.xml, it contains a <code>&lt;shape&gt;</code> and I cannot set an android:id to shapes.</p>
  
  <p>In my code I want to set the background of a view to this file using</p>
  
  <p><code>catAll.setBackgroundDrawable(getResources().getDrawable(R.id......???));</code></p>
  
  <p>where myshape.xml does not show up in my R file because it has no id. and I cannot set id to  object.</p>
  
  <p>In my XML I do set the shape by simply typing the drawable resource name. But I need to do this programmatically.</p>