title: How to add click listener in listview footer view button
body: <p>I have created activity with a listview, and adding footer view grammatically. Footer view consists two button(back &amp; next). The issue is when i click on button it doesn't fires click event but when i focus to View(footerview) it trigger click event.</p>
  
  <p>here is my code,</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>listView.addFooterView(footer_controls,null,true);
  
                        Button NextButton =(Button) footer_controls.findViewById(R.id.btnNext);
                          NextButton.setOnClickListener(new OnClickListener() {
                              @Override
                              public void onClick(View v) {
                                  Toast.makeText(context, "forward clicked", Toast.LENGTH_LONG).show();
                                  LoadData();
                              }
                          });</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks in advance.</p>