- 博客(4)
- 收藏
- 关注
转载 android post方式上传文件(模拟表单格式数据提交)
表单提交内容为:POST /upload.php?zp_id=ab46ca6d703e3a1580c1c9b8b3a8fb39 HTTP/1.1Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-ms-application, application/x-ms-xbap, application...
2014-07-03 14:35:00 570
转载 ListView下拉刷新实现(类似陌陌的箭头转动)
1 import android.animation.Animator; 2 import android.animation.Animator.AnimatorListener; 3 import android.animation.TypeEvaluator; 4 import android.animation.ValueAnimator; ...
2014-06-10 17:10:00 203
转载 Listview getChildAt方法返回null以及精确判断滚动到底部
1:getChildAt释疑: getChildAt(int index)得到的是当前ListView可见项的item,index为可见项的索引;getChildCount返回的是ListView当前屏幕下可见项的数目 getChildAt中index的大小并非为ListView的Adapter中的index,而是0~getChildCount()之间的值,否则返回为n...
2014-06-09 13:16:00 141
转载 TextView中实现部分文字点击
在开发过程中有时候需要实现TextView部分文字的点击效果,实现该功能可以自定义文本控件,也可以用android源生api实现1、SpannableString是CharSequence接口的实现类,同时它也实现了Spannable接口; ①SpannableString通过setSpan方法可以设置TextView文本的各种样式,包括文本中插入图片(ImageSpan),前...
2014-03-27 12:06:00 198
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人