<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hlglinglong的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/hlglinglong</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; hlglinglong]]></copyright><item><title><![CDATA[博客迁移]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/53738468</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/53738468</guid><author>hlglinglong</author><pubDate>Mon, 19 Dec 2016 13:39:31 +0800</pubDate><description><![CDATA[本人博客已迁移至 
http://w4lle.github.io]]></description><category></category></item><item><title><![CDATA[LRUCache原理及HashMap LinkedHashMap内部实现原理]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/50072697</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/50072697</guid><author>hlglinglong</author><pubDate>Fri, 27 Nov 2015 17:11:18 +0800</pubDate><description><![CDATA[LRUCache HashMap LinkedHashMap内部实现原理]]></description><category></category></item><item><title><![CDATA[Leetcode Longest Palindromic Substring（最长回文字串）]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/49493895</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/49493895</guid><author>hlglinglong</author><pubDate>Thu, 29 Oct 2015 16:58:58 +0800</pubDate><description><![CDATA[Longest Palindromic Substring]]></description><category></category></item><item><title><![CDATA[Android高仿微信微博多图展示]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/46859781</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/46859781</guid><author>hlglinglong</author><pubDate>Mon, 13 Jul 2015 10:55:30 +0800</pubDate><description><![CDATA[Android高仿微信微博九宫格多图展示]]></description><category></category></item><item><title><![CDATA[Android内存泄露抓取工具leakcanary]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/45849859</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/45849859</guid><author>hlglinglong</author><pubDate>Tue, 19 May 2015 21:02:21 +0800</pubDate><description><![CDATA[使用LeakCanary工具自动监测并抓取Android内存泄露]]></description><category></category></item><item><title><![CDATA[使用lint工具优化Android代码]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/45649145</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/45649145</guid><author>hlglinglong</author><pubDate>Mon, 11 May 2015 21:22:46 +0800</pubDate><description><![CDATA[Android lint 工具优化代码，给apk瘦身]]></description><category></category></item><item><title><![CDATA[Android 适配toolbar后windowSoftInputMode="adjustResize" 不生效]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/45485769</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/45485769</guid><author>hlglinglong</author><pubDate>Mon, 04 May 2015 21:30:30 +0800</pubDate><description><![CDATA[Android 适配toolbar后windowSoftInputMode="adjustResize" 不生效]]></description><category></category></item><item><title><![CDATA[Android应用性能优化之使用SparseArray替代HashMap]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/45462773</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/45462773</guid><author>hlglinglong</author><pubDate>Sun, 03 May 2015 23:26:49 +0800</pubDate><description><![CDATA[Android SparseArray代替HashMap提升性能]]></description><category></category></item><item><title><![CDATA[Android 弹簧动画效果]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/45293421</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/45293421</guid><author>hlglinglong</author><pubDate>Sun, 26 Apr 2015 22:43:33 +0800</pubDate><description><![CDATA[一、概述
Rebound 通过胡克定律，实现的一个类似“弹簧”动画效果的第三方工具包，由FaceBook退出，于2013年10月正式发布，旨在解决笨重、缓慢的传统移动网络界面。
先上几张效果图：


             
  

         

特点：
Rebound 可以使你的动画看起来像真实自然，像真实世界物理运动
Rebound 不是一个物理引擎库，但是R]]></description><category></category></item><item><title><![CDATA[Android自定义属性详解]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/45133801</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/45133801</guid><author>hlglinglong</author><pubDate>Sun, 19 Apr 2015 22:43:00 +0800</pubDate><description><![CDATA[1、引言

对于自定义属性，大家肯定都不陌生，遵循以下几步，就可以实现：

自定义一个CustomView(extends View )类编写values/attrs.xml，在其中编写styleable和item等标签元素在布局文件中CustomView使用自定义的属性（注意namespace）在CustomView的构造方法中通过TypedArray获取

ps:如果你对上述几个步]]></description><category></category></item><item><title><![CDATA[Android RecyclerView 的点击事件]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/44981889</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/44981889</guid><author>hlglinglong</author><pubDate>Fri, 10 Apr 2015 22:52:54 +0800</pubDate><description><![CDATA[一、概述
随着Android L版本的发布，RecyclerView已经逐渐地取代了ListView，用来显示较多的数据集，RecyclerView相比ListView在性能上有了大幅度的提升，可以说RecyclerView是ListView的升级版本。]]></description><category></category></item><item><title><![CDATA[Android 横向带有吸附效果的横向拖动控件(效果同纵向下拉刷新ListView)]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/44730941</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/44730941</guid><author>hlglinglong</author><pubDate>Sun, 29 Mar 2015 21:35:06 +0800</pubDate><description><![CDATA[先上一张效果图




中间的progressBar就是我们要做的效果。
一、实现思路
仔细观察不难发现，该拖动view与listview的下拉刷新的效果很类似，手指拖动的时候显示隐藏的view，手指放开自动回弹。只不过区别就是一个横向一个纵向
下拉刷新的实现思路如下：
自定义一个布局继承自LinearLayout，然后在这个布局中加入下拉头和ListView这两个子元素，并让这]]></description><category></category></item><item><title><![CDATA[Android自定义Viewgroup切换View带有吸附效果]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/42687043</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/42687043</guid><author>hlglinglong</author><pubDate>Tue, 13 Jan 2015 22:46:19 +0800</pubDate><description><![CDATA[Android自定义Viewgroup切换View带有吸附效果，防止OOM]]></description><category></category></item><item><title><![CDATA[Android Volley框架支持https请求]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/42553829</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/42553829</guid><author>hlglinglong</author><pubDate>Fri, 09 Jan 2015 13:42:03 +0800</pubDate><description><![CDATA[Android Volley框架支持https请求]]></description><category></category></item><item><title><![CDATA[Android View getX getLeft getTranslationX layoutparams.leftMargin的值]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/42536865</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/42536865</guid><author>hlglinglong</author><pubDate>Fri, 09 Jan 2015 00:04:54 +0800</pubDate><description><![CDATA[Android View getX getLeft getTranslationX layoutparams.leftMargin的值]]></description><category></category></item><item><title><![CDATA[Andorid Volley框架加载图片OOM问题分析]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/42455637</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/42455637</guid><author>hlglinglong</author><pubDate>Tue, 06 Jan 2015 14:53:57 +0800</pubDate><description><![CDATA[Android volley 引起的context 上下文 内存泄露，导致的OOM问题分析解决]]></description><category></category></item><item><title><![CDATA[Android bitmap Config]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/42365397</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/42365397</guid><author>hlglinglong</author><pubDate>Sat, 03 Jan 2015 17:50:00 +0800</pubDate><description><![CDATA[在开发中遇到了一个问题，bitmap的底色为黑色，百思不得其解，后来想到是不是因为生成bitmap时有个Config参数导致的。
代码中写的是Bitmap.Config.RGB_565。
后来改成Bitmap.Config.RGB_8888 后背景色变为透明
确实是因为Config造成的，之前一直都知道这个参数会导致bitmap的精细程度，也就是说数值越大加载到内存中德bitmap就越大同时]]></description><category></category></item><item><title><![CDATA[Mac Android Genymotion unable create virtual device]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/42340905</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/42340905</guid><author>hlglinglong</author><pubDate>Fri, 02 Jan 2015 14:11:52 +0800</pubDate><description><![CDATA[Mac 安装Genymotion 需要安装VirtualBox ，全部安装完后创建genymotion device
点击ADD后不能显示device列表，测试可能是由于VirtualBox的网络设置原因导致genymotion不能连接网络。
VirtualBox网络配置如下
打开VirtualBox 偏好设置--> 网络--> Host Only --> 新建一个网络
配置:


]]></description><category></category></item><item><title><![CDATA[Android简便通用的SimpleBaseAdapter]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/42146201</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/42146201</guid><author>hlglinglong</author><pubDate>Thu, 25 Dec 2014 14:49:18 +0800</pubDate><description><![CDATA[在Android开发中经常用到ListView、GridView等列表，于是Adapter也就比较常用的了， 而实际项目中稍微复杂点的基本都会用到BaseAdapter， 大家都知道继承自BaseAdapter必须要重写getCount(), getItem(), getItemId(), getView()这几个方法， 而且可能为了优化列表的加载还还会经常采用ViewHoder模式， 试想列表多]]></description><category></category></item><item><title><![CDATA[Android高效加载图片，有效避免程序OOM]]></title><link>https://blog.youkuaiyun.com/hlglinglong/article/details/42145749</link><guid>https://blog.youkuaiyun.com/hlglinglong/article/details/42145749</guid><author>hlglinglong</author><pubDate>Thu, 25 Dec 2014 14:18:54 +0800</pubDate><description><![CDATA[我们在编写Android程序的时候经常要用到许多图片，不同图片总是会有不同的形状、不同的大小，但在大多数情况下，这些图片都会大于我们程序所需要的大小。比如说系统图片库里展示的图片大都是用手机摄像头拍出来的，这些图片的分辨率会比我们手机屏幕的分辨率高得多。大家应该知道，我们编写的应用程序都是有一定内存限制的，程序占用了过高的内存就容易出现OOM(OutOfMemory)异常。我们可以通过下面的代码看]]></description><category></category></item></channel></rss>