title: On click is not working for inflateview widgets
body: <p>In my activity i am inflating layout and i am giving onclick to button and layout it's not working.</p>
  
  <p>MyActivity inflating code :</p>
  
  <pre><code> LayoutInflater langListInflate = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
       View booksListView = new View(BookActivity.this);
      booksListView =            langListInflate.inflate(getResources().getLayout(R.layout.more_books_items),
              null);
      Button b = (Button) booksListView.findViewById(R.id.likes_button);
  
      b.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
              System.out.println("Rating bar click");
              Intent intent = new Intent(BookActivity.this,
                      RatingActivity.class);
              startActivity(intent);
          }
      });
  </code></pre>