title: Why are layout attributes of root element not inflated?
body: <p>I have a <code>RecyclerView</code>. I want the &quot;cells&quot; to take up the full width of the <code>RecyclerView</code>, but they are not.</p>
  <pre><code>override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MyHolder {
      val binding = MyCellBinding.inflate(layoutInflater)  
      // here, binding.root.layoutParams is null ??      
      return MyHolder(binding)
  }
  </code></pre>
  <p>The <code>MyHolder</code> class is the usual <code>ViewHolder</code> subclass.</p>
  <p>The <code>MyCellBinding</code> is from <code>layout/my_cell.xml</code>.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;  
      android:orientation=&quot;vertical&quot;
      android:layout_width=&quot;match_parent&quot;   ← ✅
      android:layout_height=&quot;match_parent&quot;  ← ✅
      android:padding=&quot;8dp&quot;&gt;
  
      &lt;TextView android:id=&quot;@+id/title&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;/&gt;
  
      ...
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>The <code>layout_width/height</code> on the <code>TextView</code> get created correctly, but for some reason there are no <code>LayoutParams</code> on the <code>binding.root</code> - the <code>LinearLayout</code>. So when it displays in the list it is as narrow as the <code>TextView</code>.</p>
  <p>I can use the LayoutInspector to see that the parent of the <code>LinearLayout</code> is the <code>RecyclerView</code>.</p>
  <p>Why are the <code>layout_width</code> and <code>layout_height</code> of the root <code>LinearLayout</code> not inflated from the XML?</p>