[android-developers] Re: VideoView inside a ListView

2016-05-24 Thread rayworks
Hi, there Please note that VideoView is a kind of SurfaceView. As the doc mentions SurfaceView: *The surface is Z ordered so that it is behind the window holding its > SurfaceView; the SurfaceView punches a hole in its window to allow its > surface to be displayed. The view hierarchy will

[android-developers] Re: Webview with transparent background

2011-08-18 Thread rayworks
On Aug 18, 10:23 am, bob b...@coolgroups.com wrote: Is there any way to make a Webview have a transparent background? Thanks. RTM pls. public void setBackgroundColor (int color) Set the background color. It's white by default. Pass zero to make the view transparent. -- You received this

[android-developers] Re: Place a custom view on a relative layout programmatically

2011-08-18 Thread rayworks
        MyCustomView customView = new MyCustomView(this);         // Settings here the margin : Doesn't works!         MarginLayoutParams mLayoutParams = new MarginLayoutParams(338, 338);         mLayoutParams.setMargins(100, 100, 0, 0);         customView.setLayoutParams(mLayoutParams);