E
E
Eugene2019-02-10 13:52:22
Java
Eugene, 2019-02-10 13:52:22

Does it make sense to generate and initialize a view with static methods?

Good afternoon. I would like to ask a question. Does it make sense to use the object class for the activity / fragment where I will generate the view and return it in the method. And it turns out that the view initialization occurs in 100+ lines in some places and clogs the activity or fragment. I will pass an instance of an activity or a fragment to the method in order to bind it there as well. Will this approach generate memory leaks?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question