PageIndicatorView底部点显示
来源:互联网 发布:caroemerald 知乎 编辑:程序博客网 时间:2024/04/28 18:51
1、依赖包:
compile 'com.romandanylyk:pageindicatorview:X.X.X'
If your project already use appcompat-v7
support library, you can omit PageIndicatorView
dependencies by adding a single .aar file to your project, that will decrease total amount of methods used in your project.
compile 'com.romandanylyk:pageindicatorview:X.X.X@aar'
Keep in mind, that PageIndicatorView
has min API level 14 and these dependencies:
compile 'com.android.support:support-annotations:25.3.0' compile 'com.android.support:support-compat:25.3.0' compile 'com.android.support:support-core-ui:25.3.0'
ViewPager viewPager = (ViewPager) findViewById(R.id.viewPager);viewPager.setAdapter(adapter);//instance of android.support.v4.view.PagerAdapter adapterPageIndicatorView pageIndicatorView = (PageIndicatorView) view.findViewById(R.id.pageIndicatorView);pageIndicatorView.setViewPager(viewPager);
3、布局中
<com.rd.PageIndicatorView android:id="@+id/pageIndicatorView" android:layout_width="wrap_content" android:layout_height="wrap_content" attrs:piv_viewPager="@+id/viewPager"/>
Name Support version Preview
AnimationType.NONE
0.0.1AnimationType.COLOR
0.0.1AnimationType.SCALE
0.0.1AnimationType.SLIDE
0.0.1AnimationType.WORM
0.0.1AnimationType.FILL
0.0.6AnimationType.THIN_WORM
0.0.7AnimationType.DROP
0.1.0AnimationType.SWAP
0.1.1阅读全文
0 0
- PageIndicatorView底部点显示
- PageIndicatorView
- ViewPager中设置底部显示圆点焦点(二)
- Android UI设计——ViewPager中设置底部显示圆点焦点(二)
- Android UI设计(引导界面):ViewPager之界面添加底部圆点与循环显示
- Android UI设计——ViewPager中设置底部显示圆点焦点
- tabLayout底部显示!!
- Android TabWidget底部显示
- DialogFragment显示在底部
- ActionBar在底部显示
- DiaLog在底部显示
- 文字在底部显示
- dialog底部显示
- RecyclerView 显示底部,滚动底部(无动画)
- ViewPager底部圆点指示器
- 在div 底部显示背景图片
- MSN 不显示底部广告
- listview底部显示不全问题
- SpringMVC的原理
- 百万富翁与陌生人的交换
- 回调函数,qsort函数,与qsort函数的模拟
- 【数据结构】递归,栈
- ArrayList 与 LinkedList的插入效率实践分析
- PageIndicatorView底部点显示
- Java四种线程池的使用
- 【杂七杂八】Filezilla配置FTP中的坑以及出坑办法
- 手动编译安装LAMP之httpd
- Run-time error 70: Permission denied 的问题该如何解决
- Linux下zip加密压缩
- St13runtime_error CDB : Error -30974, can't open database bitcoin in Runaway exception
- 解决:ImportError: No module named 'xxxx'-------python中关于import语句的认识2
- SpringCloud教程二:服务消费者(rest+ribbon)