All Projects → YoKeyword → Fragmentation

YoKeyword / Fragmentation

Licence: apache-2.0
[DEPRECATED] A powerful library that manage Fragment for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Fragmentation

Fragmentrigger
💥A powerful library powered by AOP to manage Fragments.(一个基于AOP设计的Fragment管理框架)
Stars: ✭ 2,260 (-76.73%)
Mutual labels:  fragment, swipeback, activity-fragment
Thirtyinch
a MVP library for Android favoring a stateful Presenter
Stars: ✭ 1,052 (-89.17%)
Mutual labels:  fragment
Android Switchdatetimepicker
Android library for Date and Time Picker in same dialog
Stars: ✭ 360 (-96.29%)
Mutual labels:  fragment
Depth
Add some Depth to your fragments
Stars: ✭ 789 (-91.88%)
Mutual labels:  fragment
Medusa
Android fragment stack controller
Stars: ✭ 395 (-95.93%)
Mutual labels:  fragment
Androidall
Android 程序员需要掌握的技术栈:数据结构算法、程序架构、设计模式、性能优化、插件化、热更新、Kotlin、NDK、Jetpack,以及常用的开源框架源码分析如 Flutter、Router、RxJava、Glide、LeakCanary、Dagger2、Retrofit、OkHttp、ButterKnife 等
Stars: ✭ 849 (-91.26%)
Mutual labels:  fragment
Inlineactivityresult
Receive the activity result directly after the startActivityForResult with InlineActivityResult
Stars: ✭ 264 (-97.28%)
Mutual labels:  fragment
Fragnav
An Android library for managing multiple stacks of fragments
Stars: ✭ 1,379 (-85.8%)
Mutual labels:  fragment
Viewtooltip
A fluent tooltip for Android
Stars: ✭ 1,029 (-89.41%)
Mutual labels:  fragment
Androidnavigation
A library managing navigation, nested Fragment, StatusBar, Toolbar for Android
Stars: ✭ 636 (-93.45%)
Mutual labels:  fragment
Android Zblibrary
🔥Android MVP 快速开发框架,做国内 「示例最全面」「注释最详细」「使用最简单」「代码最严谨」的 Android 开源 UI 框架。 🔥An Android MVP Framework with many demos, detailed documents, simple usages and strict codes.
Stars: ✭ 5,000 (-48.52%)
Mutual labels:  swipeback
Fraql
GraphQL fragments made simple ⚡️
Stars: ✭ 433 (-95.54%)
Mutual labels:  fragment
Unity Fragment
用于UGUI界面间的跳转 类似Android中的Fragment
Stars: ✭ 14 (-99.86%)
Mutual labels:  fragment
Lazyfragment
类似微信,网易新闻 延迟加载Fragment基类 , 支持与ViewPager组合刷新全部Fragment
Stars: ✭ 391 (-95.97%)
Mutual labels:  fragment
Rxbus
Android reactive event bus that simplifies communication between Presenters, Activities, Fragments, Threads, Services, etc.
Stars: ✭ 79 (-99.19%)
Mutual labels:  fragment
Fragmentstack
A simple and easy to use a single Activity hosting multiple Fragment Library
Stars: ✭ 287 (-97.05%)
Mutual labels:  fragment
Compositeandroid
Composition over inheritance for Android components like Activity or Fragment
Stars: ✭ 519 (-94.66%)
Mutual labels:  fragment
Android Progressfragment
Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial data.
Stars: ✭ 816 (-91.6%)
Mutual labels:  fragment
Neteasecloudmusic Mvvm
Jetpack MVVM最佳实践 - 重构仿网易云音乐安卓客户端
Stars: ✭ 103 (-98.94%)
Mutual labels:  fragment
Fragmentationx
Stars: ✭ 93 (-99.04%)
Mutual labels:  fragment

Android Arsenal Build Status Download Hex.pm

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

// This is the use of androidx, if you are using the android.support: fragmentationx -> fragmentation
implementation 'me.yokeyword:fragmentationx:1.0.2'

// If you don't want to extends SupportActivity/Fragment and would like to customize your own support, just rely on fragmentation-core
// implementation 'me.yokeyword:fragmentationx-core:1.0.2'

// To get SwipeBack feature, rely on both fragmentation & fragmentation-swipeback
implementation 'me.yokeyword:fragmentationx:1.0.2'
// Swipeback is based on fragmentation. Refer to SwipeBackActivity/Fragment for your Customized SupportActivity/Fragment
implementation 'me.yokeyword:fragmentationx-swipeback:1.0.2'

// To simplify the communication between Fragments.
implementation 'me.yokeyword:eventbus-activity-scope:1.1.0'
// Your EventBus's version
implementation 'org.greenrobot:eventbus:{version}'

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

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

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(...);
      	// Fragmentation is recommended to initialize in the Application
        Fragmentation.builder()
          	 // show stack view. Mode: BUBBLE, SHAKE, NONE
             .stackViewMode(Fragmentation.BUBBLE)
             .debug(BuildConfig.DEBUG)
             ...
             .install();

        if (findFragment(HomeFragment.class) == null) {
            loadRootFragment(R.id.fl_container, HomeFragment.newInstance());  //load root Fragment
        }
    }

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

// 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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].