title: OnClick for navigation drawer header not working
body: <p>I have a navigation drawer in my app which contains a header and some list items. The header has a textview which i want to make clickable but I am not able to do it. </p>
  
  <p>To get the id of this textview I used the following code, since it is in a different layout file compared to the one in the setContentView in onCreate.</p>
  
  <pre><code>    final LayoutInflater factory = getLayoutInflater();
  
      final View textEntryView = factory.inflate(R.layout.header, null);
  
      TextView home = (TextView) textEntryView.findViewById(R.id.home);
      home.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              Toast.makeText(curr_context, "SHOW", Toast.LENGTH_LONG).show();
  
          }
      });
  </code></pre>
  
  <p>header.xml contains the header of the navigation drawer. It has an item named home. I need to make it clickable. The above code is in the onCreate method.</p>