Mohamed Heiba
Mohamed Heiba

Reputation: 1833

How to open a webview over current layout in Android?

Been searching for this for a while. How do I open a webview that will appear on top of my current layout ? The webview will show a webpage from the internet where users enter their details and submit it.

If anyone has played with Facebook login, Twitter login, or even PayPal payment, they are all doing exactly what I want, a webview floating on top of the current layout please see the screenshot below:

please note, I will not create my own webview textboxes and buttons, it will be a webpage from a url that I wish to display in that webview

application with no webview

application with facebook login webview

application with twitter login webview

application with paypal payment webview

Upvotes: 0

Views: 702

Answers (1)

Raghav Sood
Raghav Sood

Reputation: 82543

Just launch it in a Dialog.

Dialogs can be themed with custom layouts to look like pretty much anything.

If you still need more flexibility, try using a dialog themed Activity.

Upvotes: 2

Related Questions