I have a FrameLayout and inside it I have a GridView
. Then I need to add a progress bar after the grid view at the bottom after GridView
like loading, but the progress bar is coming ontop of GridView
. Below is my code.
I am using TabHost
which contains tab widget for tabs(3) and FrameLayout
for GridView
as below:
<
FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_below="@+id/EmptyFonesLayout" >
<GridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/gridview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:verticalSpacing="4dp" android:horizontalSpacing="4dp" android:numColumns="auto_fit" android:columnWidth="90dp" android:stretchMode="columnWidth" android:gravity="center_horizontal"
android:textFilterEnabled="true" android:background="#00ffff"/>
<RelativeLayout
android:id="@+id/linlaProgressBar"
android:layout_width="fill_parent"
android:layout_height="20dp"
android:orientation="horizontal"
android:layout_gravity="bottom"
android:gravity="center"
android:background="#00FFFF"
android:visibility="gone"
android:layout_alignParentBottom="true">
<!-- android:layout_below="@+id/gridview" -->
<ProgressBar
style="?android:attr/progressBarStyleSmall"
android:layout_width="20dp"
android:layout_height="20dp"/>
<TextView
android:id="@+id/emptyfonetext"
android:text="Loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:paddingRight="15dp"
android:textSize="16dp"/>
</RelativeLayout> -->
</FrameLayout>