A
A
androidJunior2016-10-24 11:58:14
Java
androidJunior, 2016-10-24 11:58:14

Where to store your classes in android application?

I'm starting to learn Android development, and in order for my MainActivity class not to be so cluttered, there was a need to move some elements into a separate class.
Where is the best place to create and store these classes? Along with MainActivity?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2016-10-24
@aol-nnov

androidJunior -am direct road to d.android.com

G
garmax, 2016-10-30
@garmax

If you want to separate logic and display, use the MVP pattern. There are several ready-made libraries, the most famous being mosby, moxy and nucleus. Try moxy, in my opinion, it is easier to master.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question