How to add bottom view to a Coordinator Layout with view pager?
<p>I want to add a bottom view to a <code>Coordinator</code> layout with <code>view pager</code> in it , Bottom View will be on top of <code>fragment</code> loaded by <code>view pager</code> and independent of it .</p>

<p>I added a <code>linear layout</code> with </p>

<pre><code>layout_gravity = "bottom"
</code></pre>

<p>but bottom view <code>linear layout</code> is not showing at all </p>

<p>Following is my <code>xml</code> layout of the <code>activity</code>.</p>

<pre><code>&lt;android.support.design.widget.CoordinatorLayout

xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"&gt;

&lt;android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;

    &lt;android.support.v7.widget.Toolbar
        android:id="@+id/maintoolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:layout_scrollFlags="scroll|enterAlways"
        app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /&gt;
    &lt;android.support.design.widget.TabLayout
        android:id="@+id/maintabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:tabMode="fixed"
        app:tabGravity="fill" /&gt;
&lt;/android.support.design.widget.AppBarLayout&gt;





&lt;android.support.v4.view.ViewPager
    android:id="@+id/mainviewpager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"  /&gt;


&lt;LinearLayout
    android:id="@+id/completeBottomView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"&gt;

    &lt;ProgressBar
        android:id="@+id/progressBarBottomView"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="match_parent"
        android:layout_height="5dp"
        android:indeterminate="false"
        android:visibility="gone"
        android:max="100"
        android:progress="1"/&gt;

    &lt;HorizontalScrollView
        android:id="@+id/limiter_scroller"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|start"
        android:background="#FF3399"
        &gt;
        &lt;LinearLayout
            android:id="@+id/limiter_layout"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:onClick="clickFromBottomView"/&gt;
    &lt;/HorizontalScrollView&gt;

&lt;/LinearLayout&gt;

&lt;/android.support.design.widget.CoordinatorLayout&gt;
</code></pre>