examples/examples/example/src/main/java/com/instructure/example/MainActivity.java
/**
     * Helper for appending to a text view
     */
Helper for appending to a text view
Helper for appending to a text view
public void appendToTextView(String text){
        if(output == null){
            output = (TextView)findViewById(R.id.output);
        }
        String current = output.getText().toString();
        output.setText(current + "\n" + text);
        scrollView.post(new Runnable() {
            @Override
            public void run() {
                scrollView.fullScroll(View.FOCUS_DOWN);
            }
        });
    }
public void appendToTextView ( String text ) { if ( output == null ) { output = ( TextView ) findViewById ( R . id . output ) ; } String current = output . getText ( ) . toString ( ) ; output . setText ( current + "\n" + text ) ; scrollView . post ( new Runnable ( ) { @ Override public void run ( ) { scrollView . fullScroll ( View . FOCUS_DOWN ) ; } } ) ; }
Helper for appending to a text view
Helper for appending to a text view
//Scroll to the bottom of the scrollview.