forked from JakeWharton/ViewPagerIndicator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
470 lines (448 loc) · 21.2 KB
/
Copy pathindex.html
File metadata and controls
470 lines (448 loc) · 21.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/Product">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="Paging indicator widget compatible with the ViewPager from the Android Support Library and ActionBarSherlock.">
<meta itemprop="name" content="ViewPagerIndicator">
<meta itemprop="description" content="Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.">
<meta itemprop="image" content="http://viewpagerindicator.com/web.png">
<title>ViewPagerIndicator</title>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="google-code-prettify/prettify.css">
<style type="text/css">
html, body {
background: #eee url('project_papper.png') repeat;
}
section {
padding-top: 70px;
padding-bottom: 30px;
}
.navbar-inner {
background: #222 url('concrete_wall.png') repeat;
top: 41px;
}
h2 {
margin-bottom: 0.5em;
}
ol li {
margin-bottom: 20px;
}
pre {
margin: 10px 0;
}
#logo {
margin-bottom: -40px;
}
.social {
text-align: center;
}
.social div {
margin-top: 15px;
}
.app-list .icon {
float: left;
padding-bottom: 20px;
}
#missing {
margin: 1em 2em;
padding: 1em;
border: 1px solid #aaa;
border-radius: 5px;
}
td.indicator {
width: 320px;
}
.image-table {
margin-top: 18px;
}
.image-table td {
padding: 15px;
}
div.well.dl {
background-color: rgba(200, 200, 200, 0.2);
margin: 1em;
}
p.h1 {
font-size: 14px;
font-weight: normal;
margin-bottom: 15px;
}
p.h2 {
margin-top: 25px;
margin-bottom: 10px;
}
.features p {
padding: 0 2em;
margin-bottom: 2em;
}
.features p img {
background-color: rgba(255, 255, 255, 0.4);
border: 1px solid #aaa;
border-radius: 3px;
padding: 5px;
}
#forkme {
position: fixed;
top: 40px;
right: 0px;
}
@media (max-width: 980px) {
#forkme { display: none; }
}
@media (min-width: 980px) {
.nav .dropdown-menu li a:hover {
background: #222 url('concrete_wall.png') repeat;
}
}
</style>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/">ViewPagerIndicator</a>
<div class="nav-collapse">
<ul class="nav pull-right">
<li><a href="#introduction">Introduction</a></li>
<li><a href="#download">Download</a></li>
<li><a href="#usage">Usage</a></li>
<li><a href="#implementations">Implementations</a></li>
<li><a href="#credits">Credits</a></li>
<li class="divider-vertical"></li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><strong>More Libraries</strong> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="http://actionbarsherlock.com/">ActionBarSherlock</a></li>
<li><a href="http://nineoldandroids.com/">NineOldAndroids</a></li>
<li><a href="http://hansel-and-gretel.com/">HanselAndGretel</a></li>
<li><a href="https://github.com/JakeWharton/Android-DirectionalViewPager/">DirectionalViewPager</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<section id="introduction">
<div class="row">
<div class="span8">
<h2>Introduction</h2>
<p>Paging indicator widgets compatible with the <code>ViewPager</code> from the <a href="http://developer.android.com/sdk/compatibility-library.html">Android Support Library</a> and <a href="http://actionbarsherlock.com/">ActionBarSherlock</a>. Originally based on <a href="https://github.com/pakerfeldt">Patrik Åkerfeldt</a>'s ViewFlow.</p>
<p>When using the <code>ViewPager</code> widget it is not always obvious to the user that there are adjacent views they can navigate to. By implementing this widget you provide a clear indicator that there exists additional content which they can click or swipe to see.</p>
<p><img src="https://raw.github.com/JakeWharton/Android-ViewPagerIndicator/master/sample/screens.png"/></p>
</div>
<div class="span4 social">
<img src="web.png">
<div>
<g:plusone href="http://viewpagerindicator.com"></g:plusone>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://viewpagerindicator.com" data-text="Paging indicator widgets compatible with the Android support library ViewPager." data-via="JakeWharton" data-size="large">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
</div>
</section>
<section id="download">
<div class="row">
<div class="span12"><h2>Download</h2></div>
<div class="span8">
<p class="h1"><strong>Version 2.4.1</strong> — 2012-09-11</p>
<p><a href="https://github.com/JakeWharton/Android-ViewPagerIndicator/zipball/master" class="btn small success">Download ZIP</a> <a href="https://github.com/JakeWharton/Android-ViewPagerIndicator/tarball/master" class="btn small success">Download TGZ</a></p>
<p class="h2">Change Log</p>
<ul>
<li>New <code>IconPageIndicator</code>! Uses state-list images to represent pages.</li>
<li><code>TabPageIndicator</code> now supports icons via <code>IconPagerAdapter</code> interface.</li>
<li>Support <code>android:background</code> attribute on Canvas-based views.</li>
<li>Title indicator allows for drawing its line, underline, and/or triangle on top of the titles for placement underneath a <code>ViewPager</code>.</li>
<li>Tab indicator now supports ICS-style dividers (see styled sample).</li>
<li>Fix: Do not attempt to change the <code>ViewPager</code> page when a motion is cancelled.</li>
<li>Fix: Long titles no longer overlap when swiping to the right.</li>
</ul>
<p>Looking for an older version? Check <a href="https://github.com/JakeWharton/Android-ViewPagerIndicator/tags">here</a>.</p>
</div>
<div class="span4">
<p>Try out the sample application: <a href="https://play.google.com/store/apps/details?id=com.viewpagerindicator.sample"><img src="marketqr.png" alt="Download from the Android Market"></a></p>
</div>
</div>
</section>
<section id="usage">
<div class="row">
<div class="span12"><h2>Usage</h2></div>
<div class="span8">
<p></p>
<ol>
<li>
<span>Include one of the widgets in your view. This should usually be placed adjacent to the <code>ViewPager</code> it represents.</span>
<pre class="prettyprint"><com.viewpagerindicator.TitlePageIndicator
android:id="@+id/titles"
android:layout_height="wrap_content"
android:layout_width="fill_parent" /></pre>
</li>
<li>
<span>In your <code>onCreate</code> method (or <code>onCreateView</code> for a fragment), bind the indicator to the <code>ViewPager</code>.</span>
<pre class="prettyprint">//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);</pre>
</li>
<li>
<span>(<em>Optional</em>) If you use an OnPageChangeListener with your view pager you should set it in the indicator rather than on the pager directly.</span>
<pre class="prettyprint">//continued from above
titleIndicator.setOnPageChangeListener(mPageChangeListener);</pre>
</li>
</ol>
<p><strong>For more examples please take a look at the <a href="https://github.com/JakeWharton/Android-ViewPagerIndicator/tree/master/sample">source code to the samples</a>.</strong></p>
</div>
<div class="span4 features">
<p><img src="feature_beautifulwidgets.png" alt=""/></p>
<p><img src="feature_friendcaster.png" alt=""/></p>
<p><img src="feature_ridemetra.png" alt=""/></p>
</div>
</div>
</section>
<section id="implementations">
<div class="row">
<div class="span12"><h2>Implementations</h2></div>
<div class="span8 app-list">
<!--
LOOKING TO ADD YOUR OWN APP?
1. Search for your app on the market. On the search results page,
right click the icon and save it in the `apps/` folder. DO NOT
use the icon from the app summary page as it is too large. You
should name it using your apps package name followed by
'-logo.png' (e.g., "com.jakewharton.coolapp-logo.png")
2.
Copy the following snippet of code below with your app's info.
<a href="https://play.google.com/store/apps/details?id=com.jakewharton.coolapp">
<img class="icon" src="apps/com.jakewharton.coolapp-logo.png"
data-title="Cool App Title"
data-content="Cool App Description"
>
</a>
<<<<<<< HEAD
-->
<a href="https://play.google.com/store/apps/details?id=com.levelup.beautifulwidgets">
<img class="icon" src="apps/com.levelup.beautifulwidgets-logo.png"
data-title="Beautiful Widgets"
data-content="Beautiful set of Widgets containing clock widget, clock and weather widget, weather widgets, date widgets and toggle widgets with skins/themes support! Now with more widgets and layouts!"
>
</a>
<a href="https://play.google.com/store/apps/details?id=uk.co.senab.blueNotifyFree">
<img class="icon" src="apps/uk.co.senab.blueNotifyFree-logo.png"
data-title="FriendCaster"
data-content="FriendCaster for Facebook gives you the best Facebook experience on Android devices!"
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.battlelancer.seriesguide">
<img class="icon" src="apps/com.battlelancer.seriesguide-logo.png"
data-title="SeriesGuide"
data-content="Manage the progress of (re-)watching your favorite TV shows. Keep track of which episodes you still have to watch or which ones are upcoming."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.jerrellmardis.ridemetra">
<img class="icon" src="apps/com.jerrellmardis.ridemetra-logo.png"
data-title="Ride Metra"
data-content="Ride Metra is an easy to use and beautiful transit app that provides Metra train schedules, station locations and directions, nearby stations, upcoming departures, Metra service advisory alerts and the ability to search for a Metra rail line or station."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.florianmski.tracktoid">
<img class="icon" src="apps/com.florianmski.tracktoid-logo.png"
data-title="Traktoid"
data-content="Traktoid, a trakt client."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.ratebeer.android">
<img class="icon" src="apps/com.ratebeer.android-logo.png"
data-title="RateBeer for Android"
data-content="Mobile interface to the world's largest source for information on craft beer: RateBeer."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.blork.anpod">
<img class="icon" src="apps/com.blork.anpod-logo.png"
data-title="Astronomy Picture of the Day"
data-content="Get the latest pictures from NASA's Astronomy Picture of the Day (APOD) and set them as your homescreen wallpaper."
>
</a>
<a href="https://play.google.com/store/apps/details?id=net.ricardoamaral.apps.notificationagenda">
<img class="icon" src="apps/net.ricardoamaral.apps.notificationagenda-logo.png"
data-title="Notification Agenda"
data-content="Simple application which turns small notes into pleasing status bar notifications with fancy high quality icons. All your notes are easily accessible so you never forget all those important appointments ever again."
>
</a>
<a href="https://play.google.com/store/apps/details?id=edu.bgsu.asf.news">
<img class="icon" src="apps/edu.bgsu.asf.news-logo.png"
data-title="BGSU News"
data-content="Simplistic application that allows the user to view the most recent (university-approved) going-ons at Bowling Green State University."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.joeykrim.rootcheckp">
<img class="icon" src="apps/com.joeykrim.rootcheckp-logo.png"
data-title="Root Checker Pro"
data-content="Tool for confirming and troubleshooting root access configurations."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.joeykrim.allaboutroot">
<img class="icon" src="apps/com.joeykrim.allaboutroot-logo.png"
data-title="All About Root"
data-content="Simple educational application providing knowledge and resources around root access on Android devices."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.joeykrim.buildpropeditor">
<img class="icon" src="apps/com.joeykrim.buildpropeditor-logo.png"
data-title="Build Prop Editor"
data-content="Tool for viewing, editing, backup and restoring the system build.prop file."
>
</a>
<a href="https://play.google.com/store/apps/details?id=simon.application.AvionsPapier">
<img class="icon" src="apps/simon.application.AvionsPapier-logo.png"
data-title="Paper Airplanes"
data-content="Paper Airplane is a free application that allows you to easily achieve over 20 models of paper airplanes."
>
</a>
<a href="https://play.google.com/store/apps/details?id=droid.pr.coolflashlightfree">
<img class="icon" src="apps/droid.pr.coolflashlightfree-logo.png"
data-title="Flashlight"
data-content="The Flashlight application is the most complete, intuitive, usefull and simple to use. It allows you to convert your phone/tablet into a handy flashlight either using screen or camera LED/flash as a torch."
>
</a>
<a href="https://play.google.com/store/apps/details?id=nl.jborsje.android.admobster">
<img class="icon" src="apps/nl.jborsje.android.admobster-logo.png"
data-title="AdMob HD"
data-content="AdMobster HD is the most complete client for AdMob. It is the only app that supports multiple accounts and integrates with the secure Android account manager so you don’t have to use your login repeatedly."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.tvshowfavs">
<img class="icon" src="apps/com.tvshowfavs-logo.png"
data-title="TV Show Favs"
data-content="Your personal TV tracker!"
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.zappos.android">
<img class="icon" src="apps/com.zappos.android-logo.png"
data-title="Zappos"
data-content="Free shipping and returns on shoes, clothing, housewears and more! Zappos.com just made it possible for you to go shopping without putting your pants on!"
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.squareup.cardcase">
<img class="icon" src="apps/com.squareup.cardcase-logo.png"
data-title="Pay with Square"
data-content="With Square on your phone you'll never have to swipe your credit card again. Simply walk in the door and say your name at the counter. Pay without ever touching your wallet or phone."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.afrogleap.zorgenzekerheid">
<img class="icon" src="apps/com.afrogleap.zorgenzekerheid-logo.png"
data-title="Dutch Insurance: Zorg en Zekerheid"
data-content="Get information about what is covered by a Dutch insurance."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.zenstyle.seriesaddict">
<img class="icon" src="apps/com.zenstyle.seriesaddict-logo.png"
data-title="SeriesAddict"
data-content="SeriesAddict allows you to manage your BetaSeries account directly from your Android device."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.jocoos.audition">
<img class="icon" src="apps/com.jocoos.audition-logo.png"
data-title="Audition - Show your talent!"
data-content="You can show / share your talent and ability through using AUDITION. Whether your special gift is singing, dancing or acting, this application enables you to share your performances with others."
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.droidparadise.appinstallerex.free">
<img class="icon" src="apps/com.droidparadise.appinstallerex.free-logo.png"
data-title="AppInstaller EX Free"
data-content="AppInstaller EX helps you to install apps from SD card. You can also manage installed apps by this tool."
>
</a>
<a href="https://play.google.com/store/apps/details?id=me.kokku.spottedfree">
<img class="icon" src="apps/me.kokku.spottedfree-logo.png"
data-title="spotted! free"
data-content="Find the love you dream about!"
>
</a>
<a href="https://play.google.com/store/apps/details?id=com.webile.beepIt">
<img class="icon" src="apps/com.webile.beepIt-logo.png"
data-title="goBeepit - QR code reader"
data-content="Finally you can scan QR codes and view them later (genius, right?)."
>
</a>
<a href="https://play.google.com/store/apps/details?id=at.coreoil">
<img class="icon" src="apps/at.coreoil-logo.png"
data-title="FuelHound Cheap Gas Prices USA"
data-content="The most efficient tool for cheap gas prices in the USA for routes and locations."
>
</a>
<a href="https://play.google.com/store/apps/details?id=de.ub0r.android.callmeter">
<img class="icon" src="apps/de.ub0r.android.callmeter-logo.png"
data-title="Call Meter 3G"
data-content="Monitoring calls, txt and data traffic"
>
</a>
<a href="https://play.google.com/store/apps/details?id=ie.slice.mylottoireland">
<img class="icon" src="apps/ie.slice.mylottoireland.png"
data-title="Irish Lotto (Lottery Results)"
data-content="My Lotto Ireland has the latest results for all the major Irish Lotto games in one handy app."
>
</a>
</div>
<div class="span4">
<div id="missing">
<p><strong>Is your app missing?</strong></p>
<p>Contact <a href="mailto:jakewharton@gmail.com">Jake Wharton</a> or <a href="https://github.com/JakeWharton/Android-ViewPagerIndicator">fork the project</a>, update this page, and send a pull request!</p>
<p><em>Hint: It's in the <code>gh-pages</code> branch.</em></p>
</div>
</div>
</div>
</section>
<section id="credits">
<div class="row">
<div class="span12"><h2>Credits</h2></div>
<div class="span8">
<p>© 2012 Jake Wharton — <a href="http://twitter.com/JakeWharton">@JakeWharton</a> · <a href="http://profiles.google.com/jakewharton">+JakeWharton</a></p>
<p>Developed and distributed under the Apache License, Version 2.0.</p>
<p>Originally based on widgets developed by Patrik Åkerfeldt.</p>
<p><a href="http://github.com/JakeWharton/Android-ViewPagerIndicator/" id="forkme"><img src="forkme.png" alt="Fork this project on GitHub"/></a></p>
</div>
<div class="span4"><img id="logo" src="logo.png"></div>
</div>
</section>
</div>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="google-code-prettify/prettify.js"></script>
<script type="text/javascript">
prettyPrint();
$('.app-list a img').popover({
placement: 'top'
});
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '4f455d44f5a1f51c1000007c');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
</body>
</html>