Android Videoview Set Width,Height,X and Y



my screen android phone width=888 height=672


i want to make videoview with X=670 and Y=250


(videoWidth=500 , videoHeight=200 ,videoX=670 , videoY=250)


i was try with code below



WindowManager.LayoutParams params = new WindowManager.LayoutParams(
videoWidth, videoHeight, videoX, videoY,
WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY,
WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH,
PixelFormat.TRANSLUCENT);


but video show all and X and Y moving to left,so X and Y not Fiks, how i can make videoview with X and Y Fiks,i want make it with programmatically no xml, Thank you


No comments:

Post a Comment