运动图像为Android [英] Moving image for android
问题描述
< ---------------------------图像方向---------------- -----------------------
<--------------------------- image direction ---------------------------------------
------------------------------> Image.PNG&LT; ----------- ----------------------------
------------------------------> Image.PNG <---------------------------------------
[] --------------------------------------------- ----------------- {} ---------------------- []
[]--------------------------------------------------------------{}----------------------[]
{} XXXXXXX Image.PNG XXXXXXXX Image.PNG XXXXXXXX {} Image.PNG XXXXX []
{} xxxxxxx Image.PNG xxxxxxxx Image.PNG xxxxxxxX {} Image.PNG xxxxx[]
{} --------------------------------------------- --------------- {} ---------------------- []
{} ------------------------------------------------------------{}----------------------[]
----------------------------------------------- -------->结束^搁(图像)
-------------------------------------------------------> end ^ beginnin (of the image)
我使用运行contineously在一个地方,从一侧到另一侧的图像(见图片)像一个大帐篷,但不是我的文字使用的图像,这可能吗?要不然怎么会我这个形象融入到我的活动。帮助...谢谢..
I am using an image that runs contineously 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..
推荐答案
您可以使用Android的画布。在Android的画布绘制位图和检查条件
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}
这篇关于运动图像为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!