create webview on top of the other layouts which fits to screen


Can I create a WebView on top of all the other layouts dynamically?

Actually I want to have WebView on the top of all the layout and which fits to the screen?

I am using LinearLayout. Can I do this using code ?


Create a FrameLayout and place your LinearLayout and WebView in it. Since in FrameLayout Child views are drawn in a stack. you will have both the views overlapping on each other. control their visibility to switch between your views.

Answered By – Kalpesh Patel

Leave a Comment