Animation in Android
<p>I am having a default layout from which i have to inflate new layout..My code is here   </p>

<pre><code>super.onCreate(savedInstanceState);
     setContentView(R.layout.mydeals_list);

     list_layout=(RelativeLayout) findViewById(R.id.mydeals_list_layout);
</code></pre>

<p>If this condition satisfies i want new Layout how i can hide the R.layout.mydeals_list layout and make new layout Visible</p>

<pre><code>if(Signin.login_flag){
     list_layout.setVisibility(View.GONE);
     LayoutInflater inflater = (LayoutInflater) DbServerActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     final View layout = inflater.inflate(R.layout.slider, (ViewGroup)findViewById(R.id.slider_main_layout));
</code></pre>

<p>---------Place i want to display new layout ----------------</p>

<pre><code>         Animation slideUpIn = AnimationUtils.loadAnimation(DbServerActivity.this,R.anim.slide);
         slide_layout.startAnimation(slideUpIn);

      }
</code></pre>
