Numerous Activities in an app

android android-intent

58 观看

1回复

1 作者的声誉

I just started learning Android App Development recently and I'm curious about this; Suppose I want to make an app with lots of activities(pages) for example a Bible app with around 1189 chapters with Each chapters having different activities. Does that Mean I will create about 1189 different activities or is there an easier way to create this type of app?

作者: Isaac 的来源 发布者: 2017 年 12 月 27 日

回应 1


0

1 作者的声誉

You can use a lot of design patterns. You can put the information you want to display in an class. Then you could span 1189 objects. You could create just one activity, and get 1189 different objects' information. Finally display in activity.

like this https://github.com/newcaoguo/booksource/tree/master/chapter3/RecyclerViewTest

作者: F.Double 发布者: 2017 年 12 月 27 日
32x32