android - How to create a transparent Activity programmatically? -


I want to start an activity with my webview as my activity. This new activity should be transparent and should be in the webview center. I looked around the web but the only solution I found was that they were using Style XML I want to do this with pure code i.e. xml announcements. If someone has come to this, please enter some light

Did you create a dialog with embedded webview in it Have you considered?

edit my onCreateDialog () :

  dialogue = new dialog (mainfollow at this. Is near; Linear amyllinelayout = new linerlayout (this); MLinearLayout.setBackgroundColor (android.R.color.transparent); LinearLayout.LayoutParams llp = New LinearLayout.LayoutParams (Layout Perm.FILL_PARENT, Paramá layout.phil_parent); MLinearLayout.setLayoutParams (LLP); D.setContentView (mLinearLayout); Webview mWebView = new webview (this); MWebView.getSettings () setJavaScriptEnabled (true). MWebView.loadUrl ("www.google.com"); MLinearLayout.addView (mWebView);  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -