title: CirclePageIndicator bottom of the screen
body: <p>I know this is quite common problem, but I couldn't find the answer to my question after googling for several hours. </p>
  
  <p>I am using the PageViewIndicator library. I want to add circle indicators in the bottom of the layout. I am trying this , but when the app opens it crashes immediately. When I swap the places of  CirclePageIndicator and ViewPager it works perfectly but the indicator shows on the top of the activity .</p>
  
  <pre><code>&lt;LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"&gt;
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/pager"
      android:layout_width="fill_parent"
      android:layout_height="0dp"
      android:layout_weight="1"
      /&gt;
  
  
  &lt;com.viewpagerindicator.CirclePageIndicator
      android:id="@+id/indicator"
      android:padding="10dip"
      android:layout_height="wrap_content"
      android:layout_width="fill_parent"
      android:background="#000000"
  
      /&gt;
  
     &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And this is how I initialize it in Java </p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_take_test);
  
      mAdapter = new FragmentAdapter(getSupportFragmentManager());
  
      mPager = (ViewPager)findViewById(R.id.pager);
      mPager.setAdapter(mAdapter);
  
      mIndicator = (CirclePageIndicator)findViewById(R.id.indicator);
      mIndicator.setViewPager(mPager);
  
  }
  </code></pre>
  
  <p>How can I fix this using only LinearLayout ?</p>