# C1.Android.DataCollection.C1RecyclerViewAdapter-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Android_DataCollection_C1RecyclerViewAdapter_1" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1" class="text-break">C1RecyclerViewAdapter&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>This class is the bridge between <span class="xref">AndroidX.RecyclerView.Widget.RecyclerView</span> and <a class="xref" href="../C1.DataCollection/C1.DataCollection.C1DataCollection-1.html">C1DataCollection&lt;T&gt;</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">C1RecyclerViewAdapter&lt;T&gt;</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Android.DataCollection.html">C1.Android.DataCollection</a></h6>
  <h6><strong>Assembly</strong>: C1.Android.DataCollection.dll</h6>
  <h5 id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1RecyclerViewAdapter&lt;T&gt; : RecyclerView.Adapter where T : class</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1RecyclerViewAdapter(Of T As Class)
    Inherits RecyclerView.Adapter</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1__ctor_C1_DataCollection_IDataCollection__0__" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.#ctor(C1.DataCollection.IDataCollection{`0})">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.-ctor.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1__ctor_C1_DataCollection_IDataCollection__0__">C1RecyclerViewAdapter(IDataCollection&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.html">C1RecyclerViewAdapter&lt;T&gt;</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_DataCollection" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.DataCollection">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.DataCollection.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_DataCollection">DataCollection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the data collection which provides the data items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_ItemCount" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.ItemCount">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.ItemCount.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_ItemCount">ItemCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of items.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_GetItemViewType_System_Int32_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.GetItemViewType(System.Int32)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.GetItemViewType.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_GetItemViewType_System_Int32_">GetItemViewType(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnBindGroupViewHolder_AndroidX_RecyclerView_Widget_RecyclerView_ViewHolder_System_Int32_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.OnBindGroupViewHolder(AndroidX.RecyclerView.Widget.RecyclerView.ViewHolder,System.Int32)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.OnBindGroupViewHolder.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnBindGroupViewHolder_AndroidX_RecyclerView_Widget_RecyclerView_ViewHolder_System_Int32_">OnBindGroupViewHolder(ViewHolder, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnBindItemViewHolder_AndroidX_RecyclerView_Widget_RecyclerView_ViewHolder_System_Int32_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.OnBindItemViewHolder(AndroidX.RecyclerView.Widget.RecyclerView.ViewHolder,System.Int32)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.OnBindItemViewHolder.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnBindItemViewHolder_AndroidX_RecyclerView_Widget_RecyclerView_ViewHolder_System_Int32_">OnBindItemViewHolder(ViewHolder, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnBindLoadViewHolder_AndroidX_RecyclerView_Widget_RecyclerView_ViewHolder_System_Int32_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.OnBindLoadViewHolder(AndroidX.RecyclerView.Widget.RecyclerView.ViewHolder,System.Int32)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.OnBindLoadViewHolder.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnBindLoadViewHolder_AndroidX_RecyclerView_Widget_RecyclerView_ViewHolder_System_Int32_">OnBindLoadViewHolder(ViewHolder, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnBindViewHolder_AndroidX_RecyclerView_Widget_RecyclerView_ViewHolder_System_Int32_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.OnBindViewHolder(AndroidX.RecyclerView.Widget.RecyclerView.ViewHolder,System.Int32)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.OnBindViewHolder.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnBindViewHolder_AndroidX_RecyclerView_Widget_RecyclerView_ViewHolder_System_Int32_">OnBindViewHolder(ViewHolder, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnCreateGroupViewHolder_Android_Views_ViewGroup_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.OnCreateGroupViewHolder(Android.Views.ViewGroup)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.OnCreateGroupViewHolder.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnCreateGroupViewHolder_Android_Views_ViewGroup_">OnCreateGroupViewHolder(ViewGroup)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnCreateItemViewHolder_Android_Views_ViewGroup_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.OnCreateItemViewHolder(Android.Views.ViewGroup)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.OnCreateItemViewHolder.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnCreateItemViewHolder_Android_Views_ViewGroup_">OnCreateItemViewHolder(ViewGroup)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnCreateLoadViewHolder_Android_Views_ViewGroup_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.OnCreateLoadViewHolder(Android.Views.ViewGroup)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.OnCreateLoadViewHolder.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnCreateLoadViewHolder_Android_Views_ViewGroup_">OnCreateLoadViewHolder(ViewGroup)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnCreateViewHolder_Android_Views_ViewGroup_System_Int32_" data-uid="C1.Android.DataCollection.C1RecyclerViewAdapter`1.OnCreateViewHolder(Android.Views.ViewGroup,System.Int32)">
          <a class="xref" href="C1.Android.DataCollection.C1RecyclerViewAdapter-1.OnCreateViewHolder.html#C1_Android_DataCollection_C1RecyclerViewAdapter_1_OnCreateViewHolder_Android_Views_ViewGroup_System_Int32_">OnCreateViewHolder(ViewGroup, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><span class="xref">AndroidX.RecyclerView.Widget.RecyclerView.Adapter</span></div>
  </div>

</div>
