摘要: public class MainActivity extends AppCompatActivity { //http://stackoverflow.com/questions/16775891/how-to-change-... 阅读全文
posted @ 2016-09-20 11:53 方志朋的专栏 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 最近做项目需要用到拍照和选择相册照片,并显示出来imageview 上,然后压缩上传到服务器中,这本是一个非常常见的功能,但对于图片的处理确实一个技术活,稍微不注意会出现oom,图片压缩也要处理的刚刚好,不能浪费用户的流量,也不能过分的压缩使图片失真,这真的... 阅读全文
posted @ 2016-09-15 20:21 方志朋的专栏 阅读(148) 评论(0) 推荐(0) 编辑
摘要: jixiaohua发了一篇一个老鸟也发了一份他给公司内部小伙伴整理的路线图。另一份 Android 开发学习路线图。可惜不是MarkDown格式的,所以jixiaohua直接上传的截图,在jixiaohua的呼吁下,我花了些时间,把这篇大牛的推荐清单编辑成了... 阅读全文
posted @ 2016-09-14 16:53 方志朋的专栏 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the ... 阅读全文
posted @ 2016-09-13 11:02 方志朋的专栏 阅读(123) 评论(0) 推荐(0) 编辑
摘要: NestedScrollView和RecyclerView使用,并设置间距: 效果图如下: 1.NestedScrollView 和RecyclerView嵌套问题(类似ScrollView 和listView)\ 需重写 RecyclerView 的 ... 阅读全文
posted @ 2016-09-07 14:49 方志朋的专栏 阅读(326) 评论(0) 推荐(0) 编辑
摘要: android 圆角图片的实现形式,包括用第三方、也有系统的。比如makeramen:roundedimageview,系统的cardview , glide .fresco 。 compile 'com.android.support:appcompat-... 阅读全文
posted @ 2016-08-19 13:41 方志朋的专栏 阅读(117) 评论(0) 推荐(0) 编辑
摘要: compile 'com.android.support:appcompat-v7:24.0.0' compile 'com.makeramen:roundedimageview:2.2.1' compile 'com.android.supp... 阅读全文
posted @ 2016-08-19 12:11 方志朋的专栏 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1.android 自带闹钟定时任务安卓闹钟可以配合广播来实现(不推荐),系统资源浪费,安卓系统在5.0以后的定时 任务貌似触发时间不准了,因为了为了省电。//获取系统闹钟AlarmManager alarmManager = (AlarmManager) ... 阅读全文
posted @ 2016-07-28 17:16 方志朋的专栏 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 效果图:ObjectAnimator继承自ValueAnimator的,底层的动画实现机制也是基于ValueAnimator来完成的,因此ValueAnimator仍然是整个属性动画当中最核心的一个类。那么既然是继承关系,说明ValueAnimator中可以... 阅读全文
posted @ 2016-07-20 18:44 方志朋的专栏 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 转载请标明出处: http://blog.csdn.net/forezp/article/details/51873137 本文出自方志朋的博客最近在研究android 开发的新控件,包括drawer layout ,NavigationV... 阅读全文
posted @ 2016-07-10 20:18 方志朋的专栏 阅读(123) 评论(0) 推荐(0) 编辑