title: How to use Android View Binding with RecyclerView
body: <p>This is not data binding, this is View binding which is new to Android Studio 3.6 Canary 11+ described <a href="https://developer.android.com/topic/libraries/view-binding" rel="noreferrer">here</a>.</p>
  
  <p>For using inside an Activity it is clear, you just use it like this:</p>
  
  <p>Let's say we have a layout named <code>activity_main.xml</code></p>
  
  <p>Then in the code we can use it like this:</p>
  
  <pre><code>public class MainActivity extends Activity{
  
      ActivityMainBinding binding; //Name of the layout in camel case + "Binding"
  
      @Override
      protected void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          binding = ActivityMainBinding.inflate(getLayoutInflater());
          setContentView(binding.getRoot());
      }
  }
  </code></pre>
  
  <p>However, It's not clear how to use View Binding with RecyclerView?</p>
  
  <p>Edit: Please explain in Java.</p>