title: Can you manually add a view to a RecyclerView that didn't come from an Adapter?
body: <p>I'm working on an advanced LayoutManager subclass. It has some special requirements in that it needs to manually add custom views, not associated with those generated by the adapter.</p>
  
  <p>I have tried this example code...</p>
  
  <pre><code>public class TestLayoutManager extends RecyclerView.LayoutManager{
  
      public TestLayoutManager(Context context){
  
          TextView textView = new TextView(context);
          textView.setLayoutParams(generateDefaultLayoutParams());
          textView.setText("Hello World");
          layoutDecorated(textView, 0, 0, 200, 100);
          ignoreView(textView);
  
          // When this line is called, it throws the error
          this.addView(textView);
      }
  }
  </code></pre>
  
  <p>...but it throws an error in RecyclerView, here:</p>
  
  <pre><code>private void addViewInt(View child, int index, boolean disappearing) {
  
      final ViewHolder holder = getChildViewHolderInt(child);
  
      // Null-pointer exception here because 'holder' is null
      if (disappearing || holder.isRemoved()) { 
  
          // these views will be hidden at the end of the layout pass.
          mRecyclerView.mViewInfoStore.addToDisappearedInLayout(holder);
  </code></pre>
  
  <p>Somehow I need to associate a ViewHolder to the view without going through the adapter, but I'm not sure how to do that.  Not sure it's possible, but if anyone knows, it'll be you guys here! :)</p>
  
  <p>So... is it possible?</p>