What is _not_ a good way to reuse Android code?

Advertisement

  • Use a common Gradle module shared by different Android projects.
  • Prefer to build custom views or fragments over activities.
  • Prefer to build activities instead of fragments.
  • Break down UI layouts into common elements and use <include/> to include them in other layout XML files.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend