2016年5月8日

android adapter公共写法

摘要: 在开发过程中,会写很多的adapter类,其中很多公共的部分,不需要每次都去书写,可以为开发者省下很多时间 提取一个ListViewAdapter public abstract class ListViewAdapter<T> extends BaseAdapter { //为了让子类访问,于是将 阅读全文

posted @ 2016-05-08 15:48 木头平 阅读(1391) 评论(0) 推荐(0) 编辑

android 图片内存问题

摘要: 在android开发过程中,经常遇到oom的问题,原因有很多种,其中最难处理的是图片造成的oom,于是在网络上对比了几个图片加载的库,最终选择了Facebook的fresco库(github地址:https://github.com/facebook/fresco)。 fresco对内存的处理做得很 阅读全文

posted @ 2016-05-08 15:16 木头平 阅读(220) 评论(0) 推荐(0) 编辑

gitlab merge过程

摘要: 基本步骤如下: 以我的分支为例 1.创建本地分支,命令 git checkout -b liuping_develop2.创建好分支后提交到远程 ,命令 git push origin liuping_develop 做以下步骤之前的注意事项: 以liuping_develop(我的分支) 和 lb 阅读全文

posted @ 2016-05-08 15:13 木头平 阅读(16387) 评论(0) 推荐(0) 编辑

git 基本使用

摘要: 1.创建新分支 git branch <分支名> 2.提交你的修改 git status 查看文件状态 git diff 查看修改的文件详细内容 git add . 添加当前修改的文件到暂存区 git commit –m "你的注释" 提交你的并加上注释 git pull origin <分支名> 阅读全文

posted @ 2016-05-08 14:59 木头平 阅读(229) 评论(0) 推荐(0) 编辑

Google Gson使用简介

摘要: 1.Google Gson在android studio的使用 gradle:compile 'com.google.code.gson:gson:2.2.4' 2.Gson 注解 @Expose 注解的作用是序列化和反序列化的时候暴露给Gson,没有这个注解,字段可以不被转换 @Serialize 阅读全文

posted @ 2016-05-08 14:30 木头平 阅读(448) 评论(0) 推荐(0) 编辑

AndroidEventBus总结

摘要: 什么是AndroidEventBus? android事件总线,是一个发布 / 订阅的事件总线 github地址:https://github.com/greenrobot/EventBus AndroidEventBus的作用? AndroidEventBus是一个Android平台轻量级的事件总 阅读全文

posted @ 2016-05-08 13:34 木头平 阅读(236) 评论(0) 推荐(0) 编辑

导航