- 博客(8)
- 资源 (4)
- 收藏
- 关注
转载 关于Android中Animation的停止
关于Android中Animation的停止 分类: Android2012-11-27 19:35 2360人阅读 评论(2) 收藏 举报 最近遇到一个需求,通过在GridView上改变焦点,并且GridView上每个item有一个隐藏的层,获取焦点之后,通过AlphaAnimation显示出来。 发现当duration大于500时,快速移动焦点
2014-02-28 16:30:00 760
原创 android:gravity="right" android:layout_marginRight="16dip"
android:gravity="right" android:layout_marginRight="16dip" 这两个属性,有时对Button无效,这时候需要外部套一个LInearLayout, 再给layout设置这两个属性。
2014-02-17 13:49:11 803 1
转载 remove M
1)在ftp上传的时候选择ASCII方式。大多数的ftp客户端软件都可以选择传送方式 2)在Unix/Linux下运行命令 dos2unix [文件名] (debian下需安装sysutils) 3)在windows下用UltraEdit处理一下文件,将其转化成unix格式(格式转换:dos转unix),然后再上传 4)在vi编辑器里,用set fileformat=uni
2014-02-16 17:56:58 676
转载 Android2.3解析json出错
Android2.3解析json出错 发表于1个月前(2013-12-18 20:33) 阅读(60) | 评论(1) 4人收藏此文章, 我要收藏 赞0 在android2.3上json出现此问题,提示错误“JSONException: Value of type java.lang.String cannot be converted to JSONObject
2014-02-14 13:43:31 1545
转载 org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject 分类: JSON2014-01-14 10:14 274人阅读 评论(0) 收藏 举报 解析服务器返回的Json串时,JSONObject对象抛出了这个异常。 原以为是返回的json格式错
2014-02-14 13:40:21 2423
转载 org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra
org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra 该异常有 json 文件编码所引起的,所以千万不要使用 记事本 编辑 json 文件,而应选择其他文本编辑器,如 EditPlus ,并注意保存编码格式为 UTF-8,否则可能产生中文乱码。 用记事本编辑后
2014-02-14 12:17:51 2343
转载 Android上一些方法的区别和用法的注意事项
Intent中的addflags()和setflags()的区别 addflags():Add additional flags to the intent (or with existing flags value). setflags():Set special flags controlling how this intent is handled. Android 配置文件里面"
2014-02-07 16:06:24 691
转载 Android 一张图理解getWidth和getMeasuredWidth
view.getMeasuredHeight()可能隐藏在上头.可能在下头.如果view没有超出屏幕的时候view.getMeasuredHeight() 有可能小于 view.getHeight() getWidth(): View在設定好佈局後整個View的寬度。 getMeasuredWidth(): 對View上的內容進行測量後得到的View內容佔據的寬度
2014-02-07 16:02:13 994
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人