在layout中,找到控件VIEW的办法???
我知道,layear = new LinearLayout(this); 动态的往这个层中加入各种VIEW !
1. layear.findViewById(id) 这个是找配置资源中,不可行。。
2. layear.findViewWithTag(tag) 这个找到前提是,在往layout中加入的VIEW必须先setTag(),这样才能找到!
3.不知道有没有其他什么方法。。。ViewTreeObserver tree= layear.getViewTreeObserver(); 不知道这个方法是什么意思,难得是返回的树状结构的view,然后去遍历???