Code example for ScrollView

Methods: setVisibility

0
        if ( visible ) {
            textViewEmpty.setVisibility( View.GONE );
            scrollView.setVisibility( View.VISIBLE );
        } else { 
            textViewEmpty.setVisibility( View.VISIBLE );
            scrollView.setVisibility( View.GONE );
        } 
    } 
 
    private class ImageRequestListener implements RequestListener< InputStream >, RequestProgressListener {
 
        @Override 
        public void onRequestFailure( SpiceException arg0 ) {
            if ( !( arg0 instanceof RequestCancelledException ) ) {
                Toast.makeText( ImageSpiceActivity.this, "Failed to load Twitter data.", Toast.LENGTH_SHORT ).show();
                setImageVisible( false ); 
            } 
        } 
 
        @Override 
        public void onRequestSuccess( InputStream inputStream ) {