Code example for TextureView

Methods: setOpaque, setSurfaceTextureListener

0
	    this.setMeasuredDimension(parentHeight, parentHeight);
	} 
	 
	private void initView(Context context) 
	{ 
        mAvatarView = new TextureView(context);
        mAvatarView.setSurfaceTextureListener(this);
         
        mAvatarView.setOpaque(false);
         
        this.addView(mAvatarView);
         
      	// load in avatar assets   
        copy2Local("comparts"); 
        copy2Local("face"); 
        copy2Local("hair"); 
        copy2Local("glasses"); 
        copy2Local("beard"); 
        copy2Local("voice"); 
	}