English 中文(简体)
地表Flininger、SurfaceView、Surface、SurfaceHolder和Bitmap是Andin
原标题:Surface Flinger,SurfaceView,Surface,SurfaceHolder and Bitmap is Android

I m 学习Suss、Suface Flinger、水陆观测、水稻和比图的文件。 我发现以下定义:

Surface Surface is a collection of pixels. A Surface is an object holding pixels that are being composited to the screen. Every window you see on the screen (a dialog, your full-screen activity, the status bar) has its own surface that it draws in to, and Surface Flinger renders these to the final display in their correct Z-order. A surface typically has more than one buffer (usually two) to do double-buffered rendering: the application can be drawing its next UI state while the surface flinger is compositing the screen using the last buffer, without needing to wait for the application to finish drawing.

SurfaceView This class is used to present a live camera preview to the user. A SurfaceView is a special implementation of View that also creates its own dedicated Surface for the application to directly draw into (outside of the normal view hierarchy, which otherwise must share the single Surface for the window)

Bitmap A Bitmap is a wrapper for collection of pixels,it is simply an array of pixels with some other convenient functions.

Canvas Canvas is a class that contains all the drawing methods. It is similar to Graphics class in AWT/Swing in Java. It has all the logic on how to draw, a box etc. A Canvas operates on a Bitmap.

But I m not clear about SurfaceHolder and SurfaceFlinger and according to above definition bitmap is also container of pixel and Surface too.

Can you help to give me clear understanding the definition of all these objects?

最佳回答

A Canvas是利用图象APIC进行制图的基本背景。 你们可以自行制定“Canvas”地图,以进行非屏幕绘画,当然,“ID”框架将让Canvases人去种植,供他们自食。 所有这些植被都是从属的。 或者,如果它们能够包含其他植被,那么它们就会从“观点”中分离出来(这是“观点”的子类)。

如果你想做高档次的算术,那么,如果你想在屏幕上做开放式的GL-ES制造的话,你就必须从水面的电文(或GLSurfaceView)中分级。 每个表层 景象是水稻,它有锁定的花.方法,你可以随时要求获得Canvas,以吸引最新的显示,让用户立即通过锁定的CanvasAndPost看到。

For more info, see 2Dgrams concept and

问题回答

暂无回答




相关问题
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 ...

热门标签