Skip to content Skip to sidebar Skip to footer

Recyclerview Items Are Not Painted Properly

In my ViewHolder, I have this method, that is called in the adapter when onBindViewHolder: protected void bindViews(Item item) { dateTextView.setText(item.getDate()); title

Solution 1:

Use public int getItemViewType(int position) and public int getItemCount() to inflate two different layout,one with menu and other without the menu.


Post a Comment for "Recyclerview Items Are Not Painted Properly"