|
|
|||
Android Webview query
Hi,
I am having, what may be a simple problem but it is driving me crazy! I have built an app that loads a button and when you click on the button you connect to a website. I cannot get the webview to load on to the full screen, it still has the button at the top of the screen. I want you to be able to click on the button then the web page loads covering the whole screen so you don't see the button anymore. Can anyone help me please? I have tried changing the Layout in the Main.xml but am not sure what I am doing wrong or not doing! Thanks. 2 Replies
It sounds like the button and the WebView are in the same Activity, and the reason the button remains visible is that the layout it is contained in makes room for both the button and the WebView.
There are a couple things you could do:
In general, it's better to transition to a new activity instead of "overloading" a single activity by hiding and showing different views. So if you add things to your view, such as a form for parameters for your query, put the WebView in a different activity.
Comment by
Spaceship
: Aug 06 2010 09:57 AM
Thanks Zigurd, will try two Activities and will let you know how I get on!
|
|||
|