Android, I present an Activity, as Dialog and change the size of the window. The code is as follows:
Window dialogWindow=getWindow ();
WindowManager.LayoutParams lp=dialogWindow.getAttributes();
DisplayMetrics d=getApplicationContext().getResources().getDisplayMetrics();
lp.width=(int)(d.widthPixels*0.68);
lp.height=(int)(d.heightPixels*0.84);
dialogWindow.setAttributes(lp);
then add a VideoView, to Dialog and set MediaController for VideoView. However, in the course of running, it is found that the video progress control bar is in the lower right corner of the video, but not in the Dialog window. How to solve it?