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
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
类似google play store的滑动页面导航效果,在多个页面进行平滑的页面切换 (130个子文件)
resources.ap_ 990KB
PagerSlidingTabStrip-sample.apk 1.16MB
jarlist.cache 120B
PagerSlidingTabStrip.class 15KB
MainActivity.class 5KB
QuickContactFragment.class 4KB
SuperAwesomeCardFragment.class 3KB
QuickContactFragment$ContactPagerAdapter.class 3KB
PagerSlidingTabStrip$PageListener.class 2KB
PagerSlidingTabStrip$1.class 2KB
MainActivity$1.class 2KB
PagerSlidingTabStrip$SavedState.class 2KB
MainActivity$MyPagerAdapter.class 2KB
PagerSlidingTabStrip$SavedState$1.class 1KB
R$styleable.class 1KB
R$styleable.class 1KB
R$styleable.class 1KB
PagerSlidingTabStrip$2.class 1KB
PagerSlidingTabStrip$3.class 1KB
R$drawable.class 1KB
R.class 1KB
R$attr.class 976B
R$attr.class 838B
R$attr.class 817B
R$id.class 601B
R.class 577B
R.class 577B
R$style.class 532B
R$dimen.class 524B
R$color.class 513B
R$layout.class 512B
R$drawable.class 501B
R$color.class 500B
R$string.class 499B
R$drawable.class 452B
R$menu.class 451B
R$color.class 451B
BuildConfig.class 387B
BuildConfig.class 373B
PagerSlidingTabStrip$IconTabProvider.class 312B
.classpath 475B
.classpath 475B
classes.dex 742KB
.gitignore 328B
build.gradle 300B
build.gradle 275B
build.gradle 131B
settings.gradle 36B
android-support-v4.jar 473KB
android-support-v4-556243bf10ad90fed132b60b8623f8ee.jar 185KB
pagerslidingtabstrip-library.jar 13KB
pagerslidingtabstrip-library-b85987dfcad6c7b6535755847a79353d.jar 8KB
R.java 20KB
R.java 17KB
PagerSlidingTabStrip.java 16KB
MainActivity.java 6KB
QuickContactFragment.java 4KB
SuperAwesomeCardFragment.java 2KB
R.java 2KB
BuildConfig.java 181B
BuildConfig.java 174B
README.md 3KB
contact.png 3.58MB
contact.png 931KB
tabs_pattern.png 47KB
tabs_pattern_diagonal.png 46KB
ic_launcher-web.png 33KB
ic_launcher_gmaps.png 8KB
ic_launcher_gmaps.png 8KB
ic_launcher.png 7KB
ic_launcher.png 7KB
ic_launcher_chrome.png 6KB
ic_launcher_chrome.png 6KB
ic_launcher.png 5KB
ic_launcher.png 5KB
ic_launcher_gmail.png 4KB
ic_launcher_gmail.png 4KB
ic_launcher.png 4KB
ic_launcher_gplus.png 3KB
ic_launcher.png 3KB
ic_launcher_gplus.png 3KB
ic_launcher.png 2KB
ic_launcher_actionbar.png 2KB
ic_launcher.png 2KB
ic_launcher_actionbar.png 2KB
ic_launcher_actionbar.png 2KB
ic_launcher_actionbar.png 1KB
ic_launcher_actionbar.png 1KB
ic_launcher_actionbar.png 876B
ic_launcher_actionbar.png 875B
ic_action_user.png 866B
ic_action_user.png 826B
ic_launcher_actionbar.png 559B
background_card.9.png 307B
background_card.9.png 214B
actionbar_bottom.9.png 150B
tabs_pattern_diagonal.png 98B
actionbar_bottom.9.png 88B
tabs_pattern.png 71B
org.eclipse.jdt.core.prefs 177B
共 130 条
- 1
- 2
资源评论
- syumin20092014-09-03例子非常不错,帮助蛮大
- SpringAndroid2015-05-17参考还不错。。
anonymousblogs
- 粉丝: 34
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功