Camposha
  • Home
  • Android
  • Buy Projects
  • My Account
    • Become a Member
    • Log In|Log Out
    • Free Projects
No Result
View All Result
Camposha
  • Home
  • Android
  • Buy Projects
  • My Account
    • Become a Member
    • Log In|Log Out
    • Free Projects
No Result
View All Result
Camposha
No Result
View All Result
Home Android Fragment

FragmentRigger

2 weeks ago
in Fragment
Reading Time: 1min read
40 0
A A
40
SHARES
4k
VIEWS
Share on FacebookShare on Twitter

SimilarPosts

Fragment State Manager

2 weeks ago
4k

Fragment Navigation 2.0

2 weeks ago
4k

Fragment Args

2 weeks ago
4k

Easy-Fragment-Argument

2 weeks ago
4k

FragmentRigger has the following roles:

  1. Help manage fragments

It has the following advantages:

  1. Easy to use, no need to extend any class
  2. Well documented
DescriptionInfoDownload

FragmentRigger

R i g g e r

💥A powerful library to manage Fragments. 一个强大的Fragment管理框架。(中文版入口)

Platform Download SDK Build AsPectJ JingYeoh

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.

Demo

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

Goal

  • Make Fragment use easier.
  • At the least cost of use to manage fragments.

Wiki

Getting Started

  • Installation
  • Using start
  • Fragments usage
  • Custom fragment tag
  • Lazy loading
  • Transition animations
  • Intercept onBackPressed
  • startFragmentForResult
  • Swipe edge to exit Activity/Fragment
  • How to use in library module

Information

  • Errors in gradle
  • ProGuard
  • Change Log

Feature

  • [x] Powerful api
  • [x] Enough English notes
  • [x] Strictest exceptions
  • [x] Resolve usual exceptions and bugs in fragments
  • [x] Never lost any fragment transaction commit
  • [x] Extend the android native fragment methods,add some usual methods such as onBackPressed()
  • [x] Print tree for the fragment stack
  • [x] Fragment lazy load
  • [x] Fragment transition animations
  • [x] Option to configure fragment tag
  • [x] Add onBackPressed method support for the fragment that is not added into stack
  • [x] Swipe edge to exit Fragment/Activity
  • [ ] Option to configure fragment launch mode
  • [ ] Fragment shared elements transition animations
  • [ ] Support DialogFragment

Problem solved

  • Fragment view overlapping
  • Fragment Multi-level showing
  • Fragment stack manager
  • Fragment transaction commit failed
  • Commit the transaction when the host activity is not resumed
  • Multiple commits are interconnected but the fragment transaction commit does not happen immediately
  • A series of exceptions when memory restarting
  • Data saved and restored when the screen is flipped
  • Can not perform this action after onSaveInstanceState
  • Lazy loading in ViewPager and other scenarios
  • The animation does not perform in different scenarios

Usage example

This library provides powerful api.

1、Add support for your classes

Add @Puppet annotation for your Activity/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

2、Fragment usage

After add @Puppet annotation, use the proxy class Rigger 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());
}

3、Activity/Fragment swipe back to exit

Add Swiper annotation for your Activity/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.
}

License

This library is available under the MIT license. See the LICENSE file for more info.

:boom:A powerful library powered by AOP to manage Fragments.(一个基于AOP设计的Fragment管理框架)
Library written By: JingYeoh JingYeoh

Created: 2017-11-16T05:38:53ZLast Update: 2021-02-15T07:04:42Z

Stars: 2247Language: JavaForks: 274
View in Github

Download
Share16Tweet10Send

Related Posts

Fragment

Fragment State Manager

February 15, 2021
4k
Fragment

Fragment Navigation 2.0

February 15, 2021
4k
Fragment

Fragment Args

February 15, 2021
4k
Fragment

Easy-Fragment-Argument

February 15, 2021
4k
Activity

CachePot

February 13, 2021
4k

Categories

  • Android
    • Introduction
    • Activity
      • Activity Basics
      • Lifecycle
      • Routing
    • Fragment
    • UI
      • AppBar and Toolbar
      • TextView
      • Tabs
      • Dialog
      • CardView
      • Chips
      • EditText
      • Navigation Drawer
      • Button
      • Bottom Navigation
    • Animation
    • MediaPlayer
      • VideoPlayer
    • Biometric
    • Jetpack
    • Android Firebase
    • Layouts
    • JSON
    • ContentViews
    • RxJava
    • PinView
    • Utility
    • ScrollView
    • URL
    • Log
    • Intent
    • DateTime
    • DownloadManager
    • Camera
    • SharedPreferences
    • SQLite
    • Retrofit
    • RecyclerView
    • Bluetooth
    • Hardware and Sensors
    • HTTP
    • Android AdapterViews
    • Projects
    • InputViews
    • Navigation
    • Menu
    • System
    • Communication
    • HttpURLConnection
    • Fast Networking Library
    • FileSystem
    • Components
    • Threading
    • Local Database
    • Jetpack
  • Flutter
    • Flutter HTTP
    • Flutter Widgets
    • Flutter Firebase
  • Java
    • Java Threading
    • Java Collections
    • JavaFX
  • Programming
  • Flutter Projects
  • Java DateTime
  • Flutter Listing Views
  • Flutter Image
  • Flutter Local Database
  • Documentary
  • Meditation
  • Flutter Animation and Motion
  • Javascript
    • Framework7
  • Xamarin Android
  • Python
    • CherryPy

Get Free Projects

  • Home
  • Android
  • Buy Projects
  • My Account

© 2021 Camposha

No Result
View All Result
  • Account
  • Activate
  • Activity
  • Become a Teacher
  • Become a Teacher
  • Become a Teacher
  • Become instructor
  • Blog
  • Blog
  • Cancel Payment
  • Cancel Payment
  • Cart
  • Change Password
  • Change Password
  • Checkout
  • Checkout
  • Checkout
  • Contact
  • Contact
  • Contact Us
  • Content restricted
  • Course Checkout
  • Dashboard
  • Edit Profile
  • Edit Profile
  • FAQs
  • Forgot Password
  • Forgot Password
  • Guest
  • Guest
  • Home
  • Home
  • Home Light
  • Instructor Dashboard
  • Instructor Registration
  • IUMP – Account Page
  • IUMP – Default Redirect Page
  • IUMP – Login
  • IUMP – LogOut
  • IUMP – Register
  • IUMP – Reset Password
  • IUMP – TOS Page
  • IUMP – Visitor Inside User Page
  • List courses
  • List wish list
  • Login
  • Login
  • Maintenance
  • Members
  • Membership Account
    • Membership Billing
    • Membership Cancel
    • Membership Checkout
    • Membership Confirmation
    • Membership Invoice
    • Membership Levels
  • Membership Account
    • Membership Billing
    • Membership Cancel
    • Membership Checkout
    • Membership Confirmation
    • Membership Invoice
    • Membership Levels
  • Membership Plans
  • My Account
  • OnePage Documentation
  • Portfolio Grid
  • Portfolio Masonry
  • Portfolio Multigrid
  • Privacy Policy
  • Products
  • Profile
  • Profile
  • Profile
  • Projects
  • Register
  • Register
  • Register
  • Register
  • Sample Page
  • Shop
  • Sign in
  • Sign up
  • Student profile
  • Student Registration
  • Thank You
  • Thank You

© 2021 Camposha

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In