import android.os.Handler;
import android.os.Looper;
import android.view.View;
import android.widget.ScrollView;
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Overridepublic void run() {
View vText = findViewById(R.id.tv_log);
if (vText != null && vText instanceof TextView) {
TextView tvLog = (TextView)vText;
tvLog.setText("test");
}
View vScrool = findViewById(R.id.sv_log);
if (vScrool != null && vScrool instanceof ScrollView) {
ScrollView svLog = (ScrollView)vScrool;
svLog.fullScroll(View.FOCUS_DOWN);
}
}
});