摘要: 先看Application Fundamentals上的一段话:Android calls onSaveInstanceState() before the activity becomes vulnerable to being destroyed by the system, but does not bother calling it when the instance is actually being destroyed by a user action (such as pressing the BACK key)从这句话可以知道,当某个activity变得“容易”被系统销毁时,该 阅读全文
posted @ 2013-01-30 23:09 Zenip 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 在Android软件设计与实现中我们通常都会使用到ListView这个控件,系统有一些预置的Adapter可以使用,例如SimpleAdapter和ArrayAdapter,但是总是会有一些情况我们需要通过自定义ListView来实现一些效果,那么在这个时候,我们通常会碰到自定义ListView无法选中整个ListViewItem的情况,也就是无法响应ListView的onItemClickListener中的onItemClick()方法,究竟是为什么呢?我之前也在网上查过不少的资料,但是没有发现什么有价值的文章,有一些是建议在Adapter的getView方法中对自己需要响应单击事件的控件 阅读全文
posted @ 2013-01-30 22:41 Zenip 阅读(153) 评论(0) 推荐(0) 编辑