romandanylyk/PageIndicatorView — dự án di động — đang có 4.6k sao GitHub trong nhóm Mobile. An page indicator for Android ViewPager
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
PageIndicatorView is light library to indicate ViewPager's selected page with different animations and ability to customise it as you need.
Integration
To add pageindicatorview to your project, first make sure in root build.gradle you have specified the following repository:
repositories {
jcenter()
}
Note: by creating new project in Android Studio it will have jcenter repository specified by default, so you will not need to add it manually.
Once you make sure you have jcenter repository in your project, all you need to do is to add the following line in dependencies section of your project build.gradle.
If your project already use appcompat-v7 support library, you can omit PageIndicatorView dependencies by adding a single .aar file to your project, that will decrease total amount of methods used in your project.
Usage of PageIndicatorView is quite simple. All you need to do is to declare a view in your layout.xml and call setSelection method to select specific indicator - that's it!
PageIndicatorView pageIndicatorView = findViewById(R.id.pageIndicatorView);
pageIndicatorView.setCount(5); // specify total count of indicators
pageIndicatorView.setSelection(2);
But if you're as lazy as I'm - then there is another option to handle PageIndicatorView
All the piv_ attributes here are specific for PageIndicatorView so you can customise it as you want with attributes - pretty handy.
But what is more important here is app:piv_viewPager="@id/viewPager".
What it actually do is catch up your ViewPager and automatically handles all the event's to selected the right page - so you don't need to call setSelection method on your own.
Another handy options here that works with your ViewPager as a whole is
app:piv_dynamicCount="true" and app:piv_interactiveAnimation="true"
Dynamic count will automatically updates PageIndicatorView total count as you updates pages count in your ViewPager - so that's pretty useful.
While interactive animation will progress the animation process within your swipe position, which makes animation more natural and responsive to end user.
Note: Because setViewPagerId uses an instance of ViewPager, using it in recycler could lead to id conflicts, so PageIndicatorView will not know properly what is the right ViewPager to work with. Instead you should handle selected indicators on your own programatically.
pager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {/*empty*/}
@Override
public void onPageSelected(int position) {
pageIndicatorView.setSelection(position);
}
@Override
public void onPageScrollStateChanged(int state) {/*empty*/}
});
Here you can see all the animations PageIndicatorView support.
Name
Support version
Preview
AnimationType.NONE
0.0.1
AnimationType.COLOR
0.0.1
AnimationType.SCALE
0.0.1
AnimationType.SLIDE
0.0.1
AnimationType.WORM
0.0.1
AnimationType.FILL
0.0.6
AnimationType.THIN_WORM
0.0.7
AnimationType.DROP
0.1.0
AnimationType.SWAP
0.1.1
Release Note
See release notes on github releases or Bintray release notes.
License
Copyright 2017 Roman Danylyk
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.
romandanylyk/PageIndicatorView thuộc nhóm Mobile trên TopGit, cùng 5 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về romandanylyk/PageIndicatorView ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/romandanylyk/PageIndicatorView là nguồn chính thức.
romandanylyk/PageIndicatorView có bao nhiêu sao?
romandanylyk/PageIndicatorView có 4.6k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/romandanylyk/PageIndicatorView. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
romandanylyk/PageIndicatorView có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho romandanylyk/PageIndicatorView. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
romandanylyk/PageIndicatorView còn đang phát triển không?
Commit gần nhất trên romandanylyk/PageIndicatorView là 2.3 năm trước (theo timestamp GitHub). Repo có 565 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
romandanylyk/PageIndicatorView là gì?
romandanylyk/PageIndicatorView (romandanylyk/PageIndicatorView) là dự án Java trên GitHub. Theo mô tả gốc: An page indicator for Android ViewPager
romandanylyk/PageIndicatorView viết bằng ngôn ngữ gì?
romandanylyk/PageIndicatorView chủ yếu viết bằng Java. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về PageIndicatorView?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về PageIndicatorView.