我有一个视图分页画廊和底部的圆形页面指示器。我想把页面指示器放在视图分页画廊的前面,并使其透明,就像 iPhone 图片画廊一样。你有任何想法怎么做吗?
解决方案:
这里是 XML 代码作为解决方案。感谢 @sanna。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000000">
<android.support.v4.view.ViewPager
android:id="@+id/gallery_view"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
/>
<com.viewpagerindicator.CirclePageIndicator
android:id="@+id/indicator"
android:padding="10dip"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_alignParentBottom="true"
/>
</RelativeLayout>
这里展示了我的图库的新外观。