开发者

Removing the Window titlebar after adding content [Android]

开发者 https://www.devze.com 2023-01-17 02:33 出处:网络
The question is quite simple \"How do I remove the titlebar from a WebView, afte开发者_StackOverflow中文版r adding content ? Normally you use requestWindowFeature(Window.FEATURE_NO_TITLE); But you can

The question is quite simple "How do I remove the titlebar from a WebView, afte开发者_StackOverflow中文版r adding content ? Normally you use requestWindowFeature(Window.FEATURE_NO_TITLE); But you can only use that method before adding content :(

So any ideas ? :)

Thanks


I'm fairly certain the answer to the question is "you can't".

Your best bet is probably turn off the real window title (as you detail in your question) then define a titlebar-like element of your own in your layout file...which you can then show/hide at will.

0

精彩评论

暂无评论...
验证码 换一张
取 消