-1
目前我用这种方式(在课堂上更多次)来访问GUI元素访问GUI元素
((RadioButton)findViewById(R.id.STORAGE_RG_0)).setEnabled(false);
或者是它最好能填的最佳方式可变
RadioButton bla = ((RadioButton)findViewById(R.id.STORAGE_RG_0));
bla.setEnabled(false);
和我如何衡量表现?
谢谢!
可能重复[findViewById vs活动中的本地引用](http://stackoverflow.com/questions/3064437/findviewbyid-vs-local-reference-in-activity) – 2012-02-21 10:52:02
另一个可能的重复:[Android效率 - 观点](http://stackoverflow.com/questions/6430557/android-efficiency-views) – 2012-02-21 10:52:30