<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Lottie on 个人记录 | 随心所意，记录点滴</title>
    <link>https://gker.net/tags/lottie/</link>
    <description>Recent content in Lottie on 个人记录 | 随心所意，记录点滴</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sun, 26 Feb 2017 18:39:56 +0800</lastBuildDate>
    <atom:link href="https://gker.net/tags/lottie/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Lottie简介</title>
      <link>https://gker.net/post/10003/</link>
      <pubDate>Sun, 26 Feb 2017 18:39:56 +0800</pubDate>
      <guid>https://gker.net/post/10003/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;7个月前（2016.7）airbnb开源了一款开源动画框架 &lt;strong&gt;&lt;a href=&#34;https://github.com/airbnb/lottie-android&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;lottie&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Lottie&lt;/strong&gt;支持&lt;a href=&#34;https://github.com/airbnb/lottie-android&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Android&lt;/a&gt;、&lt;a href=&#34;https://github.com/airbnb/lottie-ios&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;iOS&lt;/a&gt;、&lt;a href=&#34;https://github.com/airbnb/lottie-react-native&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;ReactNative&lt;/a&gt;三个平台&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Lottie&lt;/strong&gt;官网为&lt;a href=&#34;http://airbnb.design/introducing-lottie/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://airbnb.design/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Lottie&lt;/strong&gt;的作用是把&lt;a href=&#34;https://www.adobe.com/products/aftereffects.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Adobe After Effects&lt;/a&gt;导出的json文件渲染为动画&lt;/li&gt;&#xA;&lt;li&gt;AE导出json时应该使用&lt;a href=&#34;https://github.com/bodymovin/bodymovin&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Bodymovin&lt;/a&gt;插件&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Lottie&lt;/strong&gt;目前支持API 14及以上的系统，早期只支持到API16。&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Lottie&lt;/strong&gt;最大的优势就是美术做好的动画，无需工程师用代码再实现一遍了。其体积又比帧动画或gif小很多，大大解放了工程师的劳动力。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;以下是Lottie性能的官方的说明：&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;如果没有mask和mattes，那么性能和内存非常好，没有bitmap创建，大部分操作都是简单的cavas绘制。&lt;/li&gt;&#xA;&lt;li&gt;如果存在mattes，将会创建2～3个bitmap。bitmap在动画加载到window时被创建，被window删除时回收。所以不宜在RecyclerView中使用包涵mattes或者mask的动画，否则会引起bitmap抖动。除了内存抖动，mattes和mask中必要的bitmap.eraseColor()和canvas.drawBitmap()也会降低动画性能。对于简单的动画，在实际使用时性能不太明显。&lt;/li&gt;&#xA;&lt;li&gt;如果在列表中使用动画，推荐使用缓存LottieAnimationView.setAnimation(String, CacheStrategy) 。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;以下是Lottie官方示例效果：&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/airbnb/lottie-android/blob/master/gifs/Example2.gif&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;p class=&#34;markdown-image&#34;&gt;&#xD;&#xA;  &lt;img src=&#34;https://github.com/airbnb/lottie-android/raw/master/gifs/Example2.gif&#34; alt=&#34;&#34;  /&gt;&#xD;&#xA;&lt;/p&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/airbnb/lottie-android/blob/master/gifs/Example3.gif&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;p class=&#34;markdown-image&#34;&gt;&#xD;&#xA;  &lt;img src=&#34;https://github.com/airbnb/lottie-android/raw/master/gifs/Example3.gif&#34; alt=&#34;&#34;  /&gt;&#xD;&#xA;&lt;/p&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/airbnb/lottie-android/blob/master/gifs/Community%202_3.gif&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;p class=&#34;markdown-image&#34;&gt;&#xD;&#xA;  &lt;img src=&#34;https://github.com/airbnb/lottie-android/raw/master/gifs/Community%202_3.gif&#34; alt=&#34;&#34;  /&gt;&#xD;&#xA;&lt;/p&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/airbnb/lottie-android/blob/master/gifs/Example4.gif&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;p class=&#34;markdown-image&#34;&gt;&#xD;&#xA;  &lt;img src=&#34;https://github.com/airbnb/lottie-android/raw/master/gifs/Example4.gif&#34; alt=&#34;&#34;  /&gt;&#xD;&#xA;&lt;/p&gt;&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>初衷</title>
      <link>https://gker.net/post/10000/</link>
      <pubDate>Wed, 01 Aug 2007 13:51:14 +0800</pubDate>
      <guid>https://gker.net/post/10000/</guid>
      <description>&lt;h1 id=&#34;个人记录网建设初衷&#34;&gt;个人记录网建设初衷 &lt;a href=&#34;#%e4%b8%aa%e4%ba%ba%e8%ae%b0%e5%bd%95%e7%bd%91%e5%bb%ba%e8%ae%be%e5%88%9d%e8%a1%b7&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h1&gt;&lt;ul&gt;&#xA;&lt;li&gt;自2007年毕业工作以来，起初使用notepad记录工作心得。&lt;/li&gt;&#xA;&lt;li&gt;2008年伊始，对比了多家博客，采用百度空间开始记录博客，可惜百度空间于2012年关闭。&lt;/li&gt;&#xA;&lt;li&gt;2012-2017年期间使用印象笔记,可惜其较为封闭，不方便共享于众网友同仁。&lt;/li&gt;&#xA;&lt;li&gt;2017年开始了，鉴于百度空间关闭的前车之鉴，所以自建博客，用以共勉。&lt;/li&gt;&#xA;&lt;li&gt;2020年了，改用hugo，使用静态网站。&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
  </channel>
</rss>
