android: how do i preserve the data in my arrayadapter/listview when change orientation?

后端 未结 6 622
醉梦人生
醉梦人生 2020-12-16 08:14

as above, is it done automatically? My list was empty once the orientation chMYanges? and nope, i need the orientation change =)

My adapter

public cl         


        
6条回答
  •  抹茶落季
    2020-12-16 08:47

    The data should not be lost when you change the orientation. The only thing I can imagine is that the layout for your activity is not correct, like, controls move out of the visible area upon changing the orientation.

提交回复
热议问题