title: Check if view element is added to layout or not programmatically
body: <p>In my fragment class, I add a child view element programmatically to my layout conditionally :</p>
  
  <pre><code>LinearLayout child = (LinearLayout) inflater.inflate(R.layout.child_view, null);
  
  LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT,100);
  
  container.addView(child, params);
  </code></pre>
  
  <p>Since the above code will be run conditionally, so, at some point, <strong>I would like to check if the child view has added or not</strong>, how to make this checking programmatically?</p>