title: What is the right way of Android View Binding in the RecyclerView adapter class?
body: <p>Here is the code I used in my <code>RecycleView</code> adapter class. I don't know this is the right way or not to use View Binding. If you have a better solution answer me. Thank you.</p>
  
  <pre><code>@Override
  public CategoryAdapter.MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
  
      View itemView = LayoutInflater.from(parent.getContext())
              .inflate(R.layout.common_circle_image, parent, false);
  
      return new MyViewHolder(itemView);
  }
  
  @Override
  public void onBindViewHolder(@NonNull CategoryAdapter.MyViewHolder holder, final int position) {
      holder.binding.img.setBackgroundResource(addAdapterData.get(position).getItemUrl());
      holder.binding.txt.setText(addAdapterData.get(position).getItemName());
  }
  
  @Override
  public int getItemCount() {
      return addAdapterData.size();
  }
  
  public class MyViewHolder extends RecyclerView.ViewHolder {
  
      CommonCircleImageBinding binding;
  
      public MyViewHolder(@NonNull View itemView) {
          super(itemView);
          binding = CommonCircleImageBinding.bind(itemView);
          binding.cardView.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
  
                  commonItemClick.onItemClick(getAdapterPosition(),"");
              }
          });
      }
  }
  </code></pre>
  
  <p>Also, I want to know is it right to use <code>R.layout.layout_name</code> and <code>ViewBinding</code> in the same class.</p>