摘要: findViewById(R.id.xxxx),把xml里面的控件根据id绑定到类成员变量,适用于普通控件和布局LayoutInflater,用于把布局xml里面的东西实例化(会重新实例化,和findViewById不同),sample代码如下LayoutInflater inflator = getLayoutInflater();//注意,这里参数是layout,不是idRelativeLayout layout = (RelativeLayout)inflator.inflate(R.layout.activity_main, null); TextView aTextView = n. 阅读全文
posted @ 2013-05-22 21:49 自由出土文物 阅读(136) 评论(0) 推荐(0)
摘要: afinal,很好很强大~https://github.com/yangfuhai/afinalandroid的异步网络库http://code.google.com/p/basic-http-client/ 阅读全文
posted @ 2013-05-22 18:30 自由出土文物 阅读(158) 评论(0) 推荐(0)