layout animation issues
<p>First, sorry for my english, i'm vietnamese and my english is bad so please don't be mad ok!</p>

<p>hi everyone, i have to create an app with using animation for layout (pushleft and pushright)
this is my code :</p>

<pre><code>ArrayList&lt;LinearLayout&gt;linear=new ArrayList&lt;LinearLayout&gt;();
Animation animLeft,animRight;



     for(int i=0;i&lt;10;i++)
            {
                LinearLayout llayout=new LinearLayout(getApplicationContext());
                LinearLayout.LayoutParams lp=new       LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
                lp.setMargins(0, 0, 0, 0);
                llayout.setLayoutParams(lp);
                llayout.setId(i);
                if(i%2==0)
                {
                    llayout.setAnimation(animLeft);
                    Log.d("SetAnimation,Left","i:"+i);
                    llayout.startLayoutAnimation();
                }
                else
                {
                    llayout.setAnimation(animRight);
                    Log.d("SetAnimation,Right","i:"+i);
                    llayout.startLayoutAnimation();
                }
                linear.add(llayout);
            }
</code></pre>

<p><strong>//code for animation :</strong></p>

<p><strong>+pushleft</strong></p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="300"/&gt;
    &lt;alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" /&gt;
     &lt;/set&gt;
</code></pre>

<p><strong>+pushright</strong></p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="300"/&gt;
    &lt;alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" /&gt;
     &lt;/set&gt;
</code></pre>

<hr>

<pre><code>    public void CreateGame(int round)
{

    ///////////Load all method//////////////
    tvarray=TaoTextView(round);
    addTexttoLayoutbyRandom(round, tvarray);

    for(int i=0;i&lt;round;i++)
    {
        Linearcenter.addView(linear.get(i));
        //linear.get(i).startLayoutAnimation();

    }
    ////////////////////////////////////////
    Linearcenter.startLayoutAnimation();
    iResult=RandomRound(round);
    iRound=round;
    //Linearcenter.startLayoutAnimation();
}
</code></pre>

<p>I set CreateGame in <code>onCreate()</code>, pleaze ignore some param extraneous (like round,iRound,iResult ..)
when the application start i just see 1 child layout effect and it's a first layout with <code>id = 0</code>
What's wrong??plz tell me why ?</p>
