Moving image for android
<--------------------------- image direction ---------------------------------------
------------------------------> Image.PNG <---------------------------------------
[]--------------------------------------------------------------{}----------------------[]
{} xxxxxxx Image.PNG xxxxxxxx Image.PNG xxxxxxxX {} Image.PNG xxxxx[]
{} ------------------------------------------------------------{}----------------------[]
-------------------------------------------------------> end ^ beginnin (of the image)
I am using an image that runs c开发者_StackOverflow社区ontineously in one place from one side to another (see picture) like a marquee but instead of text I use an image, it this possible? else how will I incorporate this image to my activity. Help... Thanks..
You can use android canvas. Draw bitmap on android canvas and check for condition that
if(x>canvas.getHeight()||x<0) {x=0}else{increment or decrement accordingly}
精彩评论