会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
amours
博客园
首页
新随笔
联系
订阅
管理
2017年4月10日
ListView优化
摘要: 主要针对getView 1.判断converView是否存在. 2.通过ViewHolder进行优化.
阅读全文
posted @ 2017-04-10 16:41 amours
阅读(95)
评论(0)
推荐(0)
2017年3月27日
自定义布局_用于标题栏
摘要: 1. 编写自定义控件 2. 重写LinearLayout函数 3. 布局中使用 test.uicustomviews.TitleLayout 部分,test.uicustomviews为包名,TitleLayout为代码文件名
阅读全文
posted @ 2017-03-27 21:18 amours
阅读(538)
评论(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
阅读(457)
评论(0)
推荐(0)
2017年3月19日
AlertDialog与ProgessDialog的使用
摘要:  ``` AlertDialog.Builder dialog=new AlertDialog.Builder(MainActivity.this); dialog.setTit...
阅读全文
posted @ 2017-03-19 23:53 amours
阅读(208)
评论(0)
推荐(0)
Markdown语法记录
摘要: 标题 一级标题 ==================== 二级标题 正文 三级标题 引用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
阅读(97)
评论(0)
推荐(0)
关于Button的错误使用
摘要: 今天犯了一个很低级的错误,将一个按钮的点击事件监听,放置与另一个按钮的点击时间中. 错误的导致原因是 代码混乱 这样的结果是 前面的按钮不触发,后面按钮的逻辑就会失效
阅读全文
posted @ 2017-03-19 22:45 amours
阅读(162)
评论(0)
推荐(0)
2016年11月8日
ListView-ViewHolder
摘要: 2.当前元素无法从convertView读取时(初次建立) ①设置一个convertView标签 3.当前元素可以从convertView读取时 ①得到前面设置的标签 4.通过ViewHolder的方法对我们的元素进行操作 5.返回视图 总
阅读全文
posted @ 2016-11-08 16:26 amours
阅读(108)
评论(0)
推荐(0)
公告