【发布时间】:2012-01-04 02:46:00
【问题描述】:
我们都知道你不能在 findViewById 上使用静态,所以 ...
基本代码是:
public class DiffViewFlowExample extends Activity implements OnItemClickListener {
@Override
public void onCreate() {
}
static void hereismymethod() {
}
如何在此处使用findViewById?我知道我不能在本地,但因为 static 将无法工作......
哦,你可能会说:添加它作为参数,我会的,但我会从服务中调用 hereismy 方法,我们都知道服务不喜欢玩与显示有关的东西......
那么有人可以救我吗?
【问题讨论】:
标签: android xml class findviewbyid