摘要: 主要针对getView 1.判断converView是否存在. 2.通过ViewHolder进行优化. 阅读全文
posted @ 2017-04-10 16:41 amours 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1. 编写自定义控件 2. 重写LinearLayout函数 3. 布局中使用 test.uicustomviews.TitleLayout 部分,test.uicustomviews为包名,TitleLayout为代码文件名 阅读全文
posted @ 2017-03-27 21:18 amours 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 1. build.gradle的 dependencies闭包部分 添加 compile 'com.android.support:percent:24.2.1' 2. 添加 xmlns:app="http://schemas.android.com/apk/res auto" 3. 使用 4. 全 阅读全文
posted @ 2017-03-27 20:22 amours 阅读(451) 评论(0) 推荐(0) 编辑
摘要: ![](http://images2015.cnblogs.com/blog/1059085/201703/1059085-20170319235352338-986111546.jpg) ``` AlertDialog.Builder dialog=new AlertDialog.Builder(MainActivity.this); dialog.setTit... 阅读全文
posted @ 2017-03-19 23:53 amours 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 标题 一级标题 ==================== 二级标题 正文 三级标题 引用1 引用2 引用3 强调 Some of these words are emphasized . Some of these words _are emphasized also_. Use two aster 阅读全文
posted @ 2017-03-19 22:51 amours 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 今天犯了一个很低级的错误,将一个按钮的点击事件监听,放置与另一个按钮的点击时间中. 错误的导致原因是 代码混乱 这样的结果是 前面的按钮不触发,后面按钮的逻辑就会失效 阅读全文
posted @ 2017-03-19 22:45 amours 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 2.当前元素无法从convertView读取时(初次建立) ①设置一个convertView标签 3.当前元素可以从convertView读取时 ①得到前面设置的标签 4.通过ViewHolder的方法对我们的元素进行操作 5.返回视图 总 阅读全文
posted @ 2016-11-08 16:26 amours 阅读(99) 评论(0) 推荐(0) 编辑