Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Java by (10.2k points)
Is it possible to implement the model–view–controller pattern in Java for Android?

Or is it already implemented through Activities? Or is there a better way to implement the MVC pattern for Android?

1 Answer

0 votes
by (46k points)

We don't have MVC in android, but we can try these alternates:

  • We can set our user interface in different XML files by resolution, hardware, etc.

  • we can define our resources in different XML files by locale, etc.

  • We can spread classes like ListActivity, TabActivity and obtain the use of the XML file by inflaters.

  • we can create as many classes as we want for our business logic.

A lot of Utils have been previously written for us- DatabaseUtils, Html.

Related questions

0 votes
1 answer
asked Oct 15, 2019 in Java by Shubham (3.9k points)
0 votes
1 answer
0 votes
1 answer
asked Sep 9, 2019 in Java by Anvi (10.2k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...