Code example for ScrollView

Methods: getHeightscrollBy

0
 
                                        @Override 
                                        public void run() { 
 
                                            res.setText(resultat.toString());
                                            sc1.scrollBy(0, sc1.getHeight());
                                        } 
                                    }); 
 
                                } else { 
                                    nbrLines = 0;
                                    nbrLines++;
                                    resultat = new StringBuilder();
                                    try { 
                                        Thread.sleep(100);
                                    } catch (InterruptedException e) {
                                        e.printStackTrace();
                                    } 
                                    resultat.append(line + "\n");
                                    handler.post(new Runnable() {
Connect your IDE to all the code out there  Get Codota for Java