最終更新:2016-01-04 (月) 14:52:47 (1353d)  

android.view.TextureView はてなブックマークを見る
Top / android.view.TextureView

Android/APIレベル14(Android 4.0)~

http://developer.android.com/reference/android/view/TextureView.html

概要

  • A TextureView can be used to display a content stream.
  • Such a content stream can for instance be a video or an OpenGL scene. The content stream can come from the application's process as well as a remote process.
  • TextureView can only be used in a hardware accelerated window. When rendered in software, TextureView will draw nothing.

継承

使い方

android.graphics.SurfaceTexture

  • Captures frames from an image stream as an OpenGL ES texture.
  • It is therefore highly recommended you use a listener to be notified when the SurfaceTexture becomes available.

メモ

イベントリスナ

SurfaceViewとの違い

メモ

  • TextureViewの中身はOpenGL ESで言うところのテクスチャレンダリング
  • 内部的にBitmapを持っていてそこに描画
    • アクティビディのライフサイクルにかかわらず保持
  • 垂直同期を取らない
  • 内部でBitmap(SurfaceTextureを持つ)

参考