Code example for WebView

Methods: scrollTo, startAnimation

0
        AlphaAnimation fadeInAnimation = new AlphaAnimation(0.0f, 1.0f);
        fadeInAnimation.setDuration(800);
        wv.scrollTo(0, 0);
        wv.startAnimation(fadeInAnimation);
    } 
 
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        try { 
            // check that the containing activity implements our callback 
            loadExternalURLListener = (LoadExternalURLListener) activity;
        } catch (ClassCastException e) {
            activity.finish();
            throw new ClassCastException(activity.toString()
                    + " must implement Callback"); 
        } 
    } 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig) {
        // ignore orientation change