Issue
I hava a webview showing some contents which is getting from server. Now on that same activity i use to override differnt urls based on condition. Means my webview is one and is loading differnt differnt page depending on the condition. Now in this webview bydefault I am getting address bar. Can anyone help me how to avoid addressbar coming to a webview.
Solution
There is no address bar in a WebView. Question has already been stated here: Disable address bar in Android webview
What you probably wants is to remove the title. If I remember correctly the name/url is also stated in the title of the activity. You should read: http://developer.android.com/resources/tutorials/views/hello-webview.html
You could remove the title by writing this for your activity in your manifest file.
<activity android:name=".MyActivity" android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
Answered By - David Olsson
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.