My layout contains a LinearLayout on top and has two childrens - RelativeLayout and ListView. The RelativeLayout contains a ImageSwitcher. I have observed that when listview is being populated, the ImageSwitcher takes the whole screen and then shrinks once the listview is visible. Is it possible to avoid the effect? Here is my layout xml
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="6" >
<ImageSwitcher
android:id="@+id/image_anim"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/save"
android:src="@drawable/ic_action_camera_black" >
</ImageSwitcher>
<TextView
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_alignBottom="@id/image_anim"
android:background="#aa000000"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:paddingRight="8dp"
android:text="@string/abc_action_bar_home_description"
android:textColor="#ffeeeeee" />
</RelativeLayout>
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="4"
android:visibility="visible" >
</ListView>