Asynchronous programming best practices

后端 未结 4 1266
遇见更好的自我
遇见更好的自我 2020-12-12 11:15

I have recently written my first Android app which was roughly 8,000-10,000 lines of code. One thing that continuously hindered my use of normal design patterns was android

4条回答
  •  离开以前
    2020-12-12 11:45

    What about using the Model View Controller pattern?

    At least you have to isolate in the "model" (object or set of objects) all the state and its logical management, and have in a separate class (maybe the Activity class) all the stuff related to the views, listeners,callbacks, ...)

提交回复
热议问题