Just playing around. It's just a simple encapsulation of WebView...how simple is it? It’s so simple that there is only one Activity in the entire project file, and the actual code is less than 400 lines~
The code inside is attached with detailed comments. Beginners can refer to it if they are interested.
Let’s take a look at some actual measurement pictures...
Visit Bilibili | Go to Taobao | Read Zhihu |
---|---|---|
![Go to Taobao](https://user-images .githubuserContent.com/16880885/44021676 -F8189B62-9F17-1CF-8ECF-BB91CC48647F.Png) | ! [Look] (https://user-images.githubusercontent.com/1 6880885/44021699-0A6CF768-9F18-11E8 -8be6-eca3574f01b6.png) |
Wow! It can actually be used to read web pages! Isn’t it awesome?
- Visit the website
- Forward, backward, return to homepage
- Gone……
- Video cannot be played in full screen
- Unable to upload file
- and other pitfalls that come with WebView
- Multiple tabs
- Function settings
- history record
- Stealth mode
- Favorites
- Plugins
- Cloud sync
- Ad filtering
- Night mode
- QR code scanning
- The above is pure fabrication, don’t expect it to come true...
- After a year of study, my skills have improved a bit. So I changed the previous code to be a little more standardized.
- Improved the bottom navigation bar
- The address bar supports intelligent identification of URLs and search terms (Okay, just add a regular expression~)
- Changed to a more stylish LOGO
- I just started learning Android development and I improvised this to practice. The code is messy.
MIT License
Copyright (c) 2018 mengkun
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.