title: How to know Index of LinearLayout by child View?
body: <p>My layout is like this </p>
  
  <pre><code>&lt;ParentLinearlayout&gt;
      &lt;ChildLinearlayout&gt;
         &lt;Button&gt;
      &lt;/ChildLinearlayout&gt;
      &lt;ChildLinearlayout&gt;
         &lt;Button&gt;
      &lt;/ChildLinearlayout&gt;
  &lt;/ParentLinearlayout1&gt;
  </code></pre>
  
  <p>Number of ChildLinearlayout is changed ,add and delete dynamically.</p>
  
  <p>When button is clicked, I want to remove ChildLinearlayout which is parent of Button.</p>
  
  <p>but I dont know index linearlayout. index is often changed,therefore cant use tag.</p>
  
  <p>How to know LinearLayout index?</p>