¡@

Home 

2014/10/16 ¤W¤È 08:25:30

android Programming Glossary: surface_view

Android Camera Surface View

http://stackoverflow.com/questions/10482057/android-camera-surface-view

Preview_can_work extends Activity private SurfaceView surface_view private Camera mCamera SurfaceHolder.Callback sh_ob null SurfaceHolder.. getWindow .setFormat PixelFormat.TRANSLUCENT surface_view new SurfaceView getApplicationContext addContentView surface_view.. new SurfaceView getApplicationContext addContentView surface_view new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT..

Position Video Inside a VideoView

http://stackoverflow.com/questions/4619563/position-video-inside-a-videoview

@drawable bg Video player VideoView android id @ id surface_view android layout_width fill_parent android layout_height fill_parent..

Android Camera will not work. startPreview fails

http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails

Activity private GLSurfaceView mGLView CameraSurfaceView surface_view @Override public void onCreate Bundle savedInstanceState super.onCreate.. it as the ContentView for this Activity Debug.out Welcome surface_view new CameraSurfaceView this mGLView new MySurfaceView this setContentView.. MySurfaceView this setContentView mGLView addContentView surface_view new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT..

Android Camera Surface View

http://stackoverflow.com/questions/10482057/android-camera-surface-view

I have written a class this can help you. public class Preview_can_work extends Activity private SurfaceView surface_view private Camera mCamera SurfaceHolder.Callback sh_ob null SurfaceHolder surface_holder null SurfaceHolder.Callback sh_callback.. onCreate Bundle savedInstanceState super.onCreate savedInstanceState getWindow .setFormat PixelFormat.TRANSLUCENT surface_view new SurfaceView getApplicationContext addContentView surface_view new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT.. getWindow .setFormat PixelFormat.TRANSLUCENT surface_view new SurfaceView getApplicationContext addContentView surface_view new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT if surface_holder null surface_holder surface_view.getHolder..

Position Video Inside a VideoView

http://stackoverflow.com/questions/4619563/position-video-inside-a-videoview

fill_parent android layout_height fill_parent android background @drawable bg Video player VideoView android id @ id surface_view android layout_width fill_parent android layout_height fill_parent android layout_gravity center VideoView FrameLayout ..

Android Camera will not work. startPreview fails

http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails

is the Activity class public class NightCamActivity extends Activity private GLSurfaceView mGLView CameraSurfaceView surface_view @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState Create a GLSurfaceView instance.. savedInstanceState Create a GLSurfaceView instance and set it as the ContentView for this Activity Debug.out Welcome surface_view new CameraSurfaceView this mGLView new MySurfaceView this setContentView mGLView addContentView surface_view new LayoutParams.. Welcome surface_view new CameraSurfaceView this mGLView new MySurfaceView this setContentView mGLView addContentView surface_view new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT @Override protected void onPause super.onPause The following..