United Statesncapdevi/FragNav
An Android library for managing multiple stacks of fragments
📱 FragNav: Quản lý nhiều stack fragment trên Android
Thư viện Android giúp quản lý nhiều stack fragment — lý tưởng cho Bottom Navigation và Navigation Drawer.
FragNav là thư viện open-source bằng Kotlin giúp quản lý nhiều stack fragment trên Android, phù hợp với các mẫu điều hướng như Bottom Navigation hoặc Navigation Drawer. Thư viện này không cung cấp UI tab bar, mà tập trung vào duy trì thứ tự fragment khi chuyển đổi giữa các tab, đẩy hoặc lấy fragment.
✨ Điểm nổi bật
- Quản lý nhiều stack: Mỗi tab có một stack fragment riêng, tuân thủ nguyên tắc Android về trạng thái điều hướng.
- Khởi tạo linh hoạt: Hỗ trợ truyền danh sách fragment hoặc tạo động qua
RootFragmentListener. - Giao tác đầy đủ: Hỗ trợ chuyển tab, đẩy/lấy fragment, thay thế và xóa stack về fragment gốc.
- Lưu trạng thái: Tích hợp
onSaveInstanceStateđể duy trì trạng thái khi cấu hình thay đổi. - Hỗ trợ DialogFragment: Quản lý hiển thị và xóa DialogFragment cùng fragment chính.
- Tùy chọn giao dịch: Cung cấp
FragNavTransactionOptionsđể tùy chỉnh hiệu ứng giao dịch.
💡 Vì sao đáng chú ý
FragNav đơn giản hóa việc quản lý fragment trong các ứng dụng có điều hướng dạng tab — nơi mỗi tab là một stack riêng. Thay vì tự xây dựng logic lưu trạng thái và chuyển đổi phức tạp, bạn chỉ cần khởi tạo và gọi các phương thức như switchTab, pushFragment, popFragment. Thư viện áp dụng đúng chuẩn Android về quản lý stack, giúp giảm lỗi và cải thiện trải nghiệm người dùng.
#Android #FragmentNavigation #Kotlin #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
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
🚦 Cicerone is a lightweight library that makes the navigation in an Android app easy.
An Android library with modules to quickly bootstrap an Android application.
:fire: Android developers should collect the following utils(updating).
Android library (AAR). Highly configurable, easily extendable deep zoom view for displaying huge images without loss of detail. Perfect for photo galleries, maps, building plans etc.
Batch Test v2ray fragment values to see which one works best on your network.