Android9.0 perpetual calendar graduation design H5 small application webview application source code analysis has been run through

The Android 9.0 perpetual calendar uses the form of html+webview, which makes it easy to make a real small calendar that is beautiful and easy to use.
The main record is how to use webview in Android?
The problems that webview has to deal with include loading local html files, processing JavaScript, and scaling issues.
The key code is as follows, and then we can directly embed the html file.
Complete example: Calendar2020.zip:
If you don’t understand, you can leave a message.
The development environment is Android Studio4.0

WebView webView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
   
    
    
        super.onCreate(savedInstan

Guess you like

Origin blog.csdn.net/poolooloo/article/details/106854193