title: Recyclerview shows only first item
body: <p>My recyclerview is only showing one item, the first one, from an ArrayList, when I debug the adapter it shows a getItemCount() of 3, which looks OK, and no running errors as far as I can see, please help:</p>
  
  <p>This is MyAdapter</p>
  
  <pre><code>class MyAdapter(private val myDataset: ArrayList&lt;String&gt;) :
      RecyclerView.Adapter&lt;MyAdapter.Holder&gt;() {
  
  
      override fun onCreateViewHolder(parent: ViewGroup,
                                      viewType: Int): Holder {
  
          val view = LayoutInflater.from(parent.context)
              .inflate(R.layout.list_item, parent, false)
  
          return Holder(view)
      }
  
  
      override fun onBindViewHolder(holder: Holder, position: Int) {
          holder.textView?.text = myDataset[position]
      }
  
  
      override fun getItemCount() = myDataset.size
  
  
      class Holder(itemView: View) : RecyclerView.ViewHolder(itemView) {
          var textView:TextView? = null
  
          init {
              textView = itemView.findViewById(R.id.name)
          }
  
      }
  
  
  }
  </code></pre>
  
  <p>This is the fragment:</p>
  
  <pre><code>class FragmentList1 : Fragment() {
  
      var myArrayList: ArrayList &lt;String&gt; = arrayListOf("Fausto", "Félix", "Nacho")
  
  
      override fun onCreateView(
          inflater: LayoutInflater, container: ViewGroup?,
          savedInstanceState: Bundle?
      ): View? {
          // Inflate the layout for this fragment
  
          var view = inflater.inflate(R.layout.fragment_list1,
              container, false)
  
          var recycler: RecyclerView = view.findViewById(R.id.recyclerView)
  
          recycler.setHasFixedSize(true)
          recycler.layoutManager = LinearLayoutManager(context)
          recycler.adapter = MyAdapter(myArrayList)
  
          return view
      }
  </code></pre>
  
  <p>This is fragment_list1.xml:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".FragmentList1"&gt;
  
  
      &lt;androidx.recyclerview.widget.RecyclerView
          android:id="@+id/recyclerView"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
  
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is list_item.xml:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal"&gt;
  
      &lt;TextView
          android:id="@+id/name"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginStart="4dp"
          android:layout_marginLeft="4dp"
          android:layout_marginTop="28dp"
          android:text="Aqui va el nombre"
           /&gt;
  
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>There is also a MainActivity hosting a fragment_list1.xml, and also nav_graph.xml</p>