Loading core/java/android/view/TextureView.java +17 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.SurfaceTexture; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.util.Log; Loading Loading @@ -294,6 +295,22 @@ public class TextureView extends View { public void buildLayer() { } @Override public void setForeground(Drawable foreground) { if (foreground != null) { throw new UnsupportedOperationException( "TextureView doesn't support displaying a foreground drawable"); } } @Override public void setBackgroundDrawable(Drawable background) { if (background != null) { throw new UnsupportedOperationException( "TextureView doesn't support displaying a background drawable"); } } /** * Subclasses of TextureView cannot do their own rendering * with the {@link Canvas} object. Loading Loading
core/java/android/view/TextureView.java +17 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.SurfaceTexture; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.util.Log; Loading Loading @@ -294,6 +295,22 @@ public class TextureView extends View { public void buildLayer() { } @Override public void setForeground(Drawable foreground) { if (foreground != null) { throw new UnsupportedOperationException( "TextureView doesn't support displaying a foreground drawable"); } } @Override public void setBackgroundDrawable(Drawable background) { if (background != null) { throw new UnsupportedOperationException( "TextureView doesn't support displaying a background drawable"); } } /** * Subclasses of TextureView cannot do their own rendering * with the {@link Canvas} object. Loading