![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
android中 new创建对象和 findviewbyid有什么不同
1个回答
2017-03-29
展开全部
new 是创建一个类的对象 findviewbyid 主要是通过ID来查找布局文件VIEW上的子控件,它返回的是一个VIEW对象
Look for a child view with the given id. If this view has the given id, return this view. 这个就是findviewbyid的官方解释
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询