好像刷新UI的话 要借助Handler
解决方案 »
- 请问Android适合工业级的产品开发吗?
- 求解!!100分!ubuntu下android源码mm编译带三方jar包的项目,javamail报错!errorIOException while sendin
- ubuntu 下android源码下载的问题
- 在SystemUI上面启动一个App和在launcher里面启动一个App的机制
- 用Cursor和ContentResolver删除指定的联系人
- android数据库每次查询完都要关闭吗
- android中xml的解析问题
- 菜单使用的一个问题,请教各位牛人
- DisplayMetrics.density文档没看明白
- android asynctask doInBackground出现异常
- 求解类似【地图气泡/地图标记】如何实现,不用google api的
- android开发中点击Button按钮,怎么就跳转到menu上了呢?
new Handler().post(new Runnable() {
public void run() {
try {
Thread.sleep(10);
int left = linearLayout.getMeasuredWidth() - horizontalScrollView.getWidth();
if(left < 0) {
left = 0;
}
horizontalScrollView.scrollTo(left, 0);
} catch(Exception e) {
e.printStackTrace();
}
}
});
}
此乃正解,不过仍感谢各位!!
new Handler().post(new Runnable() {
public void run() {
try {
Thread.sleep(10);
int left = linearLayout.getMeasuredWidth() - horizontalScrollView.getWidth();
if(left < 0) {
left = 0;
}
horizontalScrollView.scrollTo(left, 0);
} catch(Exception e) {
e.printStackTrace();
}
}
});
}
此乃正解,仍然感谢各位!!!