1

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 ?

1
  • Just add the webview in your xml layout on the right place. Then in your code you only have to set the visibility.
    – greenapps
    Jun 19, 2014 at 13:49

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.