How to put a View into Bundle

后端 未结 4 2487
梦毁少年i
梦毁少年i 2021-02-20 11:59

I\'m adding dynamically created EditTexts to a layout (onClick button method). When I rotate the screen the added edittexts disappear. How can I add them to a bundle to put them

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 12:22

    Views itselfs doesn't represents information that you need to save. Instead you should save their coordinates, width, height, value etc.

提交回复
热议问题