Hi to all.
I Fill scrollview panel with item but when every time device rotated,scrollview reload
how prevent this action?
I Fill scrollview panel with item but when every time device rotated,scrollview reload
how prevent this action?
Oh yes,your reply is right but if i fill the scrollview in Activity_Create,in rotation device reloaded,is not?Do you mean that you lose your data or you lose the views contained in the ScrollView?
In the first case, you should use KeyValueStore.
In the second case, you should fill the Scrollview in the Activity_Create.
Activity_Create(FirstTime as Boolean)
dim top as int
for i = 0 to 10
dim k as button
k.initialize("")
scrollview1.Panel.addview(k,0,top,150dip,50dip)
top = top + 51dip
next
End sub
ok ok but my item (button and imageview) is over 50 count
my project is shop
i load product list from database that is over 50 item
and add it into scrollview panel
now if activity rotated,then again load product from database
Erel please set Answered Option for each postThat is correct. The activity is recreated when the orientation changes. However if you are loading any large objects such as bitmaps then you can store them in memory and reuse them.