How to make SurfaceView became fullscreen in android?
I'm developing an application a video player. I'm having a hard time to
make it fullscreen when I click a button. I tried to change the layout
size in able to fit the surface view to its parent layout. I tried this
code to change the parent layout but it crushes my application.
LinearLayout mylineaLayout = (LinearLayout)
findViewById(R.id.video_container);
LayoutParams params = (LayoutParams) mylineaLayout.getLayoutParams();
params.height = 1000;
params.width = 1000;
Please can anyone suggest a better solution for making it to be able to
run in fullscreen when I click the button. I appreciate any help thanks.
No comments:
Post a Comment