title: onClick method for Buttons in ExpandableListView
body: <p>My ExpandableListView has some EditText boxes and Buttons(It's a sign-in/register screen).
  I want to use an onClick function with a switch case to select the button that has been clicked and do something with them. </p>
  
  <p>For the Buttons, I can't set the onClickListener.</p>
  
  <p>All this is in the Custom Expandable List Adapter Class than I wrote.</p>
  
  <p>I know there is another way to address a normal function in a Custom Expandable List Adapter but I don't know how.</p>
  
  <p>Here's the relevant snippets of code WITHIN CustomExpandableAdapter class : </p>
  
  <pre><code>    public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) {
     v = null;
     position = 0;
     position=getChildId(groupPosition, childPosition);
  
     * - - unrelated code - *
  
     if(position==2)  //Draws Forgot Button
     {
         v = inflater.inflate(R.layout.forgot, parent, false);
         View forgot = v.findViewById(R.id.fpb);
         //What goes here to setOnClickListener?   
     }
     return v;
  }
  
  public void onClick(View w) {
  
      PopupWindow pw= new PopupWindow(inflater.inflate(R.layout.popup_layout, null, false),220,160, true);;
      switch(w.getId())
      {
      case R.id.fpb:
  
          {       
              pw.showAtLocation(v, Gravity.CENTER, 0, 0);
          }
  
  }
  </code></pre>
  
  <p>Can someone pleases help out??</p>