Sunday 15 April 2012

android - Saving data in a view pager -


I have a visual pager to display some editable items in it. When the user edits the item, They need to be saved when the user re-opens the screen again to show them again. I tried to save the routine inside the "SavestState" method, however, that method has never been called

In what method do I need the data?

  @ Override Public Zero Blast Item (see archive, int position, object view) {Log D. (Tag, "deleted itam" + status); (Viewpoint) collection .removeView (see (see)); } @ Override Public Boolean isViewFromObject (View View, Object Object) {Log D. (Tag, "isViewFromObject"); Return view == ((see) object); } @ Override Public Zero Finish Update (View View) {Log D. (Tag, "Finnish updates"); } @ Override Public Zero Restorative Stretch (Parcelable RGR, Classloader AGR1) {Log D. (Tag, "restrestate"); } @ Override Public Parceletable Sevette () {Log D. (Tag, "sevastet"); Return tap; } @ Override Public Wide Startupdate (see footage) {Log D. (Tag, "startupdate"); }   

I detected the answer - it's "in any way in the activity viewpages "

There is no need to save the situation of the thoughts, the situation of the data needs to be saved, because the position of the data is that it determines what the views will look like. Any changes in the data should be saved in the activity in which the PageRank was opened.

No comments:

Post a Comment