Calling setcontentview multiple times?

前端 未结 3 1421
被撕碎了的回忆
被撕碎了的回忆 2021-01-22 17:53

Can i call setcontentview multiple times if my layout is same but the resource changes.for instance if images get exchanged in 2 imageview widgets??(this is infact all that is h

3条回答
  •  情书的邮戳
    2021-01-22 17:59

    You can switch the setContentView several times. However, I have learned in practice, that UI elements don't cross over. In other words each time you set the view, you have to re-findViewById for your UI elements.

提交回复
热议问题