No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
META-INF
src
.gitignore
LICENSE.txt
LifecycleSorter.iml
README.md

README.md

Lifecycle Sorter for Android Studio

Note: This project is no longer maintained. Feel free to fork and fix issues/add enhancements.

This plugin sorts the lifecycle methods of an Activity or Fragment in the order that they are called in an application.

Usage

You can find the option to sort the lifecycle methods under the Code > "Sort Lifecycle Methods". All you need to do is place the cursor inside of your class and select "Sort Lifecycle Methods" or use the keyboard shortcut control+alt+k. It's as simple as that!

Activity before sorting

Activity after sorting

This is my first plugin and thought it would be a handy tool, not only for myself but other Android developers. Hope you guys enjoy!