I'm using Jake Wharton's ViewPagerIndicator widget to allow the user to swipe between a couple of different views. It's working great. The problem I'm having is that I want to float the indicator widget (in this case the CirclePageIndicator) over the ViewPager, instead of having it appear as a block element above (or below) the actual content (There's a full-screen background image on the content within my viewpager content, and I want the indicator to float over this as well, instead of creating a strip above the content).
Here's the RelativeLayout that doesn't work. I'd just expect the elements to stack on top of each other (indicator on top of the viewpager). If I replace the RelativeLayout with LinearLayout (android:orientation="vertical"), the indicator reappears, but above the content.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.viewpagerindicator.CirclePageIndicator
android:id="@+id/indicator"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<android.support.v4.view.ViewPager
android:id="@+android:id/viewpager"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</RelativeLayout>
How do I alter my existing code to get the effect I'm after?