Java - Android - Split Activity/Class into multiple files for better organization (solution)
- 阅读更多 关于 Java - Android - Split Activity/Class into multiple files for better organization (solution)
问题 I'm not PRO in JAVA , but I found myself of getting crazy with Android activities getting too large. After a few pages of code length I found myself of permanently scrolling back and forth! Not only OnClickhandlers can grow huge, just a lot of code tends to sum up in a bigger activity. Fragments were no solution for me. In general Java does not allow to split up a class into several files so a hack is needed. I browsed through a lot of stackoverflow threads regarding that, not one had a