Android 循环页面指示器和浏览页面

Android 循环页面指示器和浏览页面,android,android-viewpager,Android,Android Viewpager,我们是否有任何circularpageindicator和ViewPager示例或任何现有库,如我在图中所附 让我们在values/arrays.xml中创建一个数组 结果pIndex=3 产品介绍。它被称为查看寻呼机。您在底部看到的圆圈是现有库?中的圆圈页指示器?。检查此项是否有助于我制作此指示器。。。只使用一个文本视图和一个字符串数组,其中包含所有空的和完整的Unicode圆的组合。Raghunandan请写下你的评论作为答案,我会将其标记为答案。 <?xml version="1.0

我们是否有任何circularpageindicator和ViewPager示例或任何现有库,如我在图中所附


让我们在values/arrays.xml中创建一个数组

结果pIndex=3


产品介绍。它被称为查看寻呼机。您在底部看到的圆圈是现有库?中的圆圈页指示器?。检查此项是否有助于我制作此指示器。。。只使用一个文本视图和一个字符串数组,其中包含所有空的和完整的Unicode圆的组合。Raghunandan请写下你的评论作为答案,我会将其标记为答案。
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!-- ... -->

    <!-- Pager position (5 pages) -->
        <string-array name="positions" translatable="false">
            <item>\u25cf \u25cb \u25cb \u25cb \u25cb</item>
            <item>\u25cb \u25cf \u25cb \u25cb \u25cb</item>
            <item>\u25cb \u25cb \u25cf \u25cb \u25cb</item>
            <item>\u25cb \u25cb \u25cb \u25cf \u25cb</item>
            <item>\u25cb \u25cb \u25cb \u25cb \u25cf</item>
        </string-array>

    <!-- ... -->

</resources>
// Declare the array (5 positions)
private static String positions[] = new String[5];
// Fill it by getting it from the resource array we prepared earlier
positions = getResources().getStringArray(R.array.positions);

// Prepare an index
private static int pIndex = 0;
//Set it's value in code (here it's fixed, but normally it's a counter)
// pInxex range: 0,..., 4
pIndex = 3;

// Find the position holder View
final TextView txtPosition = (TextView) v.findViewById(R.id.txtPosition);
// Set its value
txtPosition.setText(positions[pIndex]);