Android PagerSlidingTabStrip
============================
Interactive paging indicator widget, compatible with the `ViewPager` from the
Android Support Library.
Try out the sample application [on the Play Store][3].
![PagerSlidingTabStrip Sample Screenshot 1][4] ![PagerSlidingTabStrip Sample Screenshot 2][5]
Usage
=====
*For a working implementation of this project see the `sample/` folder.*
1. Include the PagerSlidingTabStrip widget in your view. This should usually be placed
adjacent to the `ViewPager` it represents.
<com.astuetz.viewpager.extensions.PagerSlidingTabStrip
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="48dip" />
2. In your `onCreate` method (or `onCreateView` for a fragment), bind the
widget to the `ViewPager`.
// Set the pager with an adapter
ViewPager pager = (ViewPager) findViewById(R.id.pager);
pager.setAdapter(new TestAdapter(getSupportFragmentManager()));
// Bind the widget to the adapter
PagerSlidingTabStrip tabs = (PagerSlidingTabStrip) findViewById(R.id.tabs);
tabs.setViewPager(pager);
3. *(Optional)* If you use an `OnPageChangeListener` with your view pager
you should set it in the widget rather than on the pager directly.
// continued from above
tabs.setOnPageChangeListener(mPageChangeListener);
Developed By
============
* Andreas Stuetz - <andreas.stuetz@gmail.com>
Credits
-------
* [Kirill Grouchnikov][1] - Author of [an explanation post on Google+][2]
License
=======
Copyright 2013 Andreas Stuetz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
[1]: https://plus.google.com/108761828584265913206/posts
[2]: https://plus.google.com/108761828584265913206/posts/Cwk7joBV3AC
[3]: https://play.google.com/store/apps/details?id=com.astuetz.viewpager.extensions.sample
[4]: https://lh3.ggpht.com/PXS7EmHhQZdT1Oa379iy91HX3ByWAQnFZAthMAFa_QHAOHNClEaXU5nxDEAj1F2eqbk
[5]: https://lh3.ggpht.com/oaksDoUcQlGB4j7VEkBCOjrvSzjtzVHHcKq8pAnGVfm6oxkcJg_w1QS4tyP3fLcqrwcX
yxkfw
- 粉丝: 82
- 资源: 2万+
最新资源
- 3b015大学生创业项目管理系统_springboot+vue0.zip
- x86-64架构下gmssl工具
- 3b016个性化课程推荐系统_springboot+vue.zip
- 电影订票及评论网站的设计与实现-springboot毕业项目,适合计算机毕-设、实训项目、大作业学习.zip
- 3b014宠物猫店管理系统_springboot+vue.zip
- 仓库管理系统pf-springboot毕业项目,适合计算机毕-设、实训项目、大作业学习.zip
- 洞见研报Geek+(智能物流机器人研发商,北京极智嘉科技股份有限公司)创投信息
- 付费问答系统的设计与实现-springboot毕业项目,适合计算机毕-设、实训项目、大作业学习.rar
- 3b017旅游景区预约服务系统_springboot+vue0.zip
- 新版在线生成一合三网站缩微图工具PHP源码
- 基于BS的社区物业管理系统-springboot毕业项目,适合计算机毕-设、实训项目、大作业学习.rar
- 基于Java的美妆购物网站的设计与实现-springboot毕业项目,适合计算机毕-设、实训项目、大作业学习.rar
- 基于HTML语言的环保网站的设计与实现-springboot毕业项目,适合计算机毕-设、实训项目、大作业学习.rar
- 德普微一级代理 DP040N04DTL TO-252 DPMOS N-MOSFET 40V 100A 3.2mΩ
- 3b019企业人事管理系统_springboot+vue.zip
- 3b018企业人力资源管理系统_springboot+vue.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈