Access Layout Elements to the Depth of N
<p>I have a pretty annoying problem here, as Im still trying to internalize each and every bits of what I am doing,</p>

<p>I currently have a LinearLayout, then upon onCreate of the Activity, I will populate or inflate several other LinearLayout's with Buttons, my problem is that when I try to access the button, it seems that I'm not getting any close or deeper from the LinearLayout, all I can get is the LinearLayout(Parent) and the other LinearLayout(Children), I believe there is a way, Im just totally confused how to do it.</p>

<pre><code>LinearLayout
 -&gt;LinearLayout(Child1)-&gt;Button1, Button2, Button3
 -&gt;LinearLayout(Child2)-&gt;Button4, Button5, Button6
</code></pre>

<p>How would I be able to access and get the Buttons?</p>

<p>My source;</p>

<pre><code>for (int x=0; x&lt;ll.getChildCount(); x++){
  View v = ll.getChildAt(x);
  Class c = v.getClass();
  if(c == LinearLayout.class){
    for(int y=0; y&lt; ; y++){
      **I know there is something that must be done here, likewise, is this the most
      efficient way of doing things?
    }
  }
 Log.i("test", c.getName());
}
</code></pre>

<p>Only the LinearLayout(Parent) exist in the XML, others are inflated run-time.</p>
