Code example for ScrollView

Methods: smoothScrollTo

0
            } 
            // Log.d("Scroll", "Scroll Y=" + headEv.eventPos()); 
            // Scroll to the first Event. 
            sv.post(new Runnable() {
                public void run() { 
                    sv.smoothScrollTo(0,
                            headEv.eventPos() - headEv.leftMargin());
                } 
            }); 
 
        } 
 
    } 
 
    /** 
     * Standard onResume 
     */ 
    public void onResume() { 
        super.onResume(); 
        if (model != null) {
            model.updateEvents();