title: OnClick on linearLayout childs not working first time
body: <p>I have a <code>linearLayout</code> and I add some <code>Views</code> as children on it.</p>
  
  <p>My sample code is:</p>
  
  <pre><code> private void addChild(SampleClass s) {
  
        View child= inflater.inflate(R.layout.item_layout, null, false);
  
        // some codes...
  
        child.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                  // some codes
              });
  
  
  
        mainLayout.addView(child);  // mainLayout is parent LinearLayout
  
        child.requestFocus();
  
        txt.requestFocus(); // txt is a EditText out of mainLayout
   }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>for(SampleClass s: samples){
       addChild(s);
  }
  </code></pre>
  
  <p>But when for first time I click on view, <code>onClick</code> is not working but on the next I click it, it is working.</p>