-
ViewPagerIndicator
introduction
paging indicator widgets compatible with the viewpager from the android support library and actionbarsherlock. originally based on patrik åkerfeldt's viewflow.
when using the viewpager 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.

download
version 2.4.1 — 2012-09-11
download zip download tgz
change log
- new iconpageindicator! uses state-list images to represent pages.
- tabpageindicator now supports icons via iconpageradapter interface.
- support android:background attribute on canvas-based views.
- title indicator allows for drawing its line, underline, and/or triangle on top of the titles for placement underneath a viewpager.
- tab indicator now supports ics-style dividers (see styled sample).
- fix: do not attempt to change the viewpager page when a motion is cancelled.
- fix: long titles no longer overlap when swiping to the right.
usage
- include one of the widgets in your view. this should usually be placed adjacent to the viewpager it represents.<com.viewpagerindicator.titlepageindicatorandroid:id="@+id/titles"android:layout_height="wrap_content"android:layout_width="fill_parent"/>
- in your oncreate method (or oncreateview for a fragment), bind the indicator to the viewpager.//set the pager with an adapterviewpager pager =(viewpager)findviewbyid(r.id.pager); pager.setadapter(newtestadapter(getsupportfragmentmanager()));//bind the title indicator to the adaptertitlepageindicator titleindicator =(titlepageindicator)findviewbyid(r.id.titles); titleindicator.setviewpager(pager);
- (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);
for more examples please take a look at the source code to the samples.
-
-
có thể giúp minh làm slide image từ viewpagerindicator đc k, anh đc load ra từ sqlite
___ cảm ơn bạn rất nhiều ___
Quyền viết bài
- Bạn Không thể gửi Chủ đề mới
- Bạn Không thể Gửi trả lời
- Bạn Không thể Gửi file đính kèm
- Bạn Không thể Sửa bài viết của mình
-
Nội quy - Quy định
lắm lắm cách giúp chị em thu bé âm tôn giáo, trong suốt đấy các bài bác xấp thu bé xứ đặc nhằm quan hoài nhiều nhất bởi một giản, tiết kiệm chi phí, lẻ hoạt và nhiều trạng thái thực hiện tại nhà. Tuy...
Cách thu nhỏ vùng kín tại nhà: Bài tập đơn giản giúp săn chắc, se khít