摘要: 现象 使用fastjson解析出的数组直接放到mData中,然后调用notifyDataSetChanged无效 原因 有以下三个原因:(https://blog.csdn.net/whitley_gong/article/details/50562634) 1、数据源没有更新,调用notifyDa 阅读全文
posted @ 2018-06-23 00:35 吾非无心 阅读(1186) 评论(0) 推荐(0)
摘要: github: https://github.com/JakeWharton/butterknife 在Android Studio中只需要简单的设置即可 OK,Over. 阅读全文
posted @ 2018-06-15 16:57 吾非无心 阅读(199) 评论(0) 推荐(0)
摘要: 目前只有简单音频播放需求,暂时封装到这样,以后需求变了,再扩展吧 类: 1 import android.media.AudioManager; 2 import android.media.MediaPlayer; 3 import android.support.annotation.Float 阅读全文
posted @ 2018-06-13 21:04 吾非无心 阅读(1630) 评论(0) 推荐(0)
摘要: 准备工作: android自带的zip解压不能处理中文文件名,需要引用第三方jar apache的commons-compress 1.12 http://central.maven.org/maven2/org/apache/commons/commons-compress/1.12/common 阅读全文
posted @ 2018-06-12 23:57 吾非无心 阅读(576) 评论(0) 推荐(0)
摘要: 倒计时线程 显示View 继承自TextView 示例: 阅读全文
posted @ 2018-06-12 11:21 吾非无心 阅读(174) 评论(0) 推荐(0)
摘要: 不希望新开的窗口中出现 “-untitled”这个东西 办法如下: 1、重载DOC类的方法void CDocument::SetTitle(lpszTitle): void CLeesReaderDoc::SetTitle(LPCTSTR lpszTitle){ //判断是否有内容(不同应用判断方法 阅读全文
posted @ 2018-01-11 21:38 吾非无心 阅读(317) 评论(0) 推荐(0)
摘要: 一、兼容位图应当依据真实DC创建,不能依据刚建的内存DC来 CDC* pDC( 可以是传入的DC,也可以是屏幕DC,可以是CClientDC....) CDC dcMemory; dcMemory.CreateCompatibleDC(pDC); CBitmap bmp; bmp.CreateCom 阅读全文
posted @ 2018-01-10 22:12 吾非无心 阅读(120) 评论(0) 推荐(0)
摘要: 一、字符计算 (richedit).LineIndex(nLine)取得的字符索引,是该行起始位置距文首的索引(字符数) 需要注意的是:分段(\r\n)符号,只算一个字符;在字符串变量(或文件)中这是两个字符! 阅读全文
posted @ 2018-01-07 20:40 吾非无心 阅读(115) 评论(0) 推荐(0)
摘要: public string Get(string url) { string retval = string.Empty; #region 初始化 char[] chars = url.ToCharArray(0, 1); Uri url_s = new Uri(url); ... 阅读全文
posted @ 2017-06-05 19:41 吾非无心 阅读(173) 评论(0) 推荐(0)
摘要: 修改注册表: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager PendingFileRenameOperations,将其值改为空字符串。 阅读全文
posted @ 2017-05-11 15:34 吾非无心 阅读(168) 评论(0) 推荐(0)