I have two linear layouts inside the main linear layout, and I set the two linear layouts background images. Now I want to display both images one by one. The first image should be displayed with fade in animation slowly; after completion of this, the second image should also be displayed slowly with fade in animation. How can I do that? My code and the screenshot are given below. Thanks in advance.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_weight="15"
android:id="@+id/L1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@drawable/b2">
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="#ffffffff" />
<LinearLayout
android:layout_weight="85"
android:id="@+id/L2"
android:orientation="vertical"`
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@drawable/b1">
</LinearLayout>
</LinearLayout>