Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Fragmentrigger | 2,259 | 4 years ago | 29 | mit | Java | |||||
:boom:A powerful library powered by AOP to manage Fragments.(一个基于AOP设计的Fragment管理框架) | ||||||||||
Redux Saga Rxjs | 112 | 3 | 7 years ago | 3 | March 08, 2016 | JavaScript | ||||
RxJS implementation of Saga pattern for redux | ||||||||||
Stateflow | 21 | 8 years ago | JavaScript | |||||||
Play Fsm | 7 | 7 months ago | apache-2.0 | Scala | ||||||
Evm Notes | 5 | 2 years ago | ||||||||
High-level overview of the Ethereum yellow paper |
💥A powerful library to manage Fragments. Fragment
This might is the library that at the least cost of use to manage fragments.
No need to extend any class!!! No need to extend any class!!! No need to extend any class!!! the most important thing must be said for three times!!!
You can use this FragmentRigger
with one line annotation.
Principle: define the pointcuts for Fragment/Activity lifecycle methods and bind to the proxy class to execute.
This library support usual fragment using scenes,if you found the scene that this library does not supported,you can post Issues or Email me
Stack manager | Show | Lazy loading | Replace |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
onBackPressed()
onBackPressed
method support for the fragment that is not added into stack
This library provides powerful api.
1Add support for your classes
Add
@Puppet
annotation for yourActivity/Fragment
that need to use this library.
//MainActivity.java
@Puppet(containerViewId = R.id.atyContent)//containerViewId is the fragment to be placed in.
public class MainActivity extends AppCompatActivity
//TestFragment.java
@Puppet
public class TestFragment extends Fragment
2Fragment usage
After add
@Puppet
annotation, use the proxy classRigger
to manage fragments.
@Puppet(containerViewId = R.id.atyContent)
public class MainActivity extends AppCompatActivity{
...
//add and show a fragment and add it to the stack,this fragment is placed in the container view.
Rigger.getRigger(this).startFragment(TestFragment.newInstance());
}
3Activity/Fragment swipe back to exit
Add
Swiper
annotation for yourActivity/Fragment
.
@Swiper
@Puppet
public class MainActivity extends AppCompatActivity{
// swiper can only used with puppet.
}
@Swiper
@Puppet
public class TestFragment extends Fragment{
// swiper can only used with puppet.
}
This library is available under the MIT license. See the LICENSE file for more info.