I'm creating a mobile app for a software design unit that I'm taking. Since I had multiple activities with similar layouts for the fragments(all implements recycler view) I created an abstract base fragment and all other child fragments extend this fragment. However, since they all display different kinds of data I created a set adapter method which sets the adapters for each fragment.

However, my professor told me for android applications it is difficult to illustrate a design pattern because of how their views so I feel like I've been over-complicating things?

The only advantage I see currently is that it reduces duplicated code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.