android - save custom view drawing canvas on orientation change -


i have seen countless examples of people trying save variables in case user flips screen. did not find specific bitmaps or arraylist of paths successful.

so ithe idea have drawing app consist of main activity fragment inside. within fragment layout custom view class implement drawing via canvas, bitmaps, , arraylist. have found best way approach parcelables. have seen isn't idea pass bitmaps through. don't know how pass arraylist of paths through since takes general ints, string, etc.

simply convert list of paths list of points.

arraylist<path>  -> arraylist<point> 

btw, should store point locations in percentages instead of pixel values depending on need. then, recreate list of paths list of points


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -