Code example for ScrollView

Methods: fullScroll

0
      outputText.append("Finished!\n");
       
      // Ensure scroll to end of text 
      scroller.post(new Runnable() {
        public void run() { 
          scroller.fullScroll(ScrollView.FOCUS_DOWN);
        } 
      }); 
    } 
 
    /** Calls into C/C++ code */ 
    public void nativeCall() 
    { 
 
      // Create an instance of CEO, a class derived from the Java proxy of the  
      // underlying C++ class. The calls to getName() and getPosition() are standard, 
      // the call to getTitle() uses the director wrappers to call CEO.getPosition(). 
 
      CEO e = new CEO("Alice");
      outputText.append( e.getName() + " is a " + e.getPosition() + "\n");
      outputText.append( "Just call her \"" + e.getTitle() + "\"\n" );