android之下拉刷新(参考Demo即可写出自己的)
摘要:1. 重写的ListView的布局文件<?xmlversion="1.0"encoding="utf-8"?><!--ListView的头部--><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="wrap_content"><!--内容-->&l
阅读全文
posted @
2012-07-29 15:13
lee0oo0
阅读(672)
推荐(0) 编辑
javascript如何读取Json数据结构节点的值
摘要:javascript如何读取Json数据结构节点的值?下面json官方的js,结合ajax来读取解释json结构的数据。<script>//直接声明json数据结构var myJSONObject = {"bindings": [ {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"}, {"ircEvent": "PRIVMSG&quo
阅读全文
posted @
2012-07-16 16:43
lee0oo0
阅读(2252)
推荐(0) 编辑
Android杂谈--ListView之SimpleAdapter的使用
摘要:SimpleAdapter SimpleAdapter是扩展性最好的适配器,可以定义各种你想要的布局,而且使用很方便SimpleAdapter(Contextcontext,List<?extendsMap<String,?>> data, int resource,String[]from, int[] to)参数context:上下文,比如this。关联SimpleAdapter运行的视图上下文参数data:Map列表,列表要显示的数据,这部分需要自己实现,如例子中的getData(),类型要与上面的一致,每条项目要与from中指定条目一致参数re...
阅读全文
posted @
2012-07-04 15:12
lee0oo0
阅读(186)
推荐(0) 编辑