Android: Transparent WebView over Camera Preview -


just general question , maybe has idea: possible have transparent webview on camera surfaceview , use html/css creating overlay?

<!-- in xml -->         <webview android:id="@+id/webkit"             android:layout_width="200dip"             android:layout_height="wrap_content"             android:maxwidth="200dip"             android:maxheight="200dip"             android:layout_marginbottom="4dip"             android:adjustviewbounds="true"             android:visibility="gone"             />              // oncreate             barcodebrowser = (webview)findviewbyid(r.id.webkit);             ...  // somewhere in runtime              barcodebrowser.setvisibility(view.visible);             string downloadlink = "http://stackoverflow.com/questions/1260422/setting-webview-background-image-to-a-resource-graphic-in-android";               barcodebrowser.setbackgroundcolor(color.argb(0,0,0,0));              barcodebrowser.setbackgroundresource(r.drawable.icon);             barcodebrowser.loadurl(downloadlink); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -