Store ImageView's in ArrayList and Stack Android -
i writing card-game application.
i represent deck of cards using arraylist<imageview>
, , represent "cards stacking on table"(for rollback purposes) in stack<imageview>
.
how can store state of both arraylist<imageview>
, stack<imageview>
in order pick left off earlier. can think of sharedpreferences
, supports primitives , sets.
your might want consider using sqlite database this. columns properties on object want store. if add together on "order" property can utilize sql logic
order `order` desc
at end of query them in right order.
here's guide: http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/
android arraylist stack imageview sharedpreferences
No comments:
Post a Comment