Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

Fragmentation

> 编程语言
Open source

[DEPRECATED] A powerful library that manage Fragment for Android

9.7K stars0 likes1 views
WebsiteGitHub

About

[DEPRECATED] A powerful library that manage Fragment for Android

PLEASE NOTE, THIS PROJECT IS NO LONGER BEING MAINTAINED


中文版 README.md

FragmentationX

Fragmentation is a powerful library managing Fragment for Android.

It is designed for "Single Activity + Multi-Fragments" and "Multi-FragmentActivities + Multi-Fragments" architecture to simplify development process.

Demo

The first demo shows the basic usage of the library. The second one shows the way to implement an app which is similar to Instagram. Complicated nested fragments' usage demo are also showed.

Download APK

   

Feature

1. Develop complicated nested fragment app rapidly

2. Use fragment's stack view dialog to debug easily

3. Add launch mode, startForResult etc. to provide similar behavior of Activity

4. Add onBackPressedSupport() method to support back button press monitoring in Fragment

5. Add onSupportVisible(), onLazyInitView() to simplify dev

6. Easily manage Fragment transition animations

7. To simplify the communication between Fragment(EventBusActivityScope module)

8. Support SwipeBack to pop(Fragmentation_SwipeBack module README)

       

How do I use Fragmentation?

Note: This is the use of androidx, if you are using the android.support, click here branch:master

1、build.gradle

…

`

2. Activity extends SupportActivity or implements ISupportActivity:(refer to MySupportActivity)

…

`

3. Fragment extends SupportFragment or implements ISupportFragment:(refer to MySupportFragment):

java
// since v1.0.0, forced extends of SupportActivity is not required, you can use interface + delegate to implement your own SupportActivity
public class HomeFragment extends SupportFragment {

    private void xxx() {
      	// launch a new Fragment, other methods: start(fragment,SINGTASK)、startForResult、startWithPop etc.
        start(DetailFragment.newInstance(HomeBean));
      	// check wiki for other pop, find and animation setting related API
    }
}

WIKI , CHANGELOG

LICENSE

Copyright 2016 YoKey

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.

Issues· 191 open

View all issuesOpen on GitHub
  • #1237

    让Fragmentation 继续走下去

    Updated Mar 5, 2025
  • #1268

    JCenter to be dismissed - please migrate to Maven Central

    Updated Sep 24, 2024
  • #1207

    java.lang.IllegalAccessError: Field 'androidx.fragment.app.FragmentManager.mStateSaved' is inaccessible to class

    Updated Sep 26, 2023
  • #1255

    google 官方fragment 导航框架 navigation-fragment+navigation-ui

    Updated Dec 29, 2022
  • #1270

    pop 动画在高版本(SDK 31,androidx.fragment 1.3.6)上异常

    Updated Mar 14, 2022
  • #1262

    Fragmentation升级版,欢迎试用

    Updated Dec 20, 2021
  • #1269

    使用popTo方法时被pop的Fragment不会调用onDestroy方法

    Updated Dec 10, 2021
  • #1235

    viewpager 预加载会把所有 fragment 里的 onLazyInitView 都调用

    Updated Aug 20, 2021
  • #1042

    项目跑monkey测试(12H),出现黑屏

    Updated Aug 10, 2021
  • #1011

    单Activity+多Fragment的架构,偶尔出现白屏问题

    Updated Jul 26, 2021

> Tags

Javaactivity-fragmentfragmentswipeback

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言