A multi-purpose Groovy library containing view injection and threading for Android using annotations. It’s based on both ButterKnife and AndroidAnnotations.
With SwissKnife you can:
Inject views dynamically on any Object as long a you have a View to find them. No more findViewById and you don’t have to extend any classes.
Add callback methods to several actions using @OnClick, @OnItemClick, etc.
Execute methods in the UI Thread or a background one using @OnUIThread and @OnBackground.
Make your variables persistent across state changes without messing with onSaveInstanceState.
Make anything Parcelable with the @Parcelable annotation – which can be used with @SaveInstance to automatize data persistance. NO MORE PARCELABLES! YAY!
Inject resources into your classes with @Res annotations (@StringRes, @AnontationRes, etc.).
Read intent extras automatically with @Extra annotation.
- Price : Free
- License : Apache License, Version 2.0
- Visit Link