开发者

Android - Creating own buttons in webview, retrieving certain contents from website into webview

开发者 https://www.devze.com 2023-03-08 03:30 出处:网络
I\'m currently doing a application (project) on android. I would like to know how to create my own buttons in webview, or creating a tab bar in webview. Also, I would want to retrieve certain contents

I'm currently doing a application (project) on android. I would like to know how to create my own buttons in webview, or creating a tab bar in webview. Also, I would want to retrieve certain contents from a website (or rather, from livejournal, to be specifc), like, I do not want the buttons that are in l开发者_如何学JAVAivejournal itself, I just want certain contents, maybe like some live journal posts. Is there any way I could do this?

Thank you so much in advance!


Instead of putting tabs in the WebView you should put the WebView in Tabs. As for pulling information from LiveJournal there are two possibilites. They either have a public api that you can access to get the data you want and use that to populate your app or they don't. If they don't your only recourse would be to pull in the raw html and try to parse it. At that point you might was well just use the webpage as is.

0

精彩评论

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

关注公众号