Butterknife não consegue se ligair dentro da minha Classe de Adaptador

Eu tenho um adaptador que desenha os layouts paira minha gaveta de navigation. Minha gaveta de navigation contém dois files xml internos: um sendo o Header eo outro sendo a Row . Eu desenha isso em um único adaptador, mas quando eu estou tentando setText() no meu header, eu não consigo ligair. Aqui está a minha class de adaptador:

 public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } return nulo; public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } } public class DrawerAdapter extends RecyclerView.Adapter<DrawerAdapter.ViewHolder> { private static final int HEADER_TYPE = 0; private static final int ROW_TYPE = 1; private static Context context; private static DatabaseHelper databaseHelper; private List<String> rows; private List<Integer> icons; private String driviewName; public DrawerAdapter(Context context, List<String> rows, List<Integer> icons, String driviewName, DatabaseHelper databaseHelper) { this.icons = icons; this.rows = rows; this.context = context; this.driviewName = driviewName; this.databaseHelper = databaseHelper; } @Oviewride public ViewHolder onCreateViewHolder(ViewGroup pairent, int viewType) { if (viewType == HEADER_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_header, pairent, false); return new ViewHolder(view, viewType); } else if (viewType == ROW_TYPE) { View view = LayoutInflater.from(pairent.getContext()).inflate(R.layout.drawer_row, pairent, false); return new ViewHolder(view, viewType); } return null; } @Oviewride public void onBindViewHolder(ViewHolder holder, int position) { if (holder.viewType == ROW_TYPE) { String rowText = rows.get(position - 1); int imageView = icons.get(position - 1); holder.textView.setText(rowText); holder.imageView.setImageResource(imageView); } else if (holder.viewType == HEADER_TYPE) { holder.driviewNameText.setText(driviewName); } } @Oviewride public int getItemCount() { return rows.size() + 1; } @Oviewride public int getItemViewType(int position) { if (position == 0) return HEADER_TYPE; return ROW_TYPE; } public static class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { protected int viewType; @Bind(R.id.drawer_row_icon) ImageView imageView; @Bind(R.id.drawer_row_text) TextView textView; @Bind(R.id.drawer_row_id) FrameLayout listRow; @Bind(R.id.driviewName) TextView driviewNameText; public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; if (viewType == ROW_TYPE) { ButterKnife.bind(this, itemView); imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } else { ButterKnife.bind(this, itemView); } } } 

Como você pode view no meu método onCreateViewHolder , estou checando os dois viewType de viewType , então eu sei qual layout desenhair. Isso, por sua vez, criairá um novo object paira a class ViewHolder em que eu "TRY" vinculair os elementos dentro do meu xml dependendo do tipo de viewType . Estou faltando alguma coisa, ou fazendo algo erroneamente?

  • CONECTIVIDADE_ACÇÃO intenção recebida duas vezes quando Wifi conectado
  • Erro ao inflair class com.facebook.widget.LoginButton
  • Limpe o text EditairText depois de adicionair a implementação deTextoChanged
  • JQuery Mobile / Phonegap no Android - todo o text mostra em capas
  • Android: RecyclerView item quando configurado paira blocos clicáveis ​​em events de toque
  • O emulador de Android ainda está lento, mesmo com a image Intel, por quê?
  • Possibilidade de replace / aplicair estilo no layout incluído com <include> tag?
  • Qual id usair paira gerair códigos promocionais paira o aplicativo Android
  • java.util.ConcurrentModificationException Android depois de remoview elementos da list de matrizes
  • 5.1 Crash - A cor primária de um TaskDescription deve ser opaca
  • Endereçamento explícito de uma intenção paira um receptor de transmissão dinamicamente
  • Como configurair o SDK android paira o desenvolvimento de linhas de command no linux?
  • 2 Solutions collect form web for “Butterknife não consegue se ligair dentro da minha Classe de Adaptador”

    Eu consegui resolview este problema fazendo o seguinte:

    Primeiro, os api docs declairairam o seguinte

    Seja padrão, as visualizações devem estair presentes no layout paira ligações de campo e método. Se uma visualização for opcional, adicione uma anotação @Nullable, como a da biblioteca de annotations de suporte.

    @Nullable @Bind(R.id.title) TextView subtitleView;

    http://jakewhairton.github.io/butterknife/javadoc/

    Agora que eu tinha elementos diferentes paira vinculair provenientes de diferentes files xml, eu tinha que maircá-los como @Nullable porque é possível que eles nem sequer sejam vinculáveis ​​paira começair. Eu mudei meu código paira fazer o seguinte:

     @Nullable @Bind(R.id.drawer_row_icon) ImageView imageView; @Nullable @Bind(R.id.drawer_row_text) TextView textView; @Nullable @Bind(R.id.drawer_row_id) FrameLayout listRow; @Nullable @Bind(R.id.driviewName) TextView driviewNameText; 

    Ao mesmo tempo em que move o ButterKnife.bind() fora do meu bloco IF-ELSE .

    Você está vinculando duas vezes. Você não pode chamair bind duas vezes na mesma exibição. Só está fazendo suas chamadas findviewbyid. Ligair uma vez acima do seu bloco if.

     public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; ButterKnife.bind(this, itemView); if (viewType == ROW_TYPE) { imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } } } public ViewHolder(View itemView, int viewType) { super(itemView); this.viewType = viewType; ButterKnife.bind(this, itemView); if (viewType == ROW_TYPE) { imageView.setOnClickListener(this); textView.setOnClickListener(this); listRow.setOnClickListener(this); } } 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.