Android ViewPagerIndicator
==========================
Port of [Patrik Åkerfeldt][1]'s paging indicators that are compatible with the
ViewPager from the [Android Compatibility Library][2] and
[ActionBarSherlock][3].
Try out the sample application [on the Android Market][10].
![ViewPagerIndicator Sample Screenshots][9]
Usage
=====
*For a working implementation of this project see the `sample/` folder.*
1. Include one of the widgets in your view. This should usually be placed
adjacent to the `ViewPager` it represents.
<com.viewpagerindicator.TitlePageIndicator
android:id="@+id/titles"
android:layout_height="wrap_content"
android:layout_width="fill_parent" />
2. In your `onCreate` method (or `onCreateView` for a fragment), bind the
indicator to the `ViewPager`.
//Set the pager with an adapter
ViewPager pager = (ViewPager)findViewById(R.id.pager);
pager.setAdapter(new TestAdapter(getSupportFragmentManager()));
//Bind the title indicator to the adapter
TitlePageIndicator titleIndicator = (TitlePageIndicator)findViewById(R.id.titles);
titleIndicator.setViewPager(pager);
*Note*: If you are using `TitlePageIndicator` your adapter must implement
`TitleProvider`.
3. *(Optional)* If you use an `OnPageChangeListener` with your view pager
you should set it in the indicator rather than on the pager directly.
//continued from above
titleIndicator.setOnPageChangeListener(mPageChangeListener);
Theming
-------
There are three ways to style the look of the indicators.
1. **Theme XML**. An attribute for each type of indicator is provided in which
you can specify a custom style.
2. **Layout XML**. Through the use of a custom namespace you can include any
desired styles.
3. **Object methods**. Both styles have getters and setters for each style
attribute which can be changed at any point.
Each indicator has a demo which creates the same look using each of these
methods.
Including In Your Project
-------------------------
Android-ViewPagerIndicator is presented as an [Android library project][7]. A
standalone JAR is not possible due to the theming capabilities offered by the
indicator widgets.
You can include this project by [referencing it as a library project][8] in
Eclipse or ant.
If you are a Maven user you can easily include the library by specifying it as
a dependency:
<dependency>
<groupId>com.viewpagerindicator</groupId>
<artifactId>library</artifactId>
<version>2.2.3</version>
<type>apklib</type>
</dependency>
You must also include the following repository:
<repository>
<id>com.jakewharton</id>
<url>http://r.jakewharton.com/maven/release</url>
</repository>
This project depends on the `ViewPager` class which is available in the
[Android Compatibility Library][2] or [ActionBarSherlock][3]. Details for
including one of those libraries is available on their respecitve web sites.
Developed By
============
* Jake Wharton - <jakewharton@gmail.com>
Credits
-------
* [Patrik Åkerfeldt][1] - Author of [ViewFlow][4], a precursor to the ViewPager,
which supports paged views and is the original source of both the title
and circle indicators.
* [Francisco Figueiredo Jr.][5] - Idea and [first implementation][6] for
fragment support via ViewPager.
License
=======
Copyright 2011 Patrik Åkerfeldt
Copyright 2011 Francisco Figueiredo Jr.
Copyright 2011 Jake Wharton
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://github.com/pakerfeldt
[2]: http://developer.android.com/sdk/compatibility-library.html
[3]: http://actionbarsherlock.com
[4]: https://github.com/pakerfeldt/android-viewflow
[5]: https://github.com/franciscojunior
[6]: https://gist.github.com/1122947
[7]: http://developer.android.com/guide/developing/projects/projects-eclipse.html
[8]: http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject
[9]: https://raw.github.com/JakeWharton/Android-ViewPagerIndicator/master/sample/screens.png
[10]: https://market.android.com/details?id=com.viewpagerindicator.sample
没有合适的资源?快使用搜索试试~ 我知道了~
networklog, Android网络日志监视器.zip
共1010个文件
png:412个
xml:237个
java:233个
3星 · 超过75%的资源 需积分: 12 6 下载量 37 浏览量
2019-10-10
13:48:33
上传
评论 1
收藏 7.51MB ZIP 举报
温馨提示
networklog, Android网络日志监视器 #Android 网络日志监视器需要根设备。你想知道你的Android应用在互联网上的连接时间和时间? 请看网络日志是为你准备的 ! 网络日志监视iptables日志记录,显示哪些应用程序正在建立网络连接,并提供关于这些应用程序连接
资源推荐
资源详情
资源评论
收起资源包目录
networklog, Android网络日志监视器.zip (1010个子文件)
attr.c 25KB
grep.c 24KB
getopt32.c 20KB
nlmsg.c 18KB
nflog.c 11KB
socket.c 9KB
recursive_action.c 5KB
callback.c 5KB
get_line_from_file.c 4KB
run_pie.c 2KB
llist.c 2KB
xregcomp.c 881B
libbb.c 109B
proguard.cfg 1KB
CNAME 22B
styles.css 10KB
1120.css 2KB
ie.css 304B
loading.gif 5KB
.gitignore 270B
.gitignore 139B
.gitignore 55B
platform.h 15KB
libmnl.h 8KB
netlink.h 5KB
nfnetlink_log.h 3KB
libbb.h 2KB
config.h 2KB
grep.h 2KB
xregex.h 678B
internal.h 243B
index.html 10KB
usage.html 8KB
migration.html 5KB
default.html 5KB
faq.html 4KB
download.html 4KB
theming.html 4KB
samples.html 3KB
development.html 3KB
support.html 2KB
merch-and-donations.html 2KB
favicon.ico 1KB
guice-3.0-no_aop.jar 471KB
android-support-v4.jar 265KB
android-support-v4.jar 265KB
android-support-v4.jar 265KB
android-support-v4.jar 265KB
android-support-v4.jar 265KB
android-support-v4.jar 265KB
android-support-v4.jar 265KB
android-support-v4.jar 265KB
android-support-v4.jar 242KB
roboguice-2.0b4.jar 117KB
nineoldandroids-2.2.0.jar 103KB
roboguice-sherlock-1.0.jar 8KB
javax.inject-1.jar 2KB
AppFragment.java 71KB
ActionBarView.java 60KB
ValueAnimator.java 52KB
ActionBarSherlockCompat.java 45KB
MenuBuilder.java 45KB
AnimatorSet.java 45KB
PropertyValuesHolder.java 44KB
IcsProgressBar.java 41KB
ActivityChooserModel.java 39KB
IcsAdapterView.java 38KB
ActionBar.java 36KB
NetworkLogService.java 35KB
LogFragment.java 34KB
ActionBarImpl.java 32KB
ActivityChooserView.java 30KB
ActionBarSherlock.java 30KB
TitlePageIndicator.java 29KB
GraphView.java 28KB
NetworkLog.java 27KB
ActionMenuPresenter.java 25KB
IcsListPopupWindow.java 24KB
MenuItem.java 23KB
IcsSpinner.java 23KB
Settings.java 22KB
ActionMenuView.java 22KB
ObjectAnimator.java 21KB
MenuInflater.java 19KB
ActionBarContextView.java 19KB
ScrollingTabContainerView.java 19KB
LoaderThrottleSupport.java 19KB
MenuItemImpl.java 18KB
CirclePageIndicator.java 18KB
LoaderCustomSupport.java 17KB
Menu.java 17KB
Preferences.java 15KB
ApplicationsTracker.java 15KB
IcsAbsSpinner.java 15KB
ExportDialog.java 14KB
NetworkResolver.java 14KB
Keyframe.java 14KB
Overlay.java 13KB
ActionBarWrapper.java 13KB
Cheeses.java 12KB
共 1010 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
- 程序猿小Z2020-05-12您好,可以详细说下这个监视器怎么操作吗?
weixin_38743506
- 粉丝: 349
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功