Fragmentation

Additional

Language
Java
Version
1.3.7 (Jun 7, 2019)
Created
Feb 23, 2016
Updated
Nov 15, 2019
Owner
YoKey (YoKeyword)
Contributors
VankaIn
Muhammad Fatani (DevFatani)
liaolintao
YoKey (YoKeyword)
Lollo0520
mengdd
qiyulan
zhangluya
williamwue
frowhy
kangqiao
zhenian
pye52
niulinguo
beilo
privatez
amibition521
17
Activity
Badge
Generate
Download
Source code
APK file

Promotion

PLEASE NOTE, THIS PROJECT IS NO LONGER BEING MAINTAINED


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.