Android: Reusing same View object in different Activities (the case is about ad banners)

后端 未结 5 1534

I want to reuse the same view object (not the view class, or the xml file, I mean the object in the memory) in different Activities.

I almost had this done. The thin

5条回答
  •  有刺的猬
    2021-01-08 01:40

    Why don't you use Fragments?

    http://developer.android.com/guide/topics/fundamentals/fragments.html

    I think your use case is perfect for this.

提交回复
热议问题