/Lifecycle-Sorter

Primary LanguageJavaMIT LicenseMIT

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!