RepositoryJavaPLBa Lan
YA

yarolegovich/DiscreteScrollView

A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.

5.8ksao
769fork
42issue
4lượt xem

🎠 DiscreteScrollView — Danh sách cuộn dạng carousel với phần tử căn giữa

Một RecyclerView-based scrollable list, dễ dùng cho animation, phần tử hiện tại luôn căn giữa.

DiscreteScrollView là thư viện Android giúp tạo danh sách cuộn theo chiều ngang hoặc dọc, trong đó phần tử hiện tại luôn được căn giữa màn hình. Tương tự ViewPager nhưng linh hoạt hơn, cho phép hiển thị một phần hoặc toàn bộ các phần tử lân cận. Dễ tích hợp vào bất kỳ dự án nào chỉ với vài dòng cấu hình.

✨ Điểm nổi bật

  • Căn giữa phần tử hiện tại: Tự động căn phần tử đang chọn ở giữa màn hình khi cuộn.
  • Hỗ trợ animation trang: Tùy chỉnh hiệu ứng chuyển đổi phần tử bằng DiscreteScrollItemTransformer.
  • Vuốt nhanh chuyển nhiều trang: Bật tính năng vuốt để cuộn qua nhiều phần tử cùng lúc với setSlideOnFling(true).
  • Hỗ trợ cuộn vô hạn: Dùng InfiniteScrollAdapter để tạo trải nghiệm cuộn liên tục.
  • Dễ tích hợp RecyclerView: Kế thừa trực tiếp RecyclerView, dùng Adapter và LayoutManager tương tự.
  • Cấu hình đơn giản bằng XML/Java: Chỉ cần thêm vào layout và gán adapter.

💡 Vì sao đáng chú ý

Khác với ViewPager truyền thống, DiscreteScrollView cho phép hiển thị phần tử lân cận một cách tùy chỉnh, phù hợp cho thiết kế giao diện kiểu carousel, chọn mục, hoặc trình chiếu thẻ. Thư viện cung cấp API đơn giản nhưng mạnh mẽ, hỗ trợ animation tùy chỉnh và tích hợp sẵn ScaleTransformer để tạo hiệu ứt thu nhỏ lớn.


#Android #RecyclerView #Carousel #ViewPager #ItemPicker #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryKotlin
Tapadoo/Alerter

An Android Alerting Library

5.5k
Jul 21, 2023
RepositoryKotlin
mikepenz/AboutLibraries

AboutLibraries automatically collects all dependencies and licenses of any gradle project (Kotlin MultiPlatform), and provides easy to integrate UI components for Android and Compose Multiplatform environments

4.5k
Nov 15, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

475.2k
Nov 23, 2026
RepositoryJava
ksoichiro/Android-ObservableScrollView

Android library to observe scroll events on scrollable views.

9.6k
Jun 1, 2021
RepositoryJava
aritraroy/UltimateAndroidReference

:rocket: Ultimate Android Reference - Your Road to Become a Better Android Developer

8.1k
Jul 18, 2024
RepositoryJava
Bearded-Hen/Android-Bootstrap

Bootstrap style widgets for Android, with Glyph Icons

7.2k
Sep 2, 2021
RepositoryJava
nisrulz/android-tips-tricks

:ballot_box_with_check: [Cheatsheet] Tips and tricks for Android Development

4.7k
Jun 8, 2025
RepositoryJava
Ashok-Varma/BottomNavigation

This Library helps users to use Bottom Navigation Bar (A new pattern from google) with ease and allows ton of customizations

4.3k
Dec 14, 2020
RepositoryJava
yarolegovich/LovelyDialog

This library is a set of simple wrapper classes that are aimed to help you easily create fancy material dialogs.

1.1k
Oct 8, 2022