开发者

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}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜