English 中文(简体)
使用Canvas(地表)或使用看法以翻译估算
原标题:Use Canvas (surfaceview) or use views with translate animation

我很抱着这样一个迅速问题,即你通常如何对待这一问题。 我不敢肯定的是,你是否看到了游戏文件Ts或类似的东西,如果你把你对现有形象的inger弄放在了旁边(例如,通过拉眼图像),让这个形象穿透了屏幕。

To do something like that, what would be the best way to handle such graphics (mainly concerned about graphics motion and touch event): -Have an imageview and OnTouchListener that will get the x/y and do a translateAnimation to every X/Y and then do translateAnimation of the image across the screen when the touch is lifted

- OR有表面观点,绘制Canvas图像的比照图,并且有色谱法,使X/Y坐标与触角事件相处,并据此绘制图

我总是被困惑不解的是,谁会去? (我的目标是安乐施会这样2.3 rag/dr,这是这方面范围外的事情)

PS:我假定,如果我错失,Canvas和地表总是会合在一起,这样我就非常正确。

最佳回答

PS:我假定,如果我错了,Canvas和地表总是会合在一起,这样我是正确的。

是的,两者都是正确的。

首先,在估算中(Either Translate,Rotate,Scale),我们刚刚改变了立场,对特定时间的图像表达看法(尽管它显示出了 an效应)。 然后,它将采取最初的立场。

But in canvas, We change the ImageView( we draw Bitmap here not image view)permanently on base of it coordinate. Suppose you want to change you Image where ever your finger touch then simple draw it with new coordinate that you got from OnTouchEvent()

最后,我要说,这完全不是我们的要求。 地表水和血管主要用于Gaming环境。

问题回答

任何精细的缩略语,即任何使用 sp的物品,都应在<条码>上填写。 标准<代码><<>View/>>>

SDK样本<代码>LunarLander是一个良好的开端。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签