bitmap - Android how to draw 400 similar pictures (only different colors) efficiently at runtime -


i know similar questions have been asked couldn't find awnser , android beginner. want able draw houses (screenshot) during runtime. far have bean able create 400 imageviews invisible image in them , @ run-time swap image. feel extremely inefficient , seem have memory problems. images not need clickable. couldn't find way add imageviews during runtime. maybe utilize gridview (seems difficult due structure of board). thank you

android app houses drawn

i prefere use andengine. can fine toturial here (http://www.matim-dev.com/tutorials.html) or can create custom view , override ondraw(canvas canvas) method

@override protected void ondraw(canvas canvas) {    canvas.drawbitmap(bitmap, left, right,paint);    super.ondraw(canvas); } 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -