我有以下代码(适用于Android):
handler.post(new MyRunnable());
....
static public class MyRunnable implements Runnable {
public void run() {
text.setText("Hi");
imageV.layout(imageV.getLeft()+y, 218, imageV.getLeft()+150+y, 464);
}
}
设置了文本,但imageV
位置未更改。 当我不写text.setText("Hi");
,位置将改变。 我有一个AbsoluteLayout
。