title: Single inflation of a style to be used multiple times
body: <p>I want to <em>inflate</em> an item once and use it in a loop. I currently have a solution, but there is most likely a better way. Also, the program won't run unless there is <code>view.removeView</code> call, which makes sense, but seems hazardous if I ever want to add <code>catBtn</code> later in the app).</p>
  
  <p>Existing code:</p>
  
  <pre><code>LinearLayout col1 = (LinearLayout)findViewById(R.id.col1);
  for(int i = 0; i &lt; 10; ++i) {
      LinearLayout assets = (LinearLayout)this.getLayoutInflater().inflate(R.layout.assets, null);
      Button btn = (Button)assets.findViewById(R.id.catBtn);//new Button(this);
      assets.removeView(btn);
  col1.addView(btn);
  }
  </code></pre>
  
  <p>Existing <em>layout.assets</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:weightSum="1" 
      android:id="@+id/assets"&gt;
  
      &lt;ImageView android:focusable="true" 
          android:id="@+id/thumb" 
          android:background="@drawable/selectable" 
          android:layout_marginBottom="20dip" 
          android:src="@drawable/icon" android:layout_height="140dip" android:layout_width="250dip"/&gt;
      &lt;Button android:id="@+id/catBtn" 
          android:layout_height="wrap_content" 
          android:background="@drawable/selectable" 
          android:text="Cat Button" 
          android:layout_width="120dip" 
          android:textSize="16dip"&gt;&lt;/Button&gt;
  &lt;/LinearLayout&gt;
  </code></pre>