How to delay an inflate with a button
<p>Well I'm a new one in this word an I'm trying to delay an inflate because when you pressed a button an animation in other buttons happen and the inflate too.</p>

<p>But you cannot see animations because inflate comes quickly, so I want to delay the inflate like 2000ms so you can see first the animations and then the information that is in the inflate.</p>

<p>I'm using the same button for call the animations and the inflate.</p>

<p>Here's my code:</p>

<pre><code> case R.id.btnsalud:

    //This is the code for animations   

        //This is the loader for all the animations that is used for the button
        {final Animation animBounceForSalud = AnimationUtils.loadAnimation(this, R.anim.bounce);
        final Animation animBounceForSalud1 = AnimationUtils.loadAnimation(this, R.anim.bounce1);
        //This object is the objects (buttons) whom is applied the animation
        final Button animSalud = (Button)findViewById(R.id.btnobra);
        final Button animSalud1 = (Button)findViewById(R.id.btnprotesta);
        //This object (button) is the one which applies the animation to the other buttons
        Button btnBounceSalud = (Button)findViewById(R.id.btnsalud);      
    animSalud.startAnimation(animBounceForSalud);
    animSalud1.startAnimation(animBounceForSalud1);
    animSalud.setVisibility(500);
    animSalud1.setVisibility(500);}



    //This is the code for inflate  
    //Check if the Layout already exists
    LinearLayout hiddenLayout1 = (LinearLayout)findViewById(R.id.hiddenLayout);
    if((hiddenLayout1 == null)){
        //Right here is where you can defined in which layout is going to 
        //inflate the hidden layout
        LinearLayout myLayout = (LinearLayout)findViewById(R.id.inflateposition0);
        View hiddenInfo = getLayoutInflater().inflate(R.layout.salud, myLayout, false);
        myLayout.addView(hiddenInfo);

    }

    break;
</code></pre>

<p>Any answer will be apreciated :D</p>
