title: Android: Get components of a child layout
body: <p>I have an <em>inflate view</em> that i add in a <em>LinearLayout</em> every time that click in a <em>"add"</em> button. This <em>view</em> have a lot of components (TextViews, Spinner ), so, how can i get the informations of the components of each view and put it on a object when other button <em>"confirm"</em> be clicked.                </p>
  
  <p>i try this, that i saw a similiar resolution here in StackOverflow :</p>
  
  <pre><code>    confirmRecord = ( Button ) findViewById( R.id.btConfirmRecord );
      confirmRecord.setOnClickListener(new OnClickListener() {
  
      public void onClick(View v) {               
          ArrayList&lt;ViewGroup&gt; elementList = new ArrayList&lt;ViewGroup&gt;();
  
          for( int i = 0; i &lt; listRecord.getChildCount(); i++ ){
             if( listRecord.getChildAt( i ) instanceof ViewGroup ){
              elementList.add( (ViewGroup) listRecord.getChildAt( i ) );
             }    
           }
          }
      });
  </code></pre>
  
  <p>but i don't know what i especifically got from the view.</p>