<small id='pfn6j'></small><noframes id='pfn6j'>

  • <i id='pfn6j'><tr id='pfn6j'><dt id='pfn6j'><q id='pfn6j'><span id='pfn6j'><b id='pfn6j'><form id='pfn6j'><ins id='pfn6j'></ins><ul id='pfn6j'></ul><sub id='pfn6j'></sub></form><legend id='pfn6j'></legend><bdo id='pfn6j'><pre id='pfn6j'><center id='pfn6j'></center></pre></bdo></b><th id='pfn6j'></th></span></q></dt></tr></i><div id='pfn6j'><tfoot id='pfn6j'></tfoot><dl id='pfn6j'><fieldset id='pfn6j'></fieldset></dl></div>

    1. <legend id='pfn6j'><style id='pfn6j'><dir id='pfn6j'><q id='pfn6j'></q></dir></style></legend>
    2. <tfoot id='pfn6j'></tfoot>

          <bdo id='pfn6j'></bdo><ul id='pfn6j'></ul>

        如何自定义 CirclePageIndicator?

        How to customise the CirclePageIndicator?(如何自定义 CirclePageIndicator?)

          <bdo id='1TPQd'></bdo><ul id='1TPQd'></ul>

                <tbody id='1TPQd'></tbody>
            • <legend id='1TPQd'><style id='1TPQd'><dir id='1TPQd'><q id='1TPQd'></q></dir></style></legend>

                  <tfoot id='1TPQd'></tfoot>
                1. <small id='1TPQd'></small><noframes id='1TPQd'>

                  <i id='1TPQd'><tr id='1TPQd'><dt id='1TPQd'><q id='1TPQd'><span id='1TPQd'><b id='1TPQd'><form id='1TPQd'><ins id='1TPQd'></ins><ul id='1TPQd'></ul><sub id='1TPQd'></sub></form><legend id='1TPQd'></legend><bdo id='1TPQd'><pre id='1TPQd'><center id='1TPQd'></center></pre></bdo></b><th id='1TPQd'></th></span></q></dt></tr></i><div id='1TPQd'><tfoot id='1TPQd'></tfoot><dl id='1TPQd'><fieldset id='1TPQd'></fieldset></dl></div>
                  本文介绍了如何自定义 CirclePageIndicator?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 ViewPagerPagerAdapter 在 android 应用程序中获取 XML 的幻灯片.我正在使用 CirclePageIndicator 对页面进行编号.如何自定义当前页面对应的圆圈颜色?

                  I am using ViewPager and PagerAdapter to get a slideshow of XMLs in android app. I am using CirclePageIndicator to number the page. How can I customise the color of the circle corresponding to current page ?

                  推荐答案

                  在你的 CirclePageIndicator 对象上调用 setPageColor(Color.RED) 来设置默认的填充颜色圈成红色.调用 setFillColor(Color.BLACK) 将选中圆的填充颜色设置为黑色.调用 setStrokeColor(Color.WHITE) 将描边或圆圈的边框颜色设置为白色.

                  On your CirclePageIndicator object call setPageColor(Color.RED) to set the default fill colour of the circle to red. Call setFillColor(Color.BLACK) to set the fill colour of the selected circle to black. Call setStrokeColor(Color.WHITE) to set the stroke or the circle's border colour to white.

                  您可以选择任何您想要自定义指示器的颜色,我提供的这些颜色值仅作为示例.

                  You can pick whatever colour you want to customize the indicator, these colour values I provided are just as an example.

                  您还可以使用 XML 自定义这些指标.

                  You can also customize these indicators using XML.

                  Android-ViewPagerIndicator 的 GitHub 存储库的示例:

                  <com.viewpagerindicator.CirclePageIndicator
                      android:id="@+id/indicator"
                      android:layout_height="wrap_content"
                      android:layout_width="fill_parent"
                      app:fillColor="#FF888888"
                      app:pageColor="#88FF0000"
                      app:strokeColor="#FF000000" />
                  

                  这篇关于如何自定义 CirclePageIndicator?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)
                  How can i use MYSQL database connection in iphone application useing cocos2d?(如何在使用 cocos2d 的 iphone 应用程序中使用 MYSQL 数据库连接?)
                  Smoothly drag a Sprite in cocos2d - iPhone(在 cocos2d 中平滑拖动一个 Sprite - iPhone)
                  Cocos2D complex animations(Cocos2D 复杂动画)

                      <bdo id='jha0f'></bdo><ul id='jha0f'></ul>

                    • <small id='jha0f'></small><noframes id='jha0f'>

                      <legend id='jha0f'><style id='jha0f'><dir id='jha0f'><q id='jha0f'></q></dir></style></legend>
                        <tbody id='jha0f'></tbody>

                        • <i id='jha0f'><tr id='jha0f'><dt id='jha0f'><q id='jha0f'><span id='jha0f'><b id='jha0f'><form id='jha0f'><ins id='jha0f'></ins><ul id='jha0f'></ul><sub id='jha0f'></sub></form><legend id='jha0f'></legend><bdo id='jha0f'><pre id='jha0f'><center id='jha0f'></center></pre></bdo></b><th id='jha0f'></th></span></q></dt></tr></i><div id='jha0f'><tfoot id='jha0f'></tfoot><dl id='jha0f'><fieldset id='jha0f'></fieldset></dl></div>
                          • <tfoot id='jha0f'></tfoot>