Loading Title Pada Aplikasi WebView Android

myWebView.setWebChromeClient(new WebChromeClient() {
    public void onProgressChanged(WebView view, int progress)
    {
        //Menampilkan title Loading... sebelum webview load 100% halaman web.
        setTitle("Loading...");
        setProgress(progress * 100); 

        // Menampilkan title setelah loading web selesai.
        if(progress == 100)
            setTitle(R.string.antorij);
    }
});

Leave a Reply

Your email address will not be published. Required fields are marked *