<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Willy Chang on Medium]]></title>
        <description><![CDATA[Stories by Willy Chang on Medium]]></description>
        <link>https://medium.com/@devwilly?source=rss-dc0b2ecf97fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RpVOT4WKYGkfEAA_63o90w.jpeg</url>
            <title>Stories by Willy Chang on Medium</title>
            <link>https://medium.com/@devwilly?source=rss-dc0b2ecf97fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:04:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devwilly/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[[App Crash] Timberland 官方商城 version 2.28.0]]></title>
            <link>https://medium.com/@devwilly/app-crash-timberland-%E5%AE%98%E6%96%B9%E5%95%86%E5%9F%8E-version-2-28-0-e58c68aa0315?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e58c68aa0315</guid>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[unique-tester]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Sun, 29 Apr 2018 16:41:14 GMT</pubDate>
            <atom:updated>2018-04-29T16:41:14.682Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*2hIOuV28cBb4WqO7.jpg" /><figcaption><a href="http://news.softpedia.com/news/microsoft-will-give-you-up-to-100-000-for-the-bugs-you-find-in-its-software-488716.shtml">http://news.softpedia.com/news/microsoft-will-give-you-up-to-100-000-for-the-bugs-you-find-in-its-software-488716.shtml</a></figcaption></figure><h3>裝置資訊</h3><p>手機型號：Google Pixel2</p><p>Android 版本：8.1.0</p><h3>App資訊</h3><p>App name：Timberland 官方商城</p><p>App version：2.28.0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OxFxa1lCqwAiF5rAtZSfog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ckIODtdHpvAyXppfauE6gw.png" /></figure><h3>Crash 情境</h3><p>以下兩種狀況都會出現Crash</p><ul><li>舊版升級：<strong>2.27.8</strong> 升級 <strong>2.28.0</strong></li><li>直接裝新版：<strong>2.28.0</strong></li></ul><p>（1）進入首頁</p><p>（2）將 Permission 從 開啟狀態 調成 關閉狀態</p><p>（3）再回App，必發Crash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jIxd4NHWb5W9rLzTTPuy2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fL3bNiO5Ae7jnftk1feyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S99RAUvbrMJ-wVn2Qi79kw.png" /></figure><h3>影片支援</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*kF7UPshEgE_CewUJ2IWKGQ.gif" /></figure><h3>Conclusion</h3><p>會發現這個問題，主要是記錄 <a href="http://bit.ly/2HWEV7B">一個關於Timberland一年後的故事Part4</a>時，大略知道 Run Time Permission 會有一些狀態上面的問題，所以特別去嘗試一些情境，然後就中獎了…</p><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e58c68aa0315" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[一個關於Timberland一年後的故事Part4]]></title>
            <link>https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BCtimberland%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8Bpart4-728ef3377ddb?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/728ef3377ddb</guid>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[timberland]]></category>
            <category><![CDATA[踢不爛]]></category>
            <category><![CDATA[crash]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Sun, 29 Apr 2018 16:14:55 GMT</pubDate>
            <atom:updated>2018-04-29T16:14:55.255Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TOIG0WhbDdrmaw_x.jpg" /><figcaption><a href="http://blog.myroomabroad.com/story-room-abroad/">http://blog.myroomabroad.com/story-room-abroad/</a></figcaption></figure><p>關於這系列的文章，這應該是最後一篇了，最主要的原因是有更讓我感興趣的事情，加上故事內容沒有我預期的精采，所以就暫時拋下它啦!!</p><p>若想知道Timberland過往的成長故事，可以參考：<a href="https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BC%E8%B8%A2%E4%B8%8D%E7%88%9B%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8B-3f4144937c17">PART1</a>、<a href="https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BCtimberland%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8Bpart2-c0fd2d6da2d8">PART2</a>、<a href="http://bit.ly/2IfTMql">PART3</a></p><h3>裝置資訊</h3><p>手機型號：Google Pixel2</p><p>Android 版本：8.1.0</p><p>原始版本：<strong>2.27.8</strong></p><p>升級版本：<strong>2.28.0</strong></p><h3>App資訊</h3><h4>舊版本資訊</h4><ul><li>更新日期：2018年3月27日</li><li>更新大小：<strong>8.36 MB</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHouELQe0QQo2snt2-Fk1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M-nDx7VTEko2RgDSNUJ1yw.png" /></figure><h4>新版本資訊</h4><ul><li>更新日期：2018年4月17日</li><li>更新大小：<strong>8.31 MB</strong></li><li>更新內容</li></ul><blockquote>遊絲飛絮兩依依，正當穀雨弄晴時。<br>時間過得飛快，一轉眼就來到春季的最後一個節氣。春去夏至，近來連綿的雨日，是否也滋潤了你的一天呢？<br>感謝你持續的支持，這次我們的 App 又升級進化啦！除了修復一些錯誤外，我們也偷偷地增加了一些小功能，希望能讓你瀏覽起來更順、買東西更方便，也希望你會喜歡唷！</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxcpjWAZDAO2RtBmGSPf6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ur2-IADj3aO9ypp9pBBSzA.png" /></figure><h3>2.27.8 v.s. 2.28.0 版本差異為何？</h3><h4>新版本加入了Run Time Permission</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E4DPVpYEntpU7ng16kQVMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PRuZ6RSPZUc7WwK_U5i5Bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7NKBXAJdiYBdMnkol7HPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5NrR8w2e4yfULz01_-4sQ.png" /></figure><h4>首頁Toolbar Title Button</h4><p>左圖 (2.27.8)：Toolbar Title 旁邊有icon</p><p>右圖 (2.28.0)：Toolbar Title <strong>icon消失 ，視覺畫面比前一版小了許多</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*upHC83BTIBPj5PTFQO1j5Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZHe0AdXhy7Zg84Hu9bqIA.png" /></figure><h4>商品小圖加入滑動功能</h4><p>左圖 (2.27.8)：商品只會顯示一張圖片</p><p>右圖 (2.28.0)：若商品有多張圖片，可在商品圖上進行滑動</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YsjHbseBX8ht1z8DmxNuNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2qp5LnxIi1N6DMt4w5gWEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*HAzdDRIoR6_my-g19ORhkA.gif" /></figure><h4>門市資訊</h4><p>左圖 (2.27.8)：舊版列表頁</p><p>右圖 (2.28.0)：新版列表頁加入了<strong>門市自取 、</strong><strong>可刷卡 、</strong><strong>Wi-Fi</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FksbNTysczPc1LvtIuIATw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jg2jsvNQpunm4244jI5G5g.png" /></figure><h3>彩蛋</h3><h4>UI Animation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*YaJC-mohQlVUos15XeK9uw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*IQniJGWKIQy5QpOLaxewtA.gif" /></figure><h4>Run Time Permission Crash</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*kF7UPshEgE_CewUJ2IWKGQ.gif" /></figure><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=728ef3377ddb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[App Crash] 超級商城 version 1.20.1]]></title>
            <link>https://medium.com/@devwilly/app-crash-%E8%B6%85%E7%B4%9A%E5%95%86%E5%9F%8E-version-1-20-1-d2e3832327e4?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2e3832327e4</guid>
            <category><![CDATA[unique-tester]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Wed, 18 Apr 2018 13:51:40 GMT</pubDate>
            <atom:updated>2018-04-18T14:05:41.444Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*Mfz7T8a6OXogycn6EEay0A.jpeg" /><figcaption><a href="http://news.softpedia.com/news/microsoft-will-give-you-up-to-100-000-for-the-bugs-you-find-in-its-software-488716.shtml">http://news.softpedia.com/news/microsoft-will-give-you-up-to-100-000-for-the-bugs-you-find-in-its-software-488716.shtml</a></figcaption></figure><h3>裝置資訊</h3><p>手機型號：Google Pixel2</p><p>Android 版本：8.1.0</p><h3>App資訊</h3><p>App name：Yahoo奇摩超級商城 －行動購物推薦，好康商品天天優惠</p><p>App version：1.20.1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KXoyL3wm8MtbnbVxEHyiVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IM3cgXPM4TcfYUVLXT1meg.png" /></figure><h3>Crash 情境</h3><p>點擊 任意<strong>已售完</strong> 商品 的 <strong>點我看相似</strong> 按鈕 就會產生Crash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-r8T51RIGwT6YwDgShuWyg.png" /></figure><h3>影片支援</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*LnAR4tYnUYoh8HnRk4WGWg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*eZBuW6MMkieoqEbOI030dA.gif" /></figure><h3>Conclusion</h3><p>找商品時無意間發現的並嘗試尋找必發的步驟，目前線上已經推出1.20.2版本，但看起來還是會發生crash。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xf83ngNRDi3YVn8pxZQ1_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGOxfxepAC1d6hPZA-tShQ.png" /></figure><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2e3832327e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[一個關於Timberland一年後的故事Part3]]></title>
            <link>https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BCtimberland%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8Bpart3-e4711c7badbc?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4711c7badbc</guid>
            <category><![CDATA[timberland]]></category>
            <category><![CDATA[踢不爛]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[growing-up]]></category>
            <category><![CDATA[apps]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Thu, 29 Mar 2018 12:20:45 GMT</pubDate>
            <atom:updated>2018-03-29T12:20:45.395Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Px_lrv6IKIZut50W-ZTZvA.jpeg" /><figcaption>來源：<a href="https://associationsnow.com/2015/05/story-time-member-engagement-gone-awry/">https://associationsnow.com/2015/05/story-time-member-engagement-gone-awry/</a></figcaption></figure><p>可參考Timberland過往的成長故事：<a href="https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BC%E8%B8%A2%E4%B8%8D%E7%88%9B%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8B-3f4144937c17">PART1</a>、<a href="https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BCtimberland%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8Bpart2-c0fd2d6da2d8">PART2</a></p><h3>裝置資訊</h3><p>手機型號：Google Pixel2</p><p>Android 版本：8.1.0</p><p>原始版本：<strong>2.26</strong></p><p>升級版本：<strong>2.27.8</strong></p><h3>App資訊</h3><h4>舊版本資訊</h4><ul><li>更新日期：2018年1月30日</li><li>更新大小：<strong>6.49 MB</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*OYNeyIxjTR_jQPmzErzGvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*WNCEQUvTWafoxmk5VjREYQ.png" /></figure><h4>新版本資訊</h4><ul><li>更新日期：2018年3月27日</li><li>更新大小：<strong>8.36 MB</strong></li><li>更新內容</li></ul><blockquote>春季悄悄地來了，天氣回溫正是換季購物的大好時機。說到購物，當然是用APP購物最方便啦! 為了讓各位買的開心，我們的工程師可是挑燈夜戰，努力更新APP呢！新版APP不但畫面更優美，操作更便利，更完善的功能也能讓各位有更順暢的血拚體驗！事不宜遲，趕快開APP購物去! 還有~如果你/妳喜歡我們的APP，懇請給我們5顆星！我們會持續努力優化的！！</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHouELQe0QQo2snt2-Fk1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M-nDx7VTEko2RgDSNUJ1yw.png" /></figure><h3>2.26 v.s. 2.27.8 版本差異為何？</h3><h4>折價券專區</h4><p>左圖 (2.26)：Toolbar 右上角沒有icon</p><p>右圖 (2.27.8)：Toolbar 右上角多了<strong>折價券紀錄icon</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AymSnCE1vYo7qSbv8842Gg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KJuGCsFNZUYIPdCbvKwhxA.png" /></figure><h4>折價券紀錄</h4><p>左圖 (2.27.8)：折價券專區</p><p>右圖 (2.27.8)：新的折價券紀錄頁面</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7B2Yolkb-ScGG7ye3KApeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpjxXM_e7_AIc-MdHvPJdw.png" /></figure><h4>登入頁</h4><p>左圖 (2.26)：Facebook登入按鈕使用較簡單的文字設計</p><p>右圖 (2.27.8)：Facebook<strong>登入按鈕換新圖</strong>且<strong>間距略有調整</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1jpETKUjWu1w5s8f1E0ITw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Hr4HMwjp2dt9_2x8hirBA.png" /></figure><h4><strong>加入Line Pay新功能</strong></h4><p>左圖 (2.26)：舊版商品頁資訊</p><p>右圖 (2.27.8)：多了LINE Pay icon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_aQd2k7x3Hv-3R23OVOMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhwXyB3-aNF8jzDiowDO4w.png" /></figure><h4>付款運送方式</h4><p>左圖 (2.26)：舊版付款運送方式</p><p>右圖 (2.27.8)：付款方式多了LINE Pay簡介</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bxv80G7ItOWljGkO9xeqEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJyayl-vNLrXdCc52nBm7A.png" /></figure><h4>購物車 — 付款與運送方式</h4><p>左圖 (2.26)：舊版有提示訊息「購物車內商品僅可使用下列付款….」</p><p>右圖 (2.27.8)：<strong>提示訊息已被移除</strong>且<strong>新增LINE Pay付款方式</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eiqYzP5QSZb0c-EXuYuNgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chLPwNgR3kXXBBefjaGO-w.png" /></figure><h3>Conclusion</h3><p>此次的版本更新最大的差異應該是加入了<strong>「LINE Pay」</strong>的付款功能，以及新增了「折價券紀錄」頁面，其App Size略比上一個版本再大一些。</p><p>2.26版本：<strong>6.49 MB</strong></p><p>2.27.8版本：<strong>8.36 MB</strong></p><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4711c7badbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[隱私權政策]]></title>
            <link>https://medium.com/@devwilly/%E9%9A%B1%E7%A7%81%E6%AC%8A%E6%94%BF%E7%AD%96-40d1cdaa5789?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/40d1cdaa5789</guid>
            <category><![CDATA[template]]></category>
            <category><![CDATA[隱私權政策]]></category>
            <category><![CDATA[google-play]]></category>
            <category><![CDATA[policy]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Sat, 10 Mar 2018 11:08:43 GMT</pubDate>
            <atom:updated>2018-03-10T11:08:43.675Z</atom:updated>
            <content:encoded><![CDATA[<p>非常歡迎您光臨「Willy Chang 網站」（以下簡稱本網站），為了讓您能夠安心的使用本網站的各項服務與資訊，特此向您說明本網站的隱私權保護政策，以保障您的權益，請您詳閱下列內容：</p><h3>一、隱私權保護政策的適用範圍</h3><p>隱私權保護政策內容，包括本網站如何處理在您使用網站服務時收集到的個人識別資料。隱私權保護政策不適用於本網站以外的相關連結網站，也不適用於非本網站所委託或參與管理的人員。</p><h3>二、個人資料的蒐集、處理及利用方式</h3><ul><li>當您造訪本網站或使用本網站所提供之功能服務時，我們將視該服務功能性質，請您提供必要的個人資料，並在該特定目的範圍內處理及利用您的個人資料；非經您書面同意，本網站不會將個人資料用於其他用途。</li><li>本網站在您使用服務信箱、問卷調查等互動性功能時，會保留您所提供的姓名、電子郵件地址、聯絡方式及使用時間等。</li><li>於一般瀏覽時，伺服器會自行記錄相關行徑，包括您使用連線設備的IP位址、使用時間、使用的瀏覽器、瀏覽及點選資料記錄等，做為我們增進網站服務的參考依據，此記錄為內部應用，決不對外公佈。</li><li>為提供精確的服務，我們會將收集的問卷調查內容進行統計與分析，分析結果之統計數據或說明文字呈現，除供內部研究外，我們會視需要公佈統計數據及說明文字，但不涉及特定個人之資料。</li></ul><h3>三、資料之保護</h3><ul><li>本網站主機均設有防火牆、防毒系統等相關的各項資訊安全設備及必要的安全防護措施，加以保護網站及您的個人資料採用嚴格的保護措施，只由經過授權的人員才能接觸您的個人資料，相關處理人員皆簽有保密合約，如有違反保密義務者，將會受到相關的法律處分。</li><li>如因業務需要有必要委託其他單位提供服務時，本網站亦會嚴格要求其遵守保密義務，並且採取必要檢查程序以確定其將確實遵守。</li></ul><h3>四、網站對外的相關連結</h3><p>本網站的網頁提供其他網站的網路連結，您也可經由本網站所提供的連結，點選進入其他網站。但該連結網站不適用本網站的隱私權保護政策，您必須參考該連結網站中的隱私權保護政策。</p><h3>五、與第三人共用個人資料之政策</h3><p>本網站絕不會提供、交換、出租或出售任何您的個人資料給其他個人、團體、私人企業或公務機關，但有法律依據或合約義務者，不在此限。</p><p>前項但書之情形包括不限於：</p><ul><li>經由您書面同意。</li><li>法律明文規定。</li><li>為免除您生命、身體、自由或財產上之危險。</li><li>與公務機關或學術研究機構合作，基於公共利益為統計或學術研究而有必要，且資料經過提供者處理或蒐集者依其揭露方式無從識別特定之當事人。</li><li>當您在網站的行為，違反服務條款或可能損害或妨礙網站與其他使用者權益或導致任何人遭受損害時，經網站管理單位研析揭露您的個人資料是為了辨識、聯絡或採取法律行動所必要者。</li><li>有利於您的權益。</li><li>本網站委託廠商協助蒐集、處理或利用您的個人資料時，將對委外廠商或個人善盡監督管理之責。</li></ul><h3>六、Cookie之使用</h3><p>為了提供您最佳的服務，本網站會在您的電腦中放置並取用我們的Cookie，若您不願接受Cookie的寫入，您可在您使用的瀏覽器功能項中設定隱私權等級為高，即可拒絕Cookie的寫入，但可能會導至網站某些功能無法正常執行 。</p><h3>七、隱私權保護政策之修正</h3><p>本網站隱私權保護政策將因應需求隨時進行修正，修正後的條款將刊登於網站上。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40d1cdaa5789" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[北海道自助旅行規劃篇]]></title>
            <link>https://medium.com/@devwilly/%E5%8C%97%E6%B5%B7%E9%81%93%E8%87%AA%E5%8A%A9%E6%97%85%E8%A1%8C%E8%A6%8F%E5%8A%83%E7%AF%87-23d07528c01f?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/23d07528c01f</guid>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[backpacking]]></category>
            <category><![CDATA[自助旅行]]></category>
            <category><![CDATA[planning]]></category>
            <category><![CDATA[hokkaido]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Tue, 06 Mar 2018 06:45:29 GMT</pubDate>
            <atom:updated>2018-03-06T06:45:29.452Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKEJKrY9wcmzoKgniPGlZQ.jpeg" /></figure><p>此趟旅行會成團的關鍵是某天看了節目介紹下雪的北海道有多美，海鮮便宜又好吃，其中最讓我好奇的事情是許多人因<strong>路面結冰摔斷手腳</strong>……。</p><p>接著開始尋找有興趣一起出國的夥伴們，討論<strong>出發時間、</strong><strong>旅行天數</strong>、<strong>公司請假天數 、</strong><strong>預算多少 、</strong><strong>路線(函館進-札幌出 ｜ 札幌進出)</strong>，<strong> 整趟規劃大約花了我三個月時間，以下內容純分享不代表對每個人都適用。</strong></p><h3>初步規劃</h3><p>旅行時間二選一：</p><ul><li><strong>[7天6夜][卡過年][函館進-札幌出]</strong> 2018.02.18 ~ 2018.02.24</li><li><strong>[6天5夜][札幌進出]</strong> 2018.02.22 ~ 2018.02.27</li></ul><p>由於預算有限又要維持旅行品質，這讓我花了許多時間在尋找<strong>高CP值</strong>的方案，重點如下：</p><ul><li>廉價航空</li><li>直接官網訂住宿（通常比訂房網還便宜？）</li><li>交通票券</li><li>租Wifi機</li></ul><h4>廉價航空</h4><p>直飛北海道的廉航只有<a href="http://www.tigerairtw.com/zh-tw/"><strong>台灣虎航</strong></a><strong>、</strong><a href="https://www.flyscoot.com/zhtw"><strong>酷航</strong></a><strong>、</strong><a href="http://www.flypeach.com/pc/tw"><strong>樂桃航空</strong></a><strong> 可以選擇，若想從函館進的話只有虎航，不然就是轉機，由於轉機太花時間因此放棄這個選項。</strong></p><p>函館進 — 札幌出</p><ul><li>台灣 — 函館（虎航）：每週一三五日飛</li></ul><p><a href="http://www.tigerairtw.com/zh-tw/">台灣虎航 Tigerair Taiwan│台灣首家平價航空，東京、大阪、北海道、沖繩、釜山、曼谷超值機票</a></p><ul><li>札幌 — 台灣（酷航）：每週二四六飛</li></ul><p><a href="https://www.flyscoot.com/zhtw">低成本航空酷航 機票預訂</a></p><ul><li>札幌 — 台灣（樂桃）：每週三五日飛</li></ul><p><a href="http://www.flypeach.com/pc/tw/lm/st/schedules">航班時刻表</a></p><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//www.flypeach.com/application/files/1015/1790/4633/KOKUSAI_TW_20180325_124.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b5e728d3ee9f28c747f9bf7a373c142/href">https://medium.com/media/2b5e728d3ee9f28c747f9bf7a373c142/href</a></iframe><h3>住宿</h3><p>過往的經驗直接在飯店官網訂是最便宜的而且還可選擇到<strong>當地付錢</strong></p><blockquote>如果不住請記得取消訂房，不然以後可能就沒有這種付款方式了</blockquote><p>首先從訂房網尋找合適的住宿地點，然後再到官網比較價錢，以下兩點列為優先考量：</p><ul><li>連續住宿優惠</li><li>交通方便（下雪帶著行李移動很麻煩）</li></ul><p>最後先訂了這幾間，等待後續討論後再將不要的取消（<strong>切記一定要取消</strong>）</p><ul><li>La’gent Stay SAPPORO-ODORI</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWy2z1tyekC767ymRJq_Yw.jpeg" /><figcaption>來源：<a href="https://www.lagent.jp/sapporo-odori/">https://www.lagent.jp/sapporo-odori/</a></figcaption></figure><p><a href="https://www.lagent.jp/sapporo-odori/">【公式サイト】ラ・ジェント・ステイ札幌大通</a></p><ul><li>karaksa hotel 札幌（2018.01.22 開幕）</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*sfeGL-8-ocieXOpt4qEJNQ.jpeg" /><figcaption>來源：<a href="https://karaksahotels.com/tc/sapporo/">https://karaksahotels.com/tc/sapporo/</a></figcaption></figure><p><a href="https://karaksahotels.com/tc/sapporo/">karaksa hotel 札幌 | 是可步行前往札幌市最大繁華街-薄野、大通公園，面臨狸小路商店街交通極為便利的飯店</a></p><ul><li>Richmond Hotel 札幌</li></ul><p><a href="https://richmondhotel.jp/sapporo-odori/">リッチモンドホテル 札幌大通 | 公式サイト</a></p><h3><strong>交通票券</strong></h3><p>對於國外觀光客來說票券算是最省錢的方式，但日本票券種類超多，該如何選擇呢？</p><p>首先必須<strong>初估旅遊路線</strong>才有辦法挑選合適的票券，這邊就不多做說明了，因為每個人的路線不一定相同，以JR為例，可參考下面內容</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*_j7OlWnHE0Ii3NnZl6w9BQ.png" /></figure><p>此次旅行的路線可能有</p><p><a href="http://www2.jrhokkaido.co.jp/global/chinese/ticket/otoku/index.html">JR北海道旅客鐵路公司 官方網站</a></p><ul><li>函館 — 札幌</li><li>札幌 — 小樽</li><li>札幌 — 旭川</li><li>札幌市區</li></ul><p>札幌地鐵一日券：</p><p><a href="http://www.city.sapporo.jp/st/josyaken/card.html#oneday">乗車券のご案内</a></p><ul><li>非假日：830日幣</li><li>逢六/日/假日：520日幣</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*gE1pVlvDyMnqNeTa37Fm6g.png" /><figcaption>札幌地鐵地圖：<a href="http://www.city.sapporo.jp/st/chinese/documents/rosenzu_ch.pdf">http://www.city.sapporo.jp/st/chinese/documents/rosenzu_ch.pdf</a></figcaption></figure><p>札幌地鐵區間票價</p><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//www.city.sapporo.jp/st/chinese/documents/fare_information_ch2.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd0c396c06b84fc013124a4a036a90b8/href">https://medium.com/media/cd0c396c06b84fc013124a4a036a90b8/href</a></iframe><p>札幌路面電車：</p><p><a href="http://www.city.sapporo.jp/st/josyaken/card.html#dosanko">乗車券のご案内</a></p><ul><li>單趟票價：200日幣</li><li>外圈（<strong>外回り</strong>）走的是順時鐘方向</li><li>內圈（<strong>內回り</strong>）走的則是逆時鐘方向</li><li>只有逢六/日/假日/年末年始(12月29日~1月3日)可利用的市營電車一日卡，票價為360日幣</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*PojJgk9AO9YCA827r_98Bg.png" /></figure><p>札幌路面電車＋地下鐵一日券紀念套票</p><ul><li>路面電車一日券</li><li>地鐵一日券</li><li>もいわ山口纜車來回優惠價1360日幣/成人（原價1700日幣）</li></ul><p><a href="http://hokkaido.letsgojp.com/archives/289800/">【速報】只要900日幣！札幌路面電車＋地下鐵一日券套票限量發售中</a></p><h3>租Wifi機</h3><p>我們每天會將相機照片上傳到雲端，所以需要不限流量與速度的網路，依過往的經驗選擇<a href="https://www.ivideo.com.tw/">ivideo</a> <a href="https://www.ivideo.com.tw/wifi/47723">日本WiFi AU 4G LTE 上網吃到飽</a>，但這次用起來沒有以前那麼順暢，有時候訊號還會斷。</p><ul><li><a href="https://www.ivideo.com.tw/">獨家!近150國上網吃到飽! iVideo日本上網、出國上網WiFi分享器、挑戰業界最低價</a></li><li><a href="https://www.ivideo.com.tw/wifi/47723">【超強電力】日本WiFi AU 4G LTE 上網吃到飽</a></li></ul><h3>行程內容</h3><p>基本上所有內容皆可拆分讓大家都負責一些範圍，但同整時可能就會遇到一些問題，所以我個人比較喜歡全包的處理方式，不過這樣的作法就會花掉你非常多的時間。</p><p>每個人都有不同的行程規劃方式，個人偏愛Google Map圖層編輯加上離線地圖，並將一些重要的資訊直接標註起來。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OEFOOiPekon2hXZ1TBHChg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5wLz09Uzu0TSxcpEDMPcQ.png" /></figure><h3>Resource</h3><ul><li><a href="https://www.taoyuan-airport.com/chinese/store3_1/1109">桃園國際機場</a></li><li><a href="http://www.new-chitose-airport.jp/tw/access/jr/timejr/">JR 時刻表-交通資訊 | 新千歲機場航站大廈</a></li><li><a href="http://www.city.sapporo.jp/st/shiden/shiden_loop.html">市電のループ化開業に関するお知らせ</a></li><li><a href="http://www.hakotaxi.co.jp/shuttlebus/index.shtml">【シャトルバス(函館帝産バス) -函館空港〜JR函館駅-】待ち時間なしで移動が楽 :: 函館観光なら函館タクシー</a></li><li><a href="https://nicklee.tw/?p=416">進入日本必填的入境記錄卡 及 申告單</a></li></ul><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23d07528c01f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[一個關於Timberland一年後的故事Part2]]></title>
            <link>https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BCtimberland%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8Bpart2-c0fd2d6da2d8?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0fd2d6da2d8</guid>
            <category><![CDATA[timberland]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[踢不爛]]></category>
            <category><![CDATA[growing-up]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Mon, 05 Feb 2018 09:32:12 GMT</pubDate>
            <atom:updated>2018-02-05T09:35:35.222Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_21f5f76Vy2j-8KOtPwaUw.png" /><figcaption>來源：<a href="https://www.breezedevelopment.co.uk/7-ways-tell-small-business-story-online/">https://www.breezedevelopment.co.uk/7-ways-tell-small-business-story-online/</a></figcaption></figure><p>延續<a href="https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BC%E8%B8%A2%E4%B8%8D%E7%88%9B%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8B-3f4144937c17">上一篇</a>的內容，繼續記錄 Timberland的成長故事</p><h3>裝置資訊</h3><p>手機型號：Google Pixel2</p><p>Android 版本：8.0.0</p><p>原始版本：<strong>2.25</strong></p><p>升級版本：<strong>2.26</strong></p><h3>App資訊</h3><h4>舊版本資訊</h4><ul><li>更新日期：2018年1月4日</li><li>更新大小：<strong>5.29 MB</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZCBh_af4qupLiA45igK2Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iLWQC5yjhB_HNlBS_YCjvQ.png" /><figcaption>2.25 版本資訊</figcaption></figure><h4>新版本資訊</h4><ul><li>更新日期：2018年1月30日</li><li>更新大小：<strong>6.49 MB</strong></li><li>更新內容：</li></ul><blockquote>新功能<br>寒流一波接一波，窩在被窩不想出門，這時不划手機血拚更待何時&gt;&lt;<br>這次更新對使用者介面做了一些調整，讓購物流程更順暢囉。鄉親們，Let’s go shopping~</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uoz4z39n754d3fXCz-syIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TnaeYc7NbEx0BHuY0gtflg.png" /></figure><h3>2.25 v.s. 2.26 版本差異為何？</h3><h4>商品頁</h4><p>左圖：(2.25) 點擊 Toolbar Title 的圖片無作用</p><p>右圖：(2.26) 點擊 Toolbar Title 的圖片會另開大圖頁面</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*2CwLuGz9vJ6IMkZQHUK11Q.gif" /><figcaption>新版2.26 商品縮圖點擊效果</figcaption></figure><h4>會員權益說明</h4><p>左圖：(2.25) 原本樣式</p><p>右圖：(2.26) 頁面字體縮小</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1Ji3lUMOZkM0gbyI0VKMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m-azPRTR8RmF5j800By9wA.png" /></figure><h4>商店介紹/客服 — 購物說明</h4><p>左圖：(2.25) 原本樣式</p><p>右圖：(2.26) 頁面字體縮小</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_Apwd58p0chJpUkp6eeBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HX_ukw9U7UAtLquI92vIEw.png" /></figure><h3>Conclusion</h3><p>此次的版本更新雖然從畫面及功能看不出內容有何差異，也有可能是某些功能還沒開始使用，最大的差異應該是App Size 突然變大許多。</p><p>2.25版本：<strong>5.29 MB</strong></p><p>2.26版本：<strong>6.49 MB</strong></p><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0fd2d6da2d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to implement android run time permissions ?]]></title>
            <link>https://medium.com/@devwilly/how-to-implement-android-run-time-permissions-e1627d169a3c?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1627d169a3c</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[permission]]></category>
            <category><![CDATA[run-time-permission]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Tue, 23 Jan 2018 10:12:34 GMT</pubDate>
            <atom:updated>2018-01-23T10:13:49.702Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FiZqDdvhTZj0%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DiZqDdvhTZj0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FiZqDdvhTZj0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/65a85bd895b447c8c1641757f0610ea1/href">https://medium.com/media/65a85bd895b447c8c1641757f0610ea1/href</a></iframe><p>當 Android 6.0 推出後，官方對於應用程式權限提出了「<a href="https://developer.android.com/training/permissions/requesting.html?hl=zh-tw#java">Requesting Permissions at Run Time</a>」新機制，其手機安裝應用程式時差異性為</p><blockquote>Android 6.0 ( API 23 ↓)：安裝時會直接要求全部的權限。</blockquote><blockquote>Android 6.0 ( API 23 ↑)：權限分為「一般權限」與「危險權限」兩種類型</blockquote><p>當應用程式開發時，若使用<strong>targetSdkVersion </strong>版本<strong>23</strong>或<strong>更高</strong>時，此時就需針對 Android 6.0 以上的手機進行<strong>動態</strong>「危險權限」的處理 。</p><p>如果想知道你使用的權限是否被歸於<strong>Dangerous Permissions</strong>，可參考下方</p><p><a href="https://developer.android.com/guide/topics/permissions/requesting.html#normal-dangerous">Requesting Permissions | Android Developers</a></p><h3>Implement run time permissions</h3><p>此範例將針對「單一」或「多個」權限進行實作與情境說明</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PIsN_4bk_jdievI0J9_1Tg.png" /><figcaption>參考：<a href="https://material.io/guidelines/patterns/permissions.html">https://material.io/guidelines/patterns/permissions.html</a></figcaption></figure><h4>Check targetSdkVersion</h4><p>當手機版本高於 Android 6.0 且應用程式targetSdkVersion 23以上時需要針對「<strong>Dangerous Permissions</strong>」進行處理。</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a46ab8111e8833dc5213b86efcf2022c/href">https://medium.com/media/a46ab8111e8833dc5213b86efcf2022c/href</a></iframe><h4>Add Permissions to the Manifest</h4><p>將應用程式內需使用的權限加入<strong>AndroidManifest.xml </strong>中，若你加入的權限屬於「Normal Permissions」就無需特別處理它們。</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3cb0b959b3914cf455000651774f58e5/href">https://medium.com/media/3cb0b959b3914cf455000651774f58e5/href</a></iframe><h4>Check For Permissions</h4><p>確認應用程式內<strong>需要相對應權限的頁面</strong>是否已有權限，當功能被啟動時都需要檢查，因為<strong><em>權限可能被使用者從「應用程式資訊」中關閉</em></strong>。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*Sge5vfgTbRUWD4s5s119cg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*cSY9gmP8lUfzLudZuKAfww.png" /></figure><ul><li>檢查使用者是否已經取得權限</li></ul><pre>// Assume thisActivity is the current activity<br>int permissionCheck = ContextCompat.checkSelfPermission(thisActivity,<br>        Manifest.permission.WRITE_EXTERNAL_STORAGE); </pre><p>checkSelfPermission(…)只有兩種狀況（0 or -1），如下</p><blockquote>PackageManager.PERMISSION_GRANTED：已獲取權限</blockquote><blockquote>PackageManager.PERMISSION_DENIED：無權限</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*-KmsAaUFq6WvR9EtBd5UDA.png" /></figure><ul><li>安裝完後，第一次開始App時會提示開啟權限視窗</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*GbF_ORiYzQ_YYEUOlP7CKw.png" /></figure><ul><li>使用者點擊「允許」就能正常使用功能，若使用者點擊<strong>「拒絕」</strong> 會怎麼樣呢？</li></ul><blockquote>當下次再使用到此功能時，系統會再跳出索取權限之提視窗<br><strong>（此時的UI會與第一次不同）</strong></blockquote><ul><li>若使用者勾選<strong>「不要再詢問」</strong>並<strong>「拒絕」 </strong>權限，那麼之後就<strong><em>不會再出現提示視窗</em></strong><em>。</em></li></ul><p>官方當初設計的想法應該是使用者都勾選<strong>「不要再詢問」</strong>，那就表示<strong>真的不需要這些權限</strong>，因此沒有針對重新開啟權限進行API的設計吧!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*XHm43OnnbQH3qpbmaKIZTA.png" /></figure><p>那開發者要如何讓使用者再次開啟相關權限呢？</p><ul><li>透過 <strong>startActivityForResult</strong> 開啟「應用程式資訊」</li></ul><pre>Intent intent = new Intent(<br>        <strong>Settings.ACTION_APPLICATION_DETAILS_SETTINGS</strong>,<br>        Uri.fromParts(&quot;package&quot;, getPackageName(), null));<br><strong>startActivityForResult</strong>(intent, RESULT_CODE_SETTING_PAGE);</pre><ul><li>從「應用程式資訊」回到App頁面時請使用 <strong>onActivityResult(int requestCode, …) </strong>做後續的動作</li></ul><pre>@Override<br>protected void <strong>onActivityResult</strong>(int requestCode, int resultCode, Intent data) {<br>    super.onActivityResult(requestCode, resultCode, data);<br><br>    if (<strong>requestCode == REQUEST_CODE_SETTING_PAGE</strong>) {<br>        ...<br>    }<br>}</pre><h4>Request Permissions</h4><ul><li>請求權限</li></ul><p>permissions：request permission’s string array</p><p>requestCode：請求權限，後續追蹤的request code<br>（參考：<a href="https://developer.android.com/reference/android/support/v4/app/ActivityCompat.OnRequestPermissionsResultCallback.html#onRequestPermissionsResult(int,%20java.lang.String[],%20int[])">onRequestPermissionsResult</a>）</p><pre>ActivityCompat.requestPermissions(<br>        currentActivity,<br>        permissions,<br>        requestCode);</pre><h4>Handle the permissions request response</h4><ul><li>使用者「允許」或「拒絕」權限後的處理方式</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/66ebc2160b62dd2c980c2c71bde15211/href">https://medium.com/media/66ebc2160b62dd2c980c2c71bde15211/href</a></iframe><h4>Check For Multiple Permissions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*GpCwmn70eY0SOEvGbwGCdg.gif" /></figure><ul><li>如果想要一次處理多個權限，該如何處理呢？</li></ul><p>permissions：將所有需要處理的權限都丟進去</p><pre>ActivityCompat.requestPermissions(<br>        currentActivity,<br>        <strong>permissions</strong>,<br>        requestCode);</pre><p>處理方法如下：</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eef4b141eeb84c48e49d919b17d07f33/href">https://medium.com/media/eef4b141eeb84c48e49d919b17d07f33/href</a></iframe><h3>Conclusion</h3><p><a href="https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html">Improving app security and performance on Google Play for years to come</a></p><p>2018下半年開始，Google 將會開始強制要求targetSdkVersion版本，首當其衝當然是run time permission的問題啦，因為它會造成你的應用程式直接crash，得優先處理它。若要將它導入大家原有的應用程式中，可能需要一些時間來調整整體架構，又或者直接使用third party lib也行。</p><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>最後附上<a href="https://github.com/devWilly/Android-run-time-permissions">Sample code</a></p><p><a href="https://github.com/devWilly/Android-run-time-permissions">devWilly/Android-run-time-permissions</a></p><h3>Reference</h3><ul><li><a href="https://developer.android.com/training/permissions/index.html">Working with System Permissions | Android Developers</a></li><li><a href="https://developer.android.com/training/permissions/requesting.html">Request App Permissions | Android Developers</a></li><li><a href="https://developer.android.com/reference/android/Manifest.permission.html?hl=zh-tw#CAMERA">Manifest.permission | Android Developers</a></li><li><a href="https://developer.android.com/training/permissions/declaring.html">Declaring Permissions | Android Developers</a></li><li><a href="https://material.io/guidelines/patterns/permissions.html">Permissions - Patterns - Material Design</a></li></ul><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1627d169a3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[一個關於Timberland一年後的故事]]></title>
            <link>https://medium.com/@devwilly/%E4%B8%80%E5%80%8B%E9%97%9C%E6%96%BC%E8%B8%A2%E4%B8%8D%E7%88%9B%E4%B8%80%E5%B9%B4%E5%BE%8C%E7%9A%84%E6%95%85%E4%BA%8B-3f4144937c17?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f4144937c17</guid>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[timberland]]></category>
            <category><![CDATA[踢不爛]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Wed, 17 Jan 2018 12:11:50 GMT</pubDate>
            <atom:updated>2018-01-23T10:03:21.178Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*p-rtvWJB-BeHjw1NVgOG_g.jpeg" /><figcaption>圖片來源：<a href="http://iambrucewind.com/?p=1241">http://iambrucewind.com/?p=1241</a></figcaption></figure><p>現今社會人手一機，大家都是用照片或影片來記錄生活，每隔一段時間就會拿出來懷念一下自己過去有多青春洋溢，於是乎腦中閃過一件事情，生活中的事物或許也有屬於它自己的成長故事，大家不妨看看<a href="http://www.motive.com.tw/?p=16453"><strong>黑松沙士新包裝，到底替黑松帶來什麼？</strong></a></p><p><a href="http://www.motive.com.tw/?p=16453">黑松沙士新包裝，到底替黑松帶來什麼？</a></p><p>今天選了Timberland App來幫它做個成長記錄，一年後我們再來看它成長了多少吧。</p><h3>裝置與App資訊</h3><p>Google Pixel2 手機一支</p><p>Android 版本 8.0.0</p><p>原始版本<strong>v2.24</strong></p><p>升級版本<strong>v2.25</strong></p><p>v2.25更新內容：「折價券」、「商品頁」</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZCBh_af4qupLiA45igK2Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iLWQC5yjhB_HNlBS_YCjvQ.png" /></figure><h3>2.25 v.s. 2.24 差異？</h3><h4>側邊欄 — 折價券</h4><p>左圖：(2.24) 折價券/ 輸入折價券號</p><p>右圖：(2.25) 門市.網路折價券/輸入券號</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vg-KY7ZlC2bUGSNudoiLfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0IIsUk1P8_UnoP1fQsvHQ.png" /></figure><h4>折價券專區</h4><p>左圖：(2.24) 折價券活動+我的折價券</p><p>右圖：(2.25) 可領取、無法領取，移除「我的折價券」入口</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwUuV1CxJMl1s_3UyOws1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qjq6Lj60U7CFROV3GtcpNQ.png" /></figure><h4>我的折價券</h4><p>左圖：(2.24) 我的折價券Tab</p><p>右圖：(2.25) 我的折價券，需從「會員專區」 — 「折價券」進入，點擊「領取更多折價券」進入「折價券專區」</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lqson8hnKZJGnq4cTIBvLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5QIfVj6YKSR6JxcdL2VOA.png" /></figure><h4>折價券詳細</h4><p>左圖：(2.24) 折價券、活動說明、注意事項、…</p><p>右圖：(2.25) 折價券、領取時間、使用門檻、可用範圍、活動名稱、…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4jjXnFC8moWUsLf6I-f0Vg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJYTzd2qgg2w3xn4A7GRfg.png" /></figure><h4>會員專區</h4><p>左圖：(2.24) 你好，歡迎光臨</p><p>右圖：(2.25) 你好，歡迎光臨 (圖)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmtmwRuSMGnAYJpsHaEjlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWNbGvYwvXX6ihfDvo2JdA.png" /></figure><h4>商品頁</h4><p>左圖：(2.24) Toolbar Title 使用「商品介紹」文字</p><p>右圖：(2.25) Toolbar改用商品縮圖替代…，整體Alpha變動速率也不同</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rU0JyisTiZXLDX7r9_EKbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B8vSljiqjdbrxsgavSvqQw.png" /></figure><h4>門市優惠券專區</h4><p>左圖：(2.24)</p><p>右圖：(2.25)：新增「發現更多優惠」路口</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AmRSuXyJdTdIc_u_97sveA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXap6fr_Um5BMRT1svCpcA.png" /></figure><h3>版本：2.25</h3><h4>折價券專區</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qjq6Lj60U7CFROV3GtcpNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZLwygjg6Rve03VATE4FUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vjDkAuCJS4w0JsRrqF53qw.png" /></figure><h4>折價券詳細</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mvA-SFXjOIwl623PBs7nnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9yRkocbQyi5jtsDQED0Uw.png" /></figure><h4>購物車 — 選擇折價券</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sP8nQS6itDtNGl-dHqYdMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*URLC31Ke8GHuHpj0upBuYA.png" /></figure><h3>版本：2.24</h3><h4>App Icon</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ms9wL-6w6oENbvcti_TTA.png" /></figure><h4>等待App開啟頁面, 首下載Dialog</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yK1GFPaij2C5y6f7qOfGwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhFMUl-y01cPpNW_L-3iqg.png" /></figure><h4>首頁 — 最新活動Tab</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KUeb1v2bIxkOttSkzj4mLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cLp1vCqwiQHwMkLIpb27xQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToP26Ql11x6bcQBBehAgBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mx3mY6GfPEvPNSshvLHLag.png" /></figure><h4>首頁 — 人氣商品Tab</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QHo3ZU-l5LrqzR0VoqQk5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUCQG8ZliTgX5UeuEZN6Qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vk89TDpiTg0xHV4hVxZOuw.png" /></figure><h4>首頁 — 折扣活動Tab</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FkvchumMQXJuHG7GCshShw.png" /></figure><h4>側邊欄 — 選取, 非選取狀態</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCaWpapo3WV9FwdfRZzq2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vg-KY7ZlC2bUGSNudoiLfw.png" /></figure><h4>側邊欄 — 多層選取, 非選取狀態</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4IbZ1Maj2E1AtMsZWZPoeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yxNOocPG6ouz4-PsoKTbjg.png" /></figure><h4>側邊欄 卡片— 登入, 尚未登入狀態</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCaWpapo3WV9FwdfRZzq2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgDsZELCyM1fgs-yjp0_4A.png" /></figure><h4>折價券專區 — 有券, 無券</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwUuV1CxJMl1s_3UyOws1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lqson8hnKZJGnq4cTIBvLA.png" /></figure><h4>折價券詳細與說明</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4jjXnFC8moWUsLf6I-f0Vg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RqeXiN1kotlHLWogzllB8Q.png" /></figure><h4>限時折扣活動 — 最新活動, 即將結束, 會員專屬</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Cczb7QYaKIsgP-AWygP7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zeK4lxrIELqaxgT1pcw_xw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2O_a9tbnt0hIXdYf8zrzQ.png" /></figure><h4>限時折扣活動 — 活動頁面, 詳細說明, 活動分類選單</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQNBus6eEWT9kImemYFtXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*woDDn36BbuON8FbCaOFQ6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*36XVYYUNZzwcSk9R_YMfeA.png" /></figure><h4>限時折扣活動 — 購物籃(無商品, 有商品)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*irQoSzPQPiRT8cmFzlkx7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MAMCKKMv0gpAczCsrfzxgA.png" /></figure><h4>滿額贈品</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2SJeMfObsbRD-vUKon6Cxg.png" /></figure><h4>限時折價活動 — 不同卡別活動(綠卡、金卡)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jaOINDIjNekkcc1dS8vA0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3vMFUd8WtAzeLYgKLy3Uqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGIsd-FP9QKwiySGYDl2sQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KsFFN3_3dVfCDb_k6SCiFA.png" /></figure><h4>瀏覽記錄列表</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hG8_VjVTpJk2_8Qxe8itsA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UFv20tUOTVOzabu1ronHtw.png" /></figure><h4>瀏覽記錄 — 無商品, 清空提示訊息</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UGOZtg3dmUNrAJJP2I1u5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhy17h3_vBN4x16C-GlFmQ.png" /></figure><h4>商品分類 — 分類, 排序列</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-VckpNhdk5-oP3YxxcMSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zR77fQ-Bx7tE8ETvtIzpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZkEorTPVSeSVS4WZSpcbQ.png" /></figure><h4>主題推薦</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xiVid5hC8BY24VZpuPF3fA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BWMN4oHtruJ4A8GAZG9kRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Ez1_Dixyisb3x0qaFZ9Mw.png" /></figure><h4>主題推薦 — 某種版型</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fA9Vz4FhcVQ2TSVP6TzENQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zC1TbTIXqrU8NEUefZ8g-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZcLYkT-nZY6jCi56_Ac8uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHHneJKS-kxtm44qtQHkDA.png" /></figure><h4>熱銷排行榜, 粉絲團, 門市積點活動</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xdEc2lFV_EWPeWZ9LsyI9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HsgjcMU0RtLIQrQQ-CU5ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nO7cefOojpWs8gMcXhinUw.png" /></figure><h4>門市優惠券專區 — 有券, 無券 及 優惠券內容頁</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AmRSuXyJdTdIc_u_97sveA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I4F1hF-JN9F4id-9nD73Vg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f9EoB6mgT_bqrOjZBO2Q4g.png" /></figure><h4>門市資訊</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-zzvtg8UcNJ-UGIUnAekdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDyY5IqdZElJKF5w2JPP3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ps2v2ryPT6I-yqOjRgMtKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXIek8aW_Rmy6HIaaLkxtw.png" /></figure><h4>門市配對 — 配對相關提示訊息</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*zRB_Qp4UoiZsZDJ9EttKmw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*bmNSVXSZiwP6_HfAFlX0SQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*mu0C0L1hvT5FNjnm-fgmAQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*nCOIzqD3pbcybbFugAfgCA.jpeg" /></figure><h4>商店介紹/客服 — 商店簡介, 購物說明, 商店客服</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4DLU4h6nsaLLLyOgLSfvzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_Apwd58p0chJpUkp6eeBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPUckiNBcKDVSkshggZRYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jpjWMdK5-XGVuXJKkwMzFw.png" /></figure><h4>分享App, 指定推薦人</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lKjXqdcqhAKhnfHm16NAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aSyIN7JK3B7wAkGXncqyNw.png" /></figure><h4>設定頁</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owCH8ZZQ4LhqBexkL99O3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4uLVwkUfpCtbq_MtlCBg5g.png" /></figure><h4>會員登入/註冊</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*PE7rTVtUbRpu8wuFcJTF-w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vifNX-iZ5buqLCh2hgiflg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*xR54cZdWW0gyGsB-7ByBLQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*Lzli6uaQXl8CNU2a47jPUw.jpeg" /></figure><h4>會員專區 — 填寫會員資料, 訂單查詢, 會員等級說明</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmtmwRuSMGnAYJpsHaEjlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mOPrTt5eTX-ku-IG-ba32Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G02iWejI8Qvn-Mo59gnhHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pylGWUNCBKZJVUDyFXpVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Z9_KKLgmtNK_VOG6cKmgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pL35EVChKBe-KaqDj0pL2g.png" /></figure><h4>訊息通知與公告 — 訊息通知, 個人訊息, 商店公告</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZt6jIiCzM65KtYFhjoXtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0snM2CNoMde3jX-TDHxsug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvkGJJtVKimjE1vibfUQlg.png" /></figure><h4>我的收藏</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7unVBQjSpTSpxxq1s6vEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGG6FROBlskUqSgAYlx6Aw.png" /></figure><h4>商品頁 — 商品選項, 付款運送方式</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*viOjPGQ33tGJlS53dM2OCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rU0JyisTiZXLDX7r9_EKbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHMP75PlJBubqPRdtsNGLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qUL-Ek07VR_SZ33mebeHuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_kNBBtwbrvhCvdHbXUAyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cK1GPl2PCEgGWNn3taaL6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BB_nLlh_zqA2vklXsnZmMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSxo6XuEKpnBBdMM9jsnUw.png" /></figure><h4>購物車 — 確認購物車</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SpLAx4Y7khy6QJjTAY06Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7xTLcO_J3UcRHgGxnHl3vw.png" /></figure><h4>購物車 — 付款與運送方式, 結帳時特殊提示訊息(贈品已贈完)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKsid24TJ9XQn7BqQsKpVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJa-NfW_TVva4ab-sB8-Qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ds5q4yKDOAIdVpewSyz7iA.png" /></figure><h4>購物車 — 填寫資料</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cM-HO5n20YQiTT_7BJqW0w.png" /></figure><h3>Conclusion</h3><p>原來寫一個故事可以花我那麼多時間，上述內容讓我發現App頁面存在Bug，想要KPI的人就去把它找出來吧XD</p><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f4144937c17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use RecyclerView component]]></title>
            <link>https://medium.com/@devwilly/how-to-use-recyclerview-component-junior-97dcae7a310b?source=rss-dc0b2ecf97fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/97dcae7a310b</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[recyclerview]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Willy Chang]]></dc:creator>
            <pubDate>Tue, 16 Jan 2018 09:18:48 GMT</pubDate>
            <atom:updated>2018-01-16T13:29:26.205Z</atom:updated>
            <content:encoded><![CDATA[<p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ijcneVEurF2CYx4l98HTjw.png" /><figcaption><a href="https://developer.android.com/training/material/lists-cards.html?hl=zh-tw">https://developer.android.com/training/material/lists-cards.html?hl=zh-tw</a></figcaption></figure><p>今年開始會稍微調整文章類型並且增加一些不同的主題，其中UI Component相關的內容我只會把元件中最關鍵的重點拿出來討論，因為很多初學者在找相關技術文章時，最常遇到的問題是：<strong>文章內容存在太多自己不知道的東西。</strong></p><p>直接切入主題，今天要介紹的是<a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html">RecyclerView</a>，這個元件應該是App內100%會用到的吧(難道還有人再用<a href="https://developer.android.com/reference/android/widget/ListView.html">ListView</a>嗎!!?)</p><h3>What’s RecyclerView ?</h3><p>官方已有相關解釋，我就不再另外說明了，相關內容如下</p><p><a href="https://developer.android.com/training/material/lists-cards.html?hl=zh-tw">建立清單和卡片 | Android Developers</a></p><p>其內容有提及CardView，若您對於它還不太熟悉，可參考我之前寫過的文章</p><p><a href="https://medium.com/@devwilly/cardview-support-library-and-material-design-4ffa09827b35">CardView－Support Library And Material Design</a></p><h3>How to use RecyclerView ?</h3><p>將 RecyclerView 加入<strong>build.gradle</strong></p><pre>dependencies {<br>    ...<br>    implementation ‘<strong>com.android.support:recyclerview-v7:</strong>26.1.0’<br>}</pre><p>在 xml layout 中加入 RecyclerView component</p><pre><em>&lt;?</em>xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;<em>?&gt;<br></em>&lt;android.support.constraint.ConstraintLayout<br>    xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;&gt;<br><br>    <strong>&lt;android.support.v7.widget.RecyclerView<br>        android:id=&quot;@+id/default_recycler_view&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;match_parent&quot;<br>        android:background=&quot;#e5e5e5&quot;/&gt;</strong></pre><pre>&lt;/android.support.constraint.ConstraintLayout&gt;</pre><p>接下來實作 RecyclerView Adapter &amp; ViewHolders</p><ul><li>Adapter：存取資料的地方、建立ViewHolder</li><li>ViewHolder：data bind view</li></ul><p>首先建立一個BaseViewHolder&lt;T&gt; 讓所有ViewHolders 繼承它，這邊使用泛型 來讓每個ViewHolder帶入自己的data wrapper</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7b39cc723045d1684eab414908ecbf6/href">https://medium.com/media/c7b39cc723045d1684eab414908ecbf6/href</a></iframe><p>以FoodViewHolder為例，將data wrapper帶入viewHolder中</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/596a88c14fbf70657b8a32cbac3d6465/href">https://medium.com/media/596a88c14fbf70657b8a32cbac3d6465/href</a></iframe><p>在Adapter中針對viewType建立專屬的ViewHolder</p><ul><li>ArrayList&lt;IEatingWrapper&gt;：資料來源</li><li>onCreateViewHolder()：針對viewType建立專屬的ViewHolder</li><li>onBindViewHolder()：data bind view</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e97a8b494d0d00aaf13e5702ab740378/href">https://medium.com/media/e97a8b494d0d00aaf13e5702ab740378/href</a></iframe><p>最後將資料塞入Adapter中就完成囉!!</p><ul><li>setLayoutManager()：選擇RecyclerView想要的樣式</li></ul><blockquote>最常用： <a href="https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html">GridLayoutManager</a>、<a href="https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager.html">LinearLayoutManager</a></blockquote><ul><li>setAdapter()：將資料塞入RecyclerView Adapter中</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76f75015d722619068a2edd9b9982a78/href">https://medium.com/media/76f75015d722619068a2edd9b9982a78/href</a></iframe><h3>How to use RecyclerView.ItemDecoration ?</h3><blockquote><em>An ItemDecoration allows the application to add a special drawing and layout offset to specific item views from the adapter’s data set. This can be useful for drawing dividers between items, highlights, visual grouping boundaries and more.</em></blockquote><p>顧名思義就是拿來裝飾RecyclerView Item用的，最常使用的方法是<a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemDecoration.html#getItemOffsets(android.graphics.Rect,%20android.view.View,%20android.support.v7.widget.RecyclerView,%20android.support.v7.widget.RecyclerView.State)"><strong>getItemOffsets()</strong></a><strong> ，</strong>此方法用於調整每個Item間的間距大小。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QF3AOTknYRHoJGjNzqZqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wSSPoMaT1DmHTpvrp5YlQ.png" /><figcaption>左圖：Non-ItemDecoration，右圖：Add ItemDecoration</figcaption></figure><p>最簡單的作法是建立一個ItemDecoration Class並@Override getItemOffsets(…)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd5237b746662f1b5d71e143ce95de0e/href">https://medium.com/media/fd5237b746662f1b5d71e143ce95de0e/href</a></iframe><p>但通常UI/UX的介面設計圖都不會那麼簡單，可能會是：</p><p>First Item距離RecyclerView上邊界 16dp</p><p>Last Item距離RecyclerView下邊界 16dp</p><p>中間Item間距8dp</p><p>每個Item左右各16dp</p><p>當我們遇到這種需求時，該怎麼辦呢？ 怎麼知道First、Last Item是哪個？</p><p>以下提供幾個關鍵的方法</p><ul><li><a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html#getChildLayoutPosition(android.view.View)">getChildLayoutPosition(View child)</a></li><li><a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html#getChildAdapterPosition(android.view.View)">getChildAdapterPosition (View child)</a></li></ul><p>顧名思義</p><blockquote>Layout Position ： view在 layout中的位置</blockquote><blockquote>Adapter Position：view在 Adapter中的位置</blockquote><p>若想更深入了解其他應用，可參考</p><p><a href="https://medium.com/@devwilly/how-to-implement-recyclerview-itemtouchhelper-itemdecoration-and-gridlayoutmanager-spansizelookup-c824b9fe7861">How to implement RecyclerView ItemTouchHelper、ItemDecoration and GridLayoutManager.SpanSizeLookup</a></p><h3>How to implement RecyclerView item click listener ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*2OzsZOmyH_f1f-1v2nd25w.gif" /></figure><p>RecyclerView 不像 ListView 有 <a href="https://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html">AdapterView.OnItemClickListener</a> 可以實現click event，那RecyclerView click event該如何實作呢？</p><p>首先建立ItemClickListener 並將listener交給ViewHolder</p><pre>public class adapter extends RecyclerView.Adapter&lt;BaseViewHolder&gt; {<br>    <br>    private OnItemClickListener mListener;<br>    ...</pre><pre>    public interface <strong>OnItemClickListener</strong> {<br>        void <strong>onFoodItemClick(String itemName)</strong>;<br>    }</pre><pre>    @Override<br>    public BaseViewHolder onCreateViewHolder(...) {<br>        ...<br><br>        switch (viewType) {<br>            ...<br>            case IEatingWrapper.FOOD:<br>                view = ...<br>               return new FoodViewHolder(view, <strong>mListener</strong>);<br>            ...<br>        }<br>    }</pre><pre>    public void <strong>setOnItemClickListener</strong>(OnItemClickListener listener)    <br>    {<br>       this.mListener = listener;<br>    }<br>}</pre><p>當點擊item時，將click event往外丟</p><pre>public class FoodViewHolder extends BaseViewHolder&lt;FoodWrapper&gt; {<br><br>    ...<br>    private RecyclerViewAdapter.OnItemClickListener mListener;<br><br>    public FoodViewHolder(..., <strong>OnItemClickListener</strong> listener) {<br>        super(itemView);<br>        this.mListener = listener;<br>        ...<br>    }<br><br>    @Override<br>    public void bindView(final FoodWrapper wrapper) {<br>        ...<br>        itemView.setOnClickListener(new View.OnClickListener() {<br>            @Override<br>            public void onClick(View v) {<br>                <strong>mListener.onFoodItemClick(wrapper.getName())</strong>;<br>            }<br>        });<br>    }<br>}</pre><p>當外面接收到ViewHolder 丟出來的事件後，就執行該事件要做的事情</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6638bd0f210ddcc63908392a15a0180/href">https://medium.com/media/e6638bd0f210ddcc63908392a15a0180/href</a></iframe><h3>Conclusion</h3><p>上述介紹的內容算是基本的RecyclerView用法，當然網路上還有許多更進階的作法，但我希望透過最簡單的敘述方式讓大家都能快速上手。</p><p>最後附上<a href="https://github.com/devWilly/RecyclerView-Practices">Sample Code</a>，一共兩個版本 <a href="https://github.com/devWilly/RecyclerView-Practices/tree/master/RecyclerViewJava">Java</a> 與 <a href="https://github.com/devWilly/RecyclerView-Practices/tree/master/RecyclerView-Kotlin">Kotlin</a></p><blockquote>若你喜歡我的文章歡迎推薦給你的朋友</blockquote><blockquote>若你喜歡我的部落格歡迎追隨我</blockquote><p>轉載請註明出處：<a href="https://medium.com/@devwilly">https://medium.com/@devwilly</a>，違者必究</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97dcae7a310b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>