1

When should be fragments vs. controls vs. views chosen to achieve the best results and earn the full benefits? The concepts seem very similar, some have strength and weaknesses (development overhead or runtime overhead). I am looking for the most practical design approach.

I am thinking especially of reusing custom popups, tables and header views. Asking this question in the context to reuse these components within one project and across similar project, for example to integrate in a custom library.

1 Answer 1

0

For popup contents, fragments are most reasonable for reuse.

If you want to reuse code and markup between project, I think it is better to wrap it into a custom composite control, so you will have a clear API. However, there are no strict rules when to use one of the mentioned reuse possibilities.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.