title: RecyclerView changes it's position value in onBindViewHolder after 2-3 notifyDataSetChanged is called
body: <ul>
  <li>How to get correct position value.</li>
  <li>Position in onBindViewHolder is changing after notifyDataSetChanged is called 2-3 times in RecyclerView's adapter.</li>
  <li>But Scrolling position is same.</li>
  </ul>
  
  <p>I am setting different view by getItemViewType. </p>
  
  <pre><code>@Override
  public int getItemViewType(int position) {
      if (totalCartSize &gt; productServiceSize) {
          if (position &lt; productServiceSize) {
              return PRODUCT_SERVICE_TYPE;
          } else if (position &gt;= productServiceSize &amp;&amp; position &lt; totalCartSize) {
              return PROJECT_TYPE;
          }
      } else {
          return PRODUCT_SERVICE_TYPE;
      }
      return super.getItemViewType(position);
  }
  </code></pre>
  
  <p>On Clicking Row i have callBackListener for refreshing by hitting service again, but in callBack i am getting wrong value due onBindViewholder wrong position.</p>
  
  <pre><code>@Override
  public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
      if (holder instanceof ProductServiceViewHolder) {
          setProductServiceView((ProductServiceViewHolder) holder, holder.getAdapterPosition());
      } else if (holder instanceof ProjectViewHolder) {
          setProjectView((ProjectViewHolder) holder, position);
      }
  }
  </code></pre>
  
  <ul>
  <li>With Regards</li>
  <li>Abhishek</li>
  </ul>