转自https://blog.csdn.net/male09/article/details/78773399
fsvCommunicate.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
fsvCommunicate.post(new Runnable() {
@Override
public void run() {
fsvCommunicate.fullScroll(View.FOCUS_DOWN);
}
});
}
});
注意:scrollView内现有一个总布局包起来,例如:LinearLayout