title: RecyclerView adapter not working with butter knife
body: <p>why RecyclerView adapter not working with ButterKnife ?</p>
  
  <p>It's working with findViewById but not working with ButterKnife</p>
  
  <p>Adapter Class</p>
  
  <pre><code>public class CategoriesAdapter extends RecyclerView.Adapter&lt;CategoriesAdapter.viewHolder&gt;{
  
      Context context;
      List&lt;CategoriesModels&gt; categoriesModels;
  
      public CategoriesAdapter(Context context,List&lt;CategoriesModels&gt; categoriesModels){
          this.context = context;
          this.categoriesModels = categoriesModels;
      }
  
      @Override
      public viewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
          View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_categories, viewGroup, false);
          viewHolder viewHolder = new viewHolder(view);
          return viewHolder;
      }
  
      @Override
      public void onBindViewHolder(@NonNull viewHolder viewHolder, int i) {
  
      }
  
      @Override
      public int getItemCount() {
          return categoriesModels.size();
      }
  
      class viewHolder extends RecyclerView.ViewHolder {
          @BindView(R.id.img_flag)
          ImageView img_flag;
          @BindView(R.id.txt_title)
          TextView txt_title;
          @BindView(R.id.img_correct)
          ImageView img_correct;
  
          public viewHolder(View view) {
              super(view);
              ButterKnife.bind(context,view);
          }
  
      }
  
  }
  </code></pre>
  
  <p>MainActivity Class</p>
  
  <pre><code>public class CategoriesActivity extends AppCompatActivity {
  
      @BindView(R.id.txt_select_language)
      TextViewFont txt_select_language;
      @BindView(R.id.rv_categories)
      RecyclerView rv_categories;
  
      List&lt;CategoriesModels&gt; categoriesModels = new ArrayList&lt;&gt;();
      CategoriesAdapter categoriesAdapter;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_categories);
          ButterKnife.bind(CategoriesActivity.this);
          //show data
          ShowDate();
      }
  
      private void ShowDate() {
          Retrofit retrofit = new Retrofit.Builder().baseUrl("http://*****").addConverterFactory(GsonConverterFactory.create()).build();
          RetrofitService retrofitService = retrofit.create(RetrofitService.class);
          Call&lt;List&lt;CategoriesModels&gt;&gt; call = retrofitService.get_categories();
          call.enqueue(new Callback&lt;List&lt;CategoriesModels&gt;&gt;() {
              @Override
              public void onResponse(Call&lt;List&lt;CategoriesModels&gt;&gt; call, Response&lt;List&lt;CategoriesModels&gt;&gt; response) {
                  List&lt;CategoriesModels&gt; list = response.body();
                  for (CategoriesModels i : list) {
                      categoriesModels.add(new CategoriesModels(i.getId(), i.getTitle(), i.getPhoto(), i.getShortcut()));
                  }
                  categoriesAdapter = new CategoriesAdapter(CategoriesActivity.this, categoriesModels);
                  rv_categories.setLayoutManager(new LinearLayoutManager(CategoriesActivity.this, LinearLayoutManager.VERTICAL, false));
                  rv_categories.setAdapter(categoriesAdapter);
              }
  
              @Override
              public void onFailure(Call&lt;List&lt;CategoriesModels&gt;&gt; call, Throwable t) {
  
              }
          });
      }
  
  }
  </code></pre>
  
  <p>I tried a lot before putting up the subject but I did not find a solution yet....................................................................................</p>