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