摘要: 参考学习:依次http://blog.csdn.net/xiaanming/article/details/26810303http://blog.csdn.net/xiaanming/article/details/27525741http://blog.csdn.net/liu116431615... 阅读全文
posted @ 2014-11-07 17:32 chuiyuan 阅读(289) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/mengdd/archive/2013/01/08/2851368.htmlhttp://blog.csdn.net/pi9nc/article/details/12249619 阅读全文
posted @ 2014-11-07 12:05 chuiyuan 阅读(116) 评论(0) 推荐(0) 编辑
摘要: LayoutInflater作用是将layout的xml布局文件实例化为View类对象。获取LayoutInflater的方法有如下三种:LayoutInflater inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_I... 阅读全文
posted @ 2014-11-06 17:36 chuiyuan 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 其中BaseAdapter需要重写的方法:getCount(),getItem(int position),getItemId(int position),getView(int position, View convertView, ViewGroup parent)ListView加载性能优化V... 阅读全文
posted @ 2014-11-05 22:53 chuiyuan 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 回调所谓的回调,就是客户程序 C 调用程序 S 中的一个函数A ,然后 S 又反回来调用 C 中的某个函数 B ,对 C 来说,这个 B 就是回调函数。图示如下:对于C来说 ,B就是回调函数。C不会自己调用 B,提供 B的目的 就是让S来调用,而且 是C不得不提供 的。由于S并不知道C提供的B姓甚名... 阅读全文
posted @ 2014-11-05 19:50 chuiyuan 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 参考两个:选择1来实现1. http://www.open-open.com/lib/view/open1335576985577.html2. http://blog.csdn.net/qjlhlh/article/details/7979179主体代码 如下:/** * 相关的文件:drawab... 阅读全文
posted @ 2014-11-04 23:03 chuiyuan 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 动 画ListView/code/info/325.html类似qq的popwindow/code/info/273.html仿qq退出/code/info/247.html各种自己定义 的圆形进度条/code/info/244.htmlgit只删除文件时:git commit -a -m "del... 阅读全文
posted @ 2014-11-04 19:21 chuiyuan 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 一。再整理登录的过程目前只有在RegisterActivity还有loginUser()中可以 setLogin()为ture.经过在MainActivity中加入对setLogin=false的测试,已经没有问题。剩下一个问题:怎么看sp文件?二。SplashActivity当不是第一次登录的时候... 阅读全文
posted @ 2014-11-03 21:34 chuiyuan 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: (后改为loginUser(),只存在注册和登录,不存在恢复)一。在WelcomeActivity中的代码这里我们是根据deviceid来查询用户的。//要用到网络 ,所以开一个线程 private void resumeUser() { ToastUtils.ToastShor... 阅读全文
posted @ 2014-11-03 19:29 chuiyuan 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 在网络编程过程中需要向服务器上传文件。Multipart/form-data是上传文件的一种方式。Multipart/form-data其实就是浏览器用表单上传文件的方式。最常见的情境是:在写邮件时,向邮件后添加附件,附件通常使用表单添加,也就是用multipart/form-data格式上传到服务... 阅读全文
posted @ 2014-11-01 17:12 chuiyuan 阅读(4192) 评论(0) 推荐(0) 编辑