private void autoScroll()
{
this.scrollView = (ScrollView) findViewById(R.id.contentAreasss);//scroll对象
this.mlayout = (LinearLayout) findViewById(R.id.contentArea);//scrollView中包含
mHandler.post(ScrollRunnable);
}
private Runnable ScrollRunnable = new Runnable()
{
public void run()
{
int off = mlayout.getMeasuredHeight() - scrollView.getHeight();//判断高度
if (off > 0)
{
scrollView.scrollTo(0, off);
}
}
};
{
this.scrollView = (ScrollView) findViewById(R.id.contentAreasss);//scroll对象
this.mlayout = (LinearLayout) findViewById(R.id.contentArea);//scrollView中包含
mHandler.post(ScrollRunnable);
}
private Runnable ScrollRunnable = new Runnable()
{
public void run()
{
int off = mlayout.getMeasuredHeight() - scrollView.getHeight();//判断高度
if (off > 0)
{
scrollView.scrollTo(0, off);
}
}
};