Prabakar wrote: > It is very very nice sample that you have provided in vidtry code. From > there i picked of some of the code for my use. > I am going to try SurfaceView and MediaPlayer combination. > For that i made a code like below., > > SurfaceView v = (SurfaceView) findViewById(R.id.SurfaceView01); > SurfaceHolder h = v.getHolder(); > MediaPlayer mp = MediaPlayer.create(this, R.raw.myvideo); > mp.setDisplay(h); > mp.start(); > > I created a surfaceview in main.xml resource layout. But when i created > a SurfaceView there, it is showing it in small rectangle. How to make it > to full screen?
The same ways you make any widget take up the full screen. For example, make it be the only widget in the layout and set android:layout_width and android:layout_height each to be fill_parent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---