<?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 Natcha Jintanasatien on Medium]]></title>
        <description><![CDATA[Stories by Natcha Jintanasatien on Medium]]></description>
        <link>https://medium.com/@natcha.jintana?source=rss-8bbe1b082a6c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*E9QFH9-Qkpefu7BqZST5fQ.jpeg</url>
            <title>Stories by Natcha Jintanasatien on Medium</title>
            <link>https://medium.com/@natcha.jintana?source=rss-8bbe1b082a6c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 17:18:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@natcha.jintana/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[Page Object Model: The Automated Testing Pattern on Android]]></title>
            <link>https://medium.com/tech-at-tdg/page-object-model-35d0e44bf2d7?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/35d0e44bf2d7</guid>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[e2e-testing]]></category>
            <category><![CDATA[page-object-model]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android-developers]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Fri, 10 Nov 2023 08:01:49 GMT</pubDate>
            <atom:updated>2023-11-10T09:32:25.669Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pUS73yX5qWCMxALzv5ZPQg.png" /></figure><blockquote>บทความนี้เป็นเนื้อหาโดยสรุปที่พูดในงาน Android Bangkok 2023 ค่ะ</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1smFQdp37IZeBsie6j8gcg.png" /></figure><p>ใครที่เคยเขียน unit test มาแล้ว ทุกคำสั่งที่ใช้เทสทั้งหมด จะอยู่ใน 1 function test <br>E2E Test เราเขียนแบบนั้นได้ก็จริง แต่โค้ดจะยาวมากๆๆๆๆๆ 50 lines ได้เลย <br>ทำให้อ่านยาก และอ่านออกอยู่คนเดียวด้วย</p><h4><strong>Page Object Model คืออะไร</strong></h4><p>ตัวย่อ POM คือ pattern ที่ใช้ในการเขียน E2E Test นั่นเองค่ะ ช่วยให้อ่านง่ายและเป็นสัดส่วน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sX1tLFGWOPRCez2vHlVnXQ.png" /></figure><p>มี 3 ส่วน<br><strong>1. class E2E Test</strong> เป็น test runner ที่อยู่ใน folder androidTest ใน module ทั่วไป<br><strong>2. class ScreenPlay </strong>ทำ action ของการเทส เช่น click, scroll, verify text<br><strong>3. class PageObject </strong>ตามหา object ที่ใช้ในการเทส เช่น button, text, view ต่างๆ</p><blockquote>class ScreenPlay และ class PageObject สามารถดีไซน์ตามลักษณะ modular architecture ได้ คือ แยกเป็น moduleในทีนี้ตั้งชื่อว่า e2e share</blockquote><h4><strong>Concept of ScreenPlay &amp; PageObject</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-6KKqFA64Ed094y0b6WcQ.png" /><figcaption>concept : screenplay + object</figcaption></figure><p>จากรูป ถ้ามี ui ลักษณะนี้ สามารถกำหนดทั้งหน้าจอเป็น 1 screenplay ได้เลย และแต่ละ view ภายในเป็น object</p><p>ถ้าอยากจะเทสการคลิ๊ก item <br>class PageObject จะรวบรวม object อยู่ในนี้ และ class ScreenPlay ทำ action click ตามรูปด้านล่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fhqpx5ZbSiiaM6F7d4WfXQ.png" /><figcaption>click item</figcaption></figure><p>จากรูปด้านล่าง ui มีหลากหลาย object ใน 1 หน้า <br>ถ้าอยากจะเทสแค่ส่วนที่โฟกัสตามรูป สามารถกำหนด screenplay เฉพาะส่วนนี้ได้ และแต่ละ view เป็น object เช่นเดิม ความพิเศษของ ui นี้คือ มี object ที่เป็น RecyclerView ด้วย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaKpm86jsP-hNQX4ycqUuw.png" /><figcaption>concept : screenplay + object</figcaption></figure><p>ถ้าอยากจะเทสการคลิ๊ก item สุดท้ายที่อยู่ใน RecyclerView นี้<br>class PageObject จะรวบรวม object อยู่ในนี้ และ class ScreenPlay ทำ action click by index และ scroll ตามรูปด้านล่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*moaXjuR2JdbUca-_yLTS7A.png" /><figcaption>click item in recyclerview</figcaption></figure><blockquote>การแบ่ง screenplay ขึ้นอยู่กับความเหมาะสมนะคะ ไม่มีลักษณะที่แน่นอนค่ะ</blockquote><h4>ลองเขียนเทสใช้ POM</h4><p>Test case คือ ต้องการเทสว่าสามารถเปิดหน้า profile ได้ถูกต้อง<br>โดยการที่จะเข้าถึงหน้า profile จะต้องผ่านการ sign in และคลิ๊กปุ่ม profile ที่หน้า Home ก่อนถึงจะเปิดหน้า profile ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CY_BSLVq5Ike12-rOtdxvQ.gif" /></figure><p>ในลักษณะนี้ให้เราแบ่งส่วนเทส ได้แก่ เทส Sign in, เทส click profile และ เทสหน้า profile</p><p><strong>1. เทส Sign in </strong><br>- ให้สร้าง class ScreenPlay และ class PageObject<br>- class PageObject เตรียม object ได้แก่ username, password, sign in button โดยอ้างอิงจาก content description<br>- class ScreenPlay ทำ action sign in โดยเริ่มจากระบุ username และ password จากนั้นสั่ง click ปุ่ม sign in</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zX9qojcEQOpcUDRA-2jaPQ.gif" /><figcaption>Sign in Example</figcaption></figure><p><strong>2. เทส click profile button ที่หน้า Home<br></strong>- ให้สร้าง class ScreenPlay และ class PageObject<br>- class PageObject เตรียม object ของปุ่ม profile ให้พร้อม<br>- class ScreenPlay ทำ action click ปุ่ม profile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i9nXyGdkjvWOG2qVPHmvWA.gif" /><figcaption>Click Profle Button Example</figcaption></figure><p><strong>3. เทสหน้า profile ว่าแสดงผลอยู่ </strong>โดยในตัวอย่างนี้จะเทสจากข้อความ “Profile” และรูปโปรไฟล์ว่าแสดงอยู่<br><em>(สามารถเลือกเทสมากหรือน้อยกว่านี้ได้ ขึ้นอยู่กับความเหมาะสม)</em><strong><br></strong>- ให้สร้าง class ScreenPlay และ class PageObject<br>- class PageObject เตรียม object ได้แก่ profile text หรือ profile image<br>- class ScreenPlay ทำ action ในการเช็คว่าทั้งสอง object นี้แสดงอยู่หรือไม่ ถ้าใช่สามารถสรุปได้ว่าหน้า profile แสดงอยู่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l-KqC7jBC_Pwa3yoCJF9eQ.gif" /><figcaption>Profile Page Example</figcaption></figure><p>จะได้ class ScreenPlay ทั้งหมด ได้แก่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d_F75a9MaN0kYPzAHExAJQ.png" /><figcaption>class ScreenPlay ทั้งหมด</figcaption></figure><p>หลังจากที่เรามี class ScreenPlay ครบแล้ว ให้นำมาใช้ที่ class E2ETest ตามรูป<br>เริ่มต้นตาม journey คือ <br>1. เทสการ Sign in <br>2. เทส click profile button ในหน้า Home <br>3. เทสหน้า Profile</p><p><strong>✅ ถือว่าผ่าน 1 test case</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7qHaHZHKyVsnY5l69Kso2g.png" /><figcaption>Result Test Case</figcaption></figure><h4>สถานการณ์สมมติ</h4><p>ลูกค้าบอกว่า “<em>จะเปลี่ยน หน้า Sign in เป็บแบบใหม่ ใช้ One Time Password</em>”</p><p>จะเกิดอะไรขึ้นกับเทสเคสเมื่อกี้? เทส failed ที่ Sign in❌</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0_Oovi4oYy1BQQUULJfpZQ.png" /><figcaption>Test Failed</figcaption></figure><p>ดังนั้นเราจะต้องแก้ไขการเทส Sign in ตาม Journey ใหม่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*revy79c15HEgO3L1FxCAaA.gif" /><figcaption>Sign in with OTP</figcaption></figure><p>จาก ui ของหน้า sign inใหม่ <br>- class PageObject ที่ใช้ ได้แก่ country drop down, moblie number, button<br>- class ScreenPlay แก้ไขวิธีการ sign in เริ่มจากเลือก country กรอกเบอร์โทรศัพท์ และคลิ๊กปุ่ม next</p><p>sign in ยังไม่จบเท่านี้ ยังเหลือขั้นตอนกรอก verification code นะคะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lhFqrLync8EAyIjl_GzrCw.gif" /><figcaption>Verification Code</figcaption></figure><p>จาก ui ของหน้ากรอก Verification code<br>- class PageObject เพิ่ม object คือ text ในการกรอก Verification code<br>- class ScreenPlay เพิ่มขั้นตอน กรอก Verification code</p><p><strong>เมื่อเรารันเทสนี้อีกครั้ง เทสจะกลับมาผ่านแล้วค่ะ ✅</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7qHaHZHKyVsnY5l69Kso2g.png" /><figcaption>Result Test Case</figcaption></figure><h4>สรุป</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K6k8RXz8ptwSzm-EdPjcjQ.png" /><figcaption>Summary</figcaption></figure><p>จากทั้งหมด ScreenPlay และ PageObject ที่อธิบายข้างต้น</p><p>สรุปได้ว่า ScreenPlay จะทำ action ตามที่ test case ต้องการ เช่น การคลิ๊กปุ่ม <br>ดังนั้น ScreenPlay จึงต้องรู้จักกับ PageObject เพราะต้องการ object ของปุ่มเพื่อทำการคลิ๊ก ส่วน pageobject ที่ทำหน้าที่หา object มาให้พร้อมใช้งาน จำเป็นต้องรู้จักกับ content description เพื่อใช้อ้างอิงถึง object นั้นๆ</p><p>ส่วนของ Espresso และ UI Automator นั้น มีส่วนช่วยในการทำ action เทสที่ ScreenPlay และ ช่วยหา object ที่ PageObject</p><h4><strong>Presentation ในงานนะคะ</strong></h4><p><a href="https://bit.ly/android-bkk-page-object-model-the...">Download here</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.icloud.com%2Fkeynote%2F083ipJlm3wcdU2_E_ydFYAGMw%3Fembed%3Dtrue&amp;display_name=Apple&amp;url=https%3A%2F%2Fwww.icloud.com%2Fkeynote%2F083ipJlm3wcdU2_E_ydFYAGMw&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=icloud" width="600" height="498" frameborder="0" scrolling="no"><a href="https://medium.com/media/d2626b820b7bfd1ef71f566bab16cc5d/href">https://medium.com/media/d2626b820b7bfd1ef71f566bab16cc5d/href</a></iframe><p>ถ้ามีโอกาสได้เขียน E2E test กัน อย่าลืมลองนำ Page Object Model ไปใช้กันดูนะคะ แล้วจะติดใจค่ะ 💚</p><p>สุดท้ายขอบคุณทีมงาน True Digital Group</p><p>ขอบคุณงาน Android Bangkok 2023 ด้วยนะคะ สำหรับโอกาสที่ได้เป็น Public Speaker ครั้งแรก หลังจากที่เคยเป็นผู้ฟังมาก่อน</p><p>และขอบคุณ FC Lookmoo ที่มาเชียร์ และส่งกำลังใจให้เต็มหลอด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZUIUiHoiYbGPmpjd8uf1NA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTdCyTHOY6yEy2GhS3E3eQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KI3YVoBm8M6YAkIRoYnSrQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G2xRRgW_vjfl6aBQTn_4WA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35d0e44bf2d7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/page-object-model-35d0e44bf2d7">Page Object Model: The Automated Testing Pattern on Android</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Motion Layout EP.1]]></title>
            <link>https://medium.com/tech-at-tdg/motion-layout-872c34ba963?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/872c34ba963</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-apps]]></category>
            <category><![CDATA[constraintlayout]]></category>
            <category><![CDATA[android-app-developers]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Thu, 02 Jun 2022 03:16:29 GMT</pubDate>
            <atom:updated>2022-07-07T06:45:21.371Z</atom:updated>
            <content:encoded><![CDATA[<p>: Transition &amp; CustomAttribute</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-TvcGk5GLMJo7uhg_n2bg.jpeg" /></figure><p><strong>MotionLayout</strong> เป็น subclass ของ ConstraintLayout ที่จะมาทำให้ layout ของเราเคลื่อนไหวได้ ความสามารถของ Motion layout เช่น การเคลื่อนย้าย(location) เปลี่ยนสี(color) ปรับขนาด(size) การหมุน(rotation) และอื่นๆอีกมากมาย</p><p>และที่ MotionLayout มีความสามารถหลากหลาย เนื่องจากเป็นส่วนผสมของคุณสมบัติระหว่าง property animation framework, TransitionManager และ CoordinatorLayout ค่ะ และยังรองรับ keyframes ด้วย ทำให้สามารถ customized transitions ได้อย่างเต็มที่ตามความต้องการเลยค่ะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tqk38ZSRE1GxTl5WfjenQw.png" /><figcaption>อ้างอิงจาก <a href="https://medium.com/google-developers/introduction-to-motionlayout-part-i-29208674b10d">https://medium.com/google-developers/introduction-to-motionlayout-part-i-29208674b10d</a></figcaption></figure><p><strong>ข้อจำกัด</strong></p><p>MotionLayout จะทำงานกับตัวลูกโดยตรงเท่านั้น ไม่รองรับ nested layout</p><h4>Implementation</h4><pre>implementation ‘androidx.constraintlayout:constraintlayout:2.1.3’</pre><h4>MotionScene</h4><p>ทำหน้าที่ customized transitions ต่างๆ ประกอบด้วย Transition ConstraintSet และ StateSet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VgGGe0ZMz1zckLlJQpujkg.png" /><figcaption>ตัวอย่าง MotionScene ตั้งต้น</figcaption></figure><ol><li><strong>&lt;Transition</strong> ทำหน้าที่กำหนดการเคลื่อนที่<br>motion:constraintSetStart อ้างอิง view เริ่มต้น<br>motion:constraintSetEnd อ้างอิงview สิ้นสุด<br>motion:duration ระยะเวลาในการเคลื่อนที่ตั้งแต่ start ถึง end <br>(1000 = 1000 milliseconds = 1 second)</li><li><strong>&lt;ConstraintSet </strong>เป็นกลุ่มของ view มี 2 ส่วนได้แก่ start และ end<br>ใน &lt;ConstraintSet ประกอบด้วยหลายๆ &lt;Contraint</li></ol><h4><strong>&lt;Transition</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*j23XAdhtcet95FDvcUNSHg.png" /><figcaption>Transition</figcaption></figure><ul><li>&lt;KeyFrameSet เพิ่มลูกเล่นระหว่าง transition เช่น ปรับ path ให้โค้ง หรือทำให้ view หมุนที่ position นั้นๆ</li><li>&lt;OnClick คลิ๊กเพื่อให้เกิด transition</li><li>&lt;OnSwipe ลากเพื่อให้เกิด transition</li></ul><h4>&lt;OnClick</h4><pre>&lt;OnClick<br>    motion:clickAction=&quot;toggle&quot;<br>    motion:targetId=&quot;@+id/bgBottomImageView&quot; /&gt;</pre><ul><li>motion:clickAction ระบุ action จะต้องการเมื่อคลิ๊ก ตัวอย่างเช่น<br>- transitionToEnd เคลื่อนไปยังตำแหน่ง end<br>- toggle เคลื่อนสลับไปมา start -&gt; end -&gt; start -&gt; end -&gt; …</li><li>motion:targetId อ้างอิง id ที่จะคลิ๊ก</li></ul><h4>&lt;OnSwipe</h4><pre>&lt;OnSwipe<br>    motion:dragDirection=&quot;dragUp&quot;<br>    motion:touchAnchorId=&quot;@id/bgBottomImageView&quot;<br>    motion:touchAnchorSide=&quot;top&quot; /&gt;</pre><ul><li>motion:dragDirection ทิศทางการลาก เช่น dragUp(ลากขึ้น) dragRight(ลากไปทางขวา)</li><li>motion:touchAnchorId อ้างอิง id ต้องการ touch</li><li>motion:touchAnchorSide บอกว่า เราจะ touch ไปทางไหน ควรสอดคล้องกับ dragDirection</li></ul><h4>&lt;KeyFrameSet</h4><p>อ่านได้ที่นี่ &gt;&gt; <a href="https://medium.com/@natcha.jintana/motionlayout-a105f76ada65">MotionLayout : KeyFrame</a></p><h4>&lt;CustomAttribute</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2X8gFPCZUsDQsJbN9CDUw.png" /><figcaption>ตัวอย่าง CustomAttribute</figcaption></figure><ol><li><strong>change image (ImageFilterView)<br></strong>start : QR code image <br>end : plane image</li></ol><pre><strong>&lt;androidx.constraintlayout.utils.widget.ImageFilterView</strong><br>    android:id=&quot;@+id/imageFilterView&quot;<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br>    <strong>android:src=&quot;@drawable/ic_qr_code&quot;<br>    app:altSrc=&quot;@drawable/ic_plane_rotation&quot;</strong><br>    app:layout_constraintBottom_toBottomOf=&quot;@+id/imageView&quot;<br>    app:layout_constraintEnd_toEndOf=&quot;@+id/imageView&quot;<br>    app:layout_constraintStart_toStartOf=&quot;@+id/imageView&quot;<br>    app:layout_constraintTop_toTopOf=&quot;@id/imageView&quot;<br>    <strong>app:overlay=&quot;false&quot;</strong> /&gt;</pre><pre>--------------------------------------------------------------------</pre><pre><strong>&lt;MotionScene ...<br>     </strong>&lt;Transition ... /&gt;<br>     &lt;ConstraintSet android:id=&quot;@+id/<strong>start</strong>&quot;&gt;<br>          &lt;Constraint<br>               android:id=&quot;@+id/imageFilterView&quot;<br>               android:layout_width=&quot;wrap_content&quot;<br>               android:layout_height=&quot;wrap_content&quot;<br>               ... &gt;<br>              <strong>&lt;CustomAttribute<br>                   motion:attributeName=&quot;crossfade&quot;<br>                   motion:customFloatValue=&quot;0&quot; /&gt;<br>          </strong>&lt;/Constraint&gt;<br>     &lt;/ConstraintSet&gt;<br>     &lt;ConstraintSet android:id=&quot;@+id/<strong>end</strong>&quot;&gt;<br>          &lt;Constraint<br>               android:id=&quot;@+id/imageFilterView&quot;<br>               android:layout_width=&quot;wrap_content&quot;<br>               android:layout_height=&quot;wrap_content&quot;<br>               ... &gt;<br>              <strong>&lt;CustomAttribute<br>                   motion:attributeName=&quot;crossfade&quot;<br>                   motion:customFloatValue=&quot;1&quot; /&gt;<br>          </strong>&lt;/Constraint&gt;<br>     &lt;/ConstraintSet&gt;<br>&lt;/MotionScene&gt;</pre><p><strong>2. change circle bg color (ShapeableImageView)</strong><br>start : blue color <br>end : peach color</p><pre><strong>&lt;com.google.android.material.imageview.ShapeableImageView</strong><br>    android:id=&quot;@+id/bgCircleImageView&quot;<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br>    android:background=&quot;@color/blue&quot;<br>    ...<br>    app:shapeAppearanceOverlay=&quot;@style/ShapeAppearance.Circle&quot; /&gt;</pre><pre>--------------------------------------------------------------------</pre><pre><strong>&lt;MotionScene ...<br>     </strong>&lt;Transition ... /&gt;<br>     &lt;ConstraintSet android:id=&quot;@+id/<strong>start</strong>&quot;&gt;<br>          &lt;Constraint<br>               android:id=&quot;@+id/bgCircleImageView&quot;<br>               android:layout_width=&quot;wrap_content&quot;<br>               android:layout_height=&quot;wrap_content&quot;<br>               ... &gt;<br>               <strong>&lt;CustomAttribute<br>                    motion:attributeName=&quot;backgroundColor&quot;<br>                    motion:customColorValue=&quot;@color/blue&quot; /&gt;</strong><br>          &lt;/Constraint&gt;<br>     &lt;/ConstraintSet&gt;<br>     &lt;ConstraintSet android:id=&quot;@+id/<strong>end</strong>&quot;&gt;<br>          &lt;Constraint<br>               android:id=&quot;@+id/bgCircleImageView&quot;<br>               android:layout_width=&quot;wrap_content&quot;<br>               android:layout_height=&quot;wrap_content&quot;<br>               ... &gt;<br>               <strong>&lt;CustomAttribute<br>                    motion:attributeName=&quot;backgroundColor&quot;<br>                    motion:customColorValue=&quot;@color/peach&quot; /&gt;</strong><br>          &lt;/Constraint&gt;<br>     &lt;/ConstraintSet&gt;<br>&lt;/MotionScene&gt;</pre><p><strong>3. change text color</strong><br>start : white color <br>end : black color</p><pre><strong>&lt;com.google.android.material.textview.MaterialTextView</strong><br>    android:id=&quot;@+id/startDestinationTextView&quot;<br>    style=&quot;@style/LargeTitle.White&quot;<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br>    android:text=&quot;@string/short_bkk_airport&quot;<br>    ... /&gt;<br>--------------------------------------------------------------------</pre><pre><strong>&lt;MotionScene ...<br>     </strong>&lt;Transition ... /&gt;<br>     &lt;ConstraintSet android:id=&quot;@+id/<strong>start</strong>&quot;&gt;<br>          &lt;Constraint<br>               android:id=&quot;@+id/startDestinationTextView&quot;<br>               android:layout_width=&quot;wrap_content&quot;<br>               android:layout_height=&quot;wrap_content&quot;<br>               ... &gt;<br>               <strong>&lt;CustomAttribute<br>                    motion:attributeName=&quot;textColor&quot;<br>                    motion:customColorValue=&quot;@color/white&quot; /&gt;</strong><br>          &lt;/Constraint&gt;<br>     &lt;/ConstraintSet&gt;<br>     &lt;ConstraintSet android:id=&quot;@+id/<strong>end</strong>&quot;&gt;<br>          &lt;Constraint<br>               android:id=&quot;@+id/startDestinationTextView&quot;<br>               android:layout_width=&quot;wrap_content&quot;<br>               android:layout_height=&quot;wrap_content&quot;<br>               ... &gt;<br>               <strong>&lt;CustomAttribute<br>                    motion:attributeName=&quot;textColor&quot;<br>                    motion:customColorValue=&quot;@color/black&quot; /&gt;</strong><br>          &lt;/Constraint&gt;<br>     &lt;/ConstraintSet&gt;<br>&lt;/MotionScene&gt;</pre><p><strong>4. change image color</strong><br>start : white color <br>end : black color</p><pre><strong>&lt;androidx.appcompat.widget.AppCompatImageView</strong><br>    android:id=&quot;@+id/planeImageView&quot;<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br>    android. :adjustViewBounds=&quot;true&quot;<br>    android:src=&quot;@drawable/ic_airplane&quot;<br>    ... /&gt;<br>--------------------------------------------------------------------</pre><pre><strong>&lt;MotionScene ...<br>     </strong>&lt;Transition ... /&gt;<br>     &lt;ConstraintSet android:id=&quot;@+id/<strong>start</strong>&quot;&gt;<br>        &lt;Constraint<br>             android:id=&quot;@+id/planeImageView&quot;<br>             android:layout_width=&quot;wrap_content&quot;<br>             android:layout_height=&quot;wrap_content&quot;<br>             ... &gt;<br>             <strong>&lt;CustomAttribute<br>                  motion:attributeName=&quot;ColorFilter&quot;<br>                  motion:customColorValue=&quot;@color/white&quot; /&gt;</strong><br>        &lt;/Constraint&gt;<br>     &lt;/ConstraintSet&gt;<br>     &lt;ConstraintSet android:id=&quot;@+id/<strong>end</strong>&quot;&gt;<br>        &lt;Constraint<br>             android:id=&quot;@+id/planeImageView&quot;<br>             android:layout_width=&quot;wrap_content&quot;<br>             android:layout_height=&quot;wrap_content&quot;<br>             ... &gt;<br>             <strong>&lt;CustomAttribute<br>                  motion:attributeName=&quot;ColorFilter&quot;<br>                  motion:customColorValue=&quot;@color/black&quot; /&gt;</strong><br>        &lt;/Constraint&gt;<br>     &lt;/ConstraintSet&gt;<br>&lt;/MotionScene&gt;</pre><p><strong>Source Code:</strong> <a href="https://github.com/lookmoojin/BoardingPass">https://github.com/lookmoojin/BoardingPass</a></p><p><em>ข้อมูลเพิ่มเติม</em></p><p>https://developer.android.com/training/constraint-layout/motionlayout#androidx</p><p><a href="https://developer.android.com/training/constraint-layout/motionlayout/examples">https://developer.android.com/training/constraint-layout/motionlayout/examples</a></p><p><a href="https://developer.android.com/studio/write/motion-editor">https://developer.android.com/studio/write/motion-editor</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=872c34ba963" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/motion-layout-872c34ba963">Motion Layout EP.1</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MotionLayout EP.2]]></title>
            <link>https://medium.com/tech-at-tdg/motionlayout-a105f76ada65?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a105f76ada65</guid>
            <category><![CDATA[motionlayout]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Thu, 02 Jun 2022 03:13:30 GMT</pubDate>
            <atom:updated>2022-07-07T06:44:26.615Z</atom:updated>
            <content:encoded><![CDATA[<p>: KeyFrameSet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ZsYzTEWPBlLo0brjP7zgA.jpeg" /></figure><h3><strong>KeyFrameSet</strong></h3><p>ใช้เพิ่มลูกเล่นระหว่างเคลื่อนที่จาก start ถึง end สามารถปรับเปลี่ยน path จากเดิมเส้นตรงให้โค้งได้ ใส่ค่า alpha, scale, rotation ให้กับ view ระหว่างทางได้</p><p>ประกอบด้วย KeyPosition KeyAttribute KeyCycle และ KeyTimeCycle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*3z7ufDvoNuusGSozTiAB8A.png" /></figure><h4>&lt;KeyPositon</h4><pre>&lt;Transition ...&gt;<br>    &lt;<strong>KeyFrameSet</strong>&gt;<br>        <strong>&lt;KeyPosition</strong><br>            motion:framePosition=&quot;50&quot;<br>            motion:keyPositionType=&quot;parentRelative&quot;<br>            motion:motionTarget=&quot;@id/passengerNameTitleTextView&quot;<br>            motion:percentY=&quot;0.8&quot; /&gt;<br>    &lt;/<strong>KeyFrameSet</strong>&gt;<br>&lt;/Transition&gt;</pre><ul><li>motion:motionTarget อ้างอิง id ของ view</li><li>motion:framePosition ระบุตำแหน่งมีค่า 0–100</li><li>motion:keyPositionType มี 3 รูปแบบ ได้แก่ parentRelative deltaRelative และ pathRelative</li><li>motion:percentX , motion:percentY พิกัด (x,y) เกี่ยวข้องกับ keyPositionType</li></ul><h4>motion:framePosition</h4><p>มีค่า 0 ที่ start และ 100 ที่ end ตามรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*sJd3EIilO1lnm7ZBcCSvqw.png" /><figcaption>motion:framePosition</figcaption></figure><h4>motion:keyPositionType</h4><ol><li><strong>parentRelative</strong> อิงพิกัดตาม parent<br>พิกัด (0,0) อยู่ตำแหน่งบนซ้าย และ พิกัด (1,1) อยู่ตำแหน่งล่างขวา ตามรูป A</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j7LDEiAFVJaPotvo8f35UA.png" /><figcaption><strong>parentRelative</strong></figcaption></figure><p>โค้ดของรูป B</p><pre>&lt;Transition ...&gt;<br>    &lt;<strong>KeyFrameSet</strong>&gt;<br>        <strong>&lt;KeyPosition</strong><br>            motion:framePosition=&quot;25&quot;<br>            motion:keyPositionType=&quot;parentRelative&quot;<br>            motion:motionTarget=&quot;@id/imageView&quot;<br>            motion:percentX=&quot;0.25&quot;<br>            motion:percentY=&quot;0.25&quot; /&gt;<br>        <strong>&lt;KeyPosition</strong><br>            motion:framePosition=&quot;75&quot;<br>            motion:keyPositionType=&quot;parentRelative&quot;<br>            motion:motionTarget=&quot;@id/imageView&quot;<br>            motion:percentX=&quot;0.75&quot;<br>            motion:percentY=&quot;0.75&quot; /&gt;<br>    &lt;/<strong>KeyFrameSet</strong>&gt;<br>&lt;/Transition&gt;</pre><p><strong>2. deltaRelative</strong> อิงพิกัดตาม start-end<br>พิกัด (0,0) อยู่ตำแหน่ง start และ พิกัด (1,1) อยู่ตำแหน่ง end ตามรูป A</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jxXzAm_npjFbMvU6lPftvg.png" /><figcaption><strong>deltaRelative</strong></figcaption></figure><p>โค้ดของรูป B</p><pre>&lt;Transition ...&gt;<br>    &lt;<strong>KeyFrameSet</strong>&gt;<br>        <strong>&lt;KeyPosition</strong><br>            motion:framePosition=&quot;50&quot;<br>            motion:keyPositionType=&quot;deltaRelative&quot;<br>            motion:motionTarget=&quot;@id/imageView&quot;<br>            motion:percentY=&quot;0.8&quot; /&gt;<br>    &lt;/<strong>KeyFrameSet</strong>&gt;<br>&lt;/Transition&gt;</pre><p><strong>3. pathRelative </strong>อิงพิกัดตาม path และกำหนด speeding up ได้<br>พิกัด (0,0) อยู่ตำแหน่ง start และ พิกัด (1,0) อยู่ตำแหน่ง end</p><blockquote>ศึกษาเพิ่มเติม <br><a href="https://codelabs.developers.google.com/codelabs/motion-layout#5">https://codelabs.developers.google.com/codelabs/motion-layout#5</a></blockquote><h4>&lt;KeyAttribute</h4><pre>&lt;Transition ...&gt;<br>    &lt;<strong>KeyFrameSet</strong>&gt;<br>        <strong>&lt;KeyAttribute</strong><br>            android:alpha=&quot;1&quot;<br>            motion:framePosition=&quot;0&quot;<br>            motion:motionTarget=&quot;@id/textView&quot; /&gt;<br>        <strong>&lt;KeyAttribute</strong><br>            android:alpha=&quot;0&quot;<br>            motion:framePosition=&quot;50&quot;<br>            motion:motionTarget=&quot;@id/textView&quot; /&gt;<br>        <strong>&lt;KeyAttribute</strong><br>            android:alpha=&quot;0&quot;<br>            motion:framePosition=&quot;90&quot;<br>            motion:motionTarget=&quot;@id/textView&quot; /&gt;<br>        <strong>&lt;KeyAttribute</strong><br>            android:alpha=&quot;1&quot;<br>            motion:framePosition=&quot;95&quot;<br>           motion:motionTarget=&quot;@id/textView&quot; /&gt;<br>    &lt;/<strong>KeyFrameSet</strong>&gt;<br>&lt;/Transition&gt;</pre><p>โค้ดเบื้องต้น อธิบายได้ว่า</p><p>ตำแหน่ง0(เริ่มต้น) -&gt; 50(กึ่งกลาง) : view ค่อยๆจางลงจนหายไปที่กึ่งกลาง<br>ตำแหน่ง50(กึ่งกลาง) -&gt; 90 : view ยังคงไม่ปรากฎ<br>ตำแหน่ง90 -&gt; 95 : view ค่อยๆปรากฎขึ้นมา ชัดเจนที่ตำแหน่ง 95</p><p>Attribute ที่รองรับ มีดังนี้</p><pre>android:visibility<br>android:alpha<br>android:elevation<br>android:rotation<br>android:rotationX<br>android:rotationY<br>android:scaleX<br>android:scaleY<br>android:translationX<br>android:translationY<br>android:translationZ<br>android:translationPathRotate</pre><h4>&lt;KeyCycle</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*263jPxyC05THnrTzmj5WTw.gif" /><figcaption>Example: KeyCycle</figcaption></figure><pre>&lt;Transition ...&gt;<br>    &lt;<strong>KeyFrameSet</strong>&gt;<strong><br>        &lt;KeyCycle</strong><br>            android:translationX=&quot;120dp&quot;<br>            motion:framePosition=&quot;50&quot;<br>            motion:motionTarget=&quot;@id/planeImageView&quot;<br>            <strong>motion:waveOffset=&quot;0dp&quot;<br>            motion:wavePeriod=&quot;0.5&quot;<br>            motion:waveShape=&quot;sin&quot;</strong> /&gt;<br>        <strong>&lt;KeyCycle ... /&gt;<br>    </strong>&lt;/<strong>KeyFrameSet</strong>&gt;<br>&lt;/Transition&gt;</pre><ul><li><strong>motion:waveOffset</strong> ขยับ wave อยู่ตำแหน่งบนหรือล่าง (0dp = กึ่งกลางปกติ)</li><li><strong>motion:wavePeriod</strong> ความถี่ของ wave</li><li><strong>motion:waveShape</strong> ลักษณะของ wave (sin, cos, square, sawtooth, reverseSawTooth, triangle, bounce)</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FqWmU6emSQ5k%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DqWmU6emSQ5k&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FqWmU6emSQ5k%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/08f988f32f1c16b3ccc3e86e064cebaa/href">https://medium.com/media/08f988f32f1c16b3ccc3e86e064cebaa/href</a></iframe><p><strong>Source Code:</strong> <a href="https://github.com/lookmoojin/BoardingPass">https://github.com/lookmoojin/BoardingPass</a></p><p><em>ข้อมูลเพิ่มเติม</em></p><p><a href="https://developer.android.com/training/constraint-layout/motionlayout/ref/keyframeset">https://developer.android.com/training/constraint-layout/motionlayout/ref/keyframeset</a></p><p><a href="https://developer.android.com/training/constraint-layout/motionlayout/examples#keyframe_cycle">https://developer.android.com/training/constraint-layout/motionlayout/examples#keyframe_cycle</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a105f76ada65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/motionlayout-a105f76ada65">MotionLayout EP.2</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Navigation Component — Part.2]]></title>
            <link>https://medium.com/tech-at-tdg/android-navigation-component-part-2-ffc154b9b6c2?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffc154b9b6c2</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[navigation-component]]></category>
            <category><![CDATA[android-developers]]></category>
            <category><![CDATA[safeargs]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Sun, 07 Jun 2020 16:24:37 GMT</pubDate>
            <atom:updated>2020-06-11T11:12:21.376Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android Navigation Component — Part.2</h3><p>เนื้อหา part นี้จะพาทุกคนไปทำความรู้จักกับ Safe Args กันค่ะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*pXUVS6hUPOdvI-EoUG9MpQ.jpeg" /><figcaption>Photo by <a href="https://www.freepik.com/premium-photo/parcel-paper-cartons-with-shopping-cart-logo-trolley-laptop-keyboard_5734648.htm">freepik.com</a></figcaption></figure><h3>Safe Args</h3><p>คือ plugin เพื่อ navigate และส่ง data ไปยัง destination อื่นๆ มีการ generate direction class เช่น MainFragmentDirections class และ generate data class สำหรับ Bundle เช่น MainFragmentArgs</p><h3>เปรียบเทียบ Before vs After</h3><h4>Before (ไม่ใช้ Safe Args)</h4><pre>findNavController().navigate(<br>       <strong>R.id.<em>action_mainFragment_to_aboutFragment</em></strong><em><br></em>)</pre><h4>After (ใช้ Safe Args)</h4><pre>findNavController().navigate(<br>       <strong>MainFragmentDirections</strong>.<strong>actionMainFragmentToAboutFragment()</strong><br>)</pre><h3>แล้ว Safe อย่างไร</h3><p>จากเดิมใช้ bundle ส่งข้อมูลระหว่าง fragment หรือ activity ฝั่งปลายทางจะต้องกำหนด key และ type ของข้อมูลให้ตรงกัน ถึงจะได้ข้อมูลมาใช้งาน แต่ Safe Args ทำให้ชีวิตง่ายขึ้น เพราะ direction class รับ bundle และ properties ที่แมตช์กับ argument ใน xml ทำให้ type ข้อมูลถูกต้องเสมอ</p><h3>เริ่ม Setup</h3><p><strong>ใน build.gradle(app)</strong> เพิ่ม apply plugin ดังนี้</p><ul><li>สำหรับ Module ที่มี Java กับ Kotlin ปนกัน</li></ul><pre>apply plugin: &quot;androidx.navigation.safeargs&quot;</pre><ul><li>สำหรับ Kotlin Module ล้วนๆ</li></ul><pre>apply plugin: &quot;androidx.navigation.safeargs.kotlin&quot;</pre><p><strong>ใน build.gradle(project)</strong> เพิ่ม classpath ดังนี้</p><pre>classpath &quot;androidx.navigation:navigation-safe-args-gradle-plugin:2.2.1&quot;</pre><h4>การส่ง Data ไปยัง Destination</h4><p>ทำได้โดยกำหนด argument ที่ navigation graph ใน fragment ปลายทางที่รับข้อมูล ตามนี้</p><pre>&lt;fragment<br>    android:id=&quot;@+id/accountFragment&quot;<br>    android:name=&quot;com.truedigital.navigation.me.AccountFragment&quot;&gt;<br><br>    <strong>&lt;argument<br>        android:name=&quot;message&quot;<br>        android:defaultValue=&quot;Hello&quot;<br>        app:argType=&quot;string&quot;<br>        app:nullable=&quot;true&quot; /&gt;</strong></pre><pre><strong>    &lt;argument<br>        android:name=&quot;number&quot;<br>        app:argType=&quot;integer&quot;<br>        app:nullable=&quot;false&quot; /&gt;</strong></pre><pre><strong>    &lt;argument<br>        android:name=&quot;account_id&quot;<br>        android:defaultValue=&quot;1&quot;<br>        app:argType=&quot;string&quot; /&gt;</strong></pre><pre>    &lt;action... /&gt;<br>&lt;/fragment&gt;</pre><ul><li>1 &lt;argument…/&gt; คือ 1 parameter</li><li><strong>android:name </strong>กำหนดชื่อ parameter</li><li><strong>app:argType</strong> กำหนด type of parameter เช่น string, integer, boolean, parcelable, serializable, enum, resource reference</li><li><strong>android:defaultValue(optional)</strong> กำหนดค่า default</li><li><strong>app:nullable(optional) </strong>กำหนดว่าเป็น nullable หรือไม่</li></ul><h3>อย่าลืม!! Rebuild ก่อนใช้งาน เพราะ diraction class ยังไม่ถูกสร้างเลย</h3><p><strong>ตัวอย่างการส่ง Data</strong></p><pre>findNavController().navigate(<br>    MeFragmentDirections.actionMeFragmentToAccountFragment(<br>        <strong>message = &quot;Account Page&quot;,<br>        number = 10,<br>        accountId = &quot;2&quot;</strong><br>    )<br>)</pre><p><strong>ตัวอย่างการรับ Data</strong></p><pre><em>arguments</em>?.<em>let </em><strong>{ </strong>arguments <strong>-&gt;<br>    val args = AccountFragmentArgs.fromBundle(arguments)</strong><br>    val message = args.message<br>    val number = args.number<br>    val id = args.accountId</pre><h4>ตัวอย่าง Parcelable</h4><ul><li><strong>set argument ใน navigation graph</strong></li></ul><pre>&lt;argument<br>    android:name=&quot;inboxModel&quot;<br>    android:defaultValue=&quot;@null&quot;<br>   <strong> app:argType=&quot;com.package.InboxModel&quot;</strong><br>    app:nullable=&quot;true&quot; /&gt;</pre><ul><li><strong>การส่ง Data</strong></li></ul><pre><em>findNavController</em>().navigate(<br>    MeFragmentDirections.actionMeFragmentToInboxFragment(<br>        <strong>inboxModel = InboxModel().<em>apply </em>{<br>            id = &quot;123&quot;<br>            title = &quot;inbox 1&quot;<br>            description = &quot;inbox description&quot;<br>        }<br>    </strong>)<br>)</pre><ul><li><strong>การรับ Data</strong></li></ul><pre><em>arguments</em>?.<em>let </em>{ arguments <strong>-&gt;<br>    </strong>val args = InboxFragmentArgs.fromBundle(arguments)<br>    val model = <strong>args.inboxModel</strong><br>}</pre><p><a href="https://developer.android.com/guide/navigation/navigation-pass-data">Pass data between destinations | Android Developers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffc154b9b6c2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/android-navigation-component-part-2-ffc154b9b6c2">Android Navigation Component — Part.2</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Navigation Component คืออะไรน้าา? — Part.1]]></title>
            <link>https://medium.com/tech-at-tdg/navigation-component-part-1-74218a8397bc?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/74218a8397bc</guid>
            <category><![CDATA[navigation-component]]></category>
            <category><![CDATA[fragments]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[navigation]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Wed, 29 Apr 2020 17:08:04 GMT</pubDate>
            <atom:updated>2020-04-30T09:22:01.121Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android Navigation Component คืออะไรน้าา? — Part.1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VB6wKY_NKyL2ueVoSGsnxw.png" /></figure><h4>คืออะไรน้าา?</h4><p>ก็คือ Component นั่นเอง ที่อยู่ในหมวด Architecture ของ Android Jetpack เปิดตัวขึ้นในงาน Google I/O 2018 ที่ผ่านมา</p><p>Navigation มีความโดดเด่นในเรื่องการจัดการ flow ของ app ในการ navigate ไปยัง screen ต่างๆ ซึ่งมีลักษณะคล้ายกับ Storyboard ใน XCode ของ iOS เลยค่ะ</p><h4>ใช้ได้ที่ Android Studio 3.3 ขึ้นไป</h4><h3>CONCEPT = Single Activity More Fragment</h3><h4>แล้วดียังไงล่ะ?</h4><ul><li>เห็นภาพ flow ของ app ว่าแต่ละ screen มีการ navigate ไปไหนบ้าง</li><li>ช่วยจัดการ fragment transaction ให้เอง (back stack ordering)</li><li>ทำ animation และ transition ได้</li><li>Passing data โดย Safe Args</li><li>Deeplink</li></ul><h3>Navigation Component ประกอบไปด้วย</h3><ol><li><strong>Navigation Graph คือ </strong>XML resource file ทำหน้าที่เชื่อมต่อ NavHostFragment กับ Destination (Screen ต่างๆ) เข้าด้วยกัน รวมถึงการกำหนด action ให้กับ Destination</li><li><strong>NavHostFragment </strong>เป็น Container ที่เอาไว้แสดง Destination โดยใส่ไว้ใน Layout ของ Activity</li><li><strong>NavController </strong>ไว้จัดการเรื่อง navigate</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxhZaKXPAcXjvobF6LLTNQ.png" /><figcaption>Credit : <a href="https://www.youtube.com/watch?v=Y0Cs2MQxyIs">Android Developers Channel</a></figcaption></figure><p>สำหรับบทความนี้จะพาไปทำ Navigation แบบเบื้องต้นกันค่ะ</p><h3>โจทย์คือ</h3><p>มี MainActivity ไว้วาง MainFragment และMainFragment มีปุ่มกดเพื่อเปิด AboutFragment ตามรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zFMG37SaT7J5xhkoiYa3ng.png" /><figcaption>Flow Example App</figcaption></figure><h3>Getting Started</h3><p>เพิ่ม dependencies ใน build.gradle(app) ดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ocyvPZALxxr7L4drFsriMQ.png" /><figcaption>dependencies of navigation</figcaption></figure><p>จากนั้น<strong>สร้าง Navigation Graph</strong> โดยคลิกขวาที่โฟลเดอร์ res เลือก New &gt; Android Resource File แล้วเลือก <strong>Resource type: Navigation </strong>และตั้งชื่อไฟล์</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9e4zpUQaPiVjVFNwrACFoQ.png" /><figcaption>New Resource File: Navigation</figcaption></figure><p>จะได้ไฟล์ nav_graph_main.xml ในโฟลเดอร์ navigation ตามรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*57qXNiOo2Pgc41jGAHc_zw.png" /><figcaption>position of navigation graph</figcaption></figure><p>หน้าตาของ navigation graph เป็นดังนี้ ยังไม่มี screen ใดๆเลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6HyzOzLSkgi_D-WkY-Ezw.png" /><figcaption>navigation graph</figcaption></figure><p>จากนั้น <strong>implement NavHost</strong> ที่ <strong>main_activity.xml</strong> ตามนี้</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    tools:context=&quot;.MainActivity&quot;&gt;</pre><pre>    <strong>&lt;fragment<br>        </strong>android:id=&quot;@+id/nav_host_fragment&quot;<strong><br>        android:name=&quot;androidx.navigation.fragment.NavHostFragment&quot;<br>        </strong>android:layout_width=&quot;0dp&quot;<br>        android:layout_height=&quot;0dp&quot;<strong><br>        app:defaultNavHost=&quot;true&quot;<br>        </strong>app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>        app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot;<strong><br>        app:navGraph=&quot;@navigation/nav_graph_main&quot; /&gt;</strong></pre><pre>&lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;</pre><ul><li><strong>android:name=“androidx.navigation.fragment.NavHostFragment”</strong></li><li><strong>app:defaultNavHost </strong>ใส่ค่า boolean ถ้าใส่ true คือ กำหนดให้ NavHost นั้นจัดการกับปุ่ม back ให้เรา</li><li><strong>app:navGraph </strong>ใส่ id ของ Navigation Graph (ไม่ใช่ชื่อไฟล์นะ อาจจะสับสนได้เพราะ id กับชื่อไฟล์เหมือนกัน)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nY5ij2G6rKiiF9zzf3xxKA.png" /><figcaption>id of Navigation Graph</figcaption></figure><h4>ทำความรู้จัก Navigation Graph กันก่อนค่ะ</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwLTrywGli_nSPHqXAGDPQ.png" /></figure><ol><li><strong>Destinations </strong>แสดง Host ที่ Navigation Graph นี้เชื่อมต่ออยู่ และ destination ที่ใช้ทั้งหมด</li><li><strong>Editor</strong></li><li><strong>Attributes</strong></li><li><strong>ปุ่ม New Destination </strong>ไว้เพิ่ม destination ที่ต้องการ</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*acwyai_ckSt7IokxVVaXZQ.png" /><figcaption>New Destination</figcaption></figure><h4>** Destination คือ activity หรือ fragment นั่นเอง **</h4><pre>&lt;fragment<br>        android:id=&quot;@+id/<strong>aboutFragment</strong>&quot;<br>        android:name=&quot;<strong>com.abc.workshop.AboutFragment</strong>&quot;<br>        android:label=&quot;About Fragment&quot;<br>        tools:layout=&quot;@layout/fragment_about&quot; /&gt;</pre><p>5.<strong> ปุ่ม Assign Start Destination </strong>ไว้กำหนดหน้าแรกให้กับ Navigation Graph สังเกตได้จากไอคอน Home หรือกำหนดที่ xml ได้เหมือนกัน</p><pre><strong>app:startDestination=&quot;@id/{idของFragment}&quot;</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*E8TsYgR5qKj4uO0uqDeMqA.png" /><figcaption>Start Destination</figcaption></figure><p>6. <strong>เส้น Action </strong>ใน editor สามารถลากจาก destination หนึ่งไปยังอีก destination ได้เลย หรือกำหนดใน xml</p><h3>ผลลัพธ์</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jc8bw3SnGibB-Tl5vsNV-w.png" /><figcaption>Result</figcaption></figure><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;navigation<br>    xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br>    android:id=&quot;@+id/nav_graph_main&quot;<br>    <strong>app:startDestination=&quot;@id/mainFragment&quot;</strong>&gt;</pre><pre>    &lt;fragment<br>        android:id=&quot;@+id/<strong>mainFragment</strong>&quot;<br>        android:name=&quot;<strong>com.truedigital.workshop.MainFragment</strong>&quot;<br>        android:label=&quot;Main Fragment&quot;<br>        tools:layout=&quot;@layout/fragment_main&quot;&gt;</pre><pre>        <strong>&lt;action<br>            android:id=&quot;@+id/action_mainFragment_to_aboutFragment&quot;<br>            app:destination=&quot;@id/aboutFragment&quot; /&gt;</strong><br>    &lt;/fragment&gt;</pre><pre>    &lt;fragment<br>        android:id=&quot;@+id/<strong>aboutFragment</strong>&quot;<br>        android:name=&quot;<strong>com.truedigital.workshop.AboutFragment</strong>&quot;<br>        android:label=&quot;About Fragment&quot;<br>        tools:layout=&quot;@layout/fragment_about&quot; /&gt;<br>&lt;/navigation&gt;</pre><h4>แล้วจะเปิด <strong>AboutFragment ได้ยังไงล่ะ</strong></h4><ol><li>ใส่ <strong>&lt;action …/&gt;</strong> ใน navigation graph</li></ol><pre>&lt;action<br>    android:id=&quot;@+id/action_mainFragment_to_aboutFragment&quot;<br>    app:destination=&quot;@id/aboutFragment&quot; /&gt;</pre><p>ในที่นี้ใส่ภายใน &lt;fragment ../&gt; ของ MainFragment เพราะมี action click ที่ MainFragment และต้องระบุ <strong>app:destination</strong> (screen ที่ต้องการเปิด) คือ AboutFragment และกำหนด <strong>id </strong>ให้กับ action</p><p><strong>หรือ</strong> ใส่ action ใน editor โดยลากเส้นจาก destination ต้นทางไปยังปลายทางค่ะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*-U_Cm2uFLYpz2-4b4hSFWQ.png" /><figcaption>action line</figcaption></figure><p><strong>2. implement NavController</strong> ดังนี้</p><pre>-- MainFragment.kt --</pre><pre>aboutButton.setOnClickListener {<br>    <strong>findNavController().navigate(<br>       R.id.action_mainFragment_to_aboutFragment<br>    )</strong><br>}</pre><h4>เสร็จแล้วววว ไม่ยากเลย</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*nYvJBjopFiuiodiOvFZQaQ.gif" /></figure><p>ถ้า MainFragment ต้องการ navigate ไปหน้าอื่น เช่น SettingFragment ทำได้โดยเพิ่ม &lt;action …/&gt; ที่ navigation graph และใช้ NavController ในการ navigate ได้เลยค่ะ</p><pre>&lt;navigation<br>    ...&gt;</pre><pre>    &lt;fragment<br>        android:id=&quot;@+id/mainFragment&quot;<br>        android:name=&quot;com.truedigital.workshop.MainFragment&quot;<br>        android:label=&quot;Main Fragment&quot;<br>        tools:layout=&quot;@layout/fragment_main&quot;&gt;</pre><pre>        &lt;action<br>            android:id=&quot;@+id/action_mainFragment_to_aboutFragment&quot;<br>            app:destination=&quot;@id/aboutFragment&quot; /&gt;<br>        <strong>&lt;action<br>            android:id=&quot;@+id/action_mainFragment_to_settingFragment&quot;<br>            app:destination=&quot;@id/settingFragment&quot; /&gt;</strong></pre><pre>    &lt;/fragment&gt;</pre><pre>&lt;fragment<br>        ...<br>        .AboutFragment&quot;<br>        ... /&gt;<br>    <strong>&lt;fragment<br>        android:id=&quot;@+id/settingFragment&quot;<br>        android:name=&quot;com.truedigital.workshop.SettingFragment&quot;<br>        android:label=&quot;Setting Fragment&quot;<br>        tools:layout=&quot;@layout/fragment_setting&quot; /&gt;</strong></pre><pre>&lt;/navigation&gt;</pre><h4>มี Animation ด้วยนะ</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*wOMKxHkW3BnWHiWHoEFQ0Q.gif" /><figcaption><a href="https://www.ilikesticker.com/LineStickerAnimation/W540451-Stressful-Panda/en">Credit by ilikesticker</a></figcaption></figure><h4>ใส่ Animation ยังไงล่ะ</h4><p>ใน &lt;action ../&gt; ตามด้านล่างได้เลยค่ะ สามารถ custom animation ได้เองอีกด้วย</p><pre>&lt;action<br>    android:id=&quot;@+id/action_mainFragment_to_aboutFragment&quot;<br>    app:destination=&quot;@id/aboutFragment&quot;<br>   <strong> app:enterAnim=&quot;@anim/slide_in_anim&quot;<br>    app:exitAnim=&quot;@anim/slide_out_anim&quot;<br>    app:popEnterAnim=&quot;@anim/pop_in_anim&quot;<br>    app:popExitAnim=&quot;@anim/pop_out_anim&quot;</strong> /&gt;</pre><ul><li><strong>enter</strong>Anim จังหวะเปิด destination ตัวใหม่</li><li><strong>exit</strong>Anim จังหวะปิด destination ปัจจุบัน</li><li><strong>popEnter</strong>Anim จังหวะเปิด destination ตัวก่อนหน้า เมื่อกด back</li><li><strong>popExit</strong>Anim จังหวะ pop destination ปัจจุบันออก เมื่อกด back</li></ul><h4>ผลลัพธ์</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*l-4zGq_bYjRYSM78GXsKJA.gif" /></figure><p>จบแล้วกับการสร้าง Navigation Graph แบบเบื้องต้น ใช้งานง่าย แถมจัดการ fragment transaction ให้อีกด้วย และยังใส่ animation ได้อีก น่าสนใจขนาดนี้<br>จะไม่ใช้ก็คงไม่ได้แล้วววววว</p><p>ฝากติดตาม Part2 เร็วๆนี้ด้วยนะคะ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74218a8397bc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/navigation-component-part-1-74218a8397bc">Android Navigation Component คืออะไรน้าา? — Part.1</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Review บรรยากาศงาน Mastering of Constraint Layout]]></title>
            <link>https://medium.com/tech-at-tdg/review-%E0%B8%9A%E0%B8%A3%E0%B8%A3%E0%B8%A2%E0%B8%B2%E0%B8%81%E0%B8%B2%E0%B8%A8%E0%B8%87%E0%B8%B2%E0%B8%99-mastering-of-constraint-layout-eaf6d5e9400a?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaf6d5e9400a</guid>
            <category><![CDATA[constraintlayout]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[righttalk]]></category>
            <category><![CDATA[true-digital-group]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Thu, 26 Mar 2020 15:11:16 GMT</pubDate>
            <atom:updated>2020-03-30T02:18:48.365Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q-hsZD-tpSDmgeFVXbsmIg.jpeg" /></figure><p>ผ่านไปแล้วกับ Knowledge Sharing ครั้งแรก ในหัวข้อ Mastering of Constraint Layout ทั้งนี้ได้รับเกียรติจากทีมงาน Right Talk จัด live สดผ่าน Facebook ด้วย ใครที่พลาดไปสามารถเข้าไปดูย้อนหลังได้อีกด้วย เจ๋งสุดๆๆ</p><p>เริ่มด้วยกล่าวเปิดงานโดยท่านประธาน Right Talk</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-X45v1W-1Gcj9Oj-L4jTA.jpeg" /><figcaption>Head of Right Talk</figcaption></figure><p>เนื้อหามีดังนี้<br>Part1: Overview<br><a href="https://medium.com/@natcha.jintana/%E0%B8%88%E0%B8%9A%E0%B8%97%E0%B8%B8%E0%B8%81%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2-imageview-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-dimension-ratio-bf26453684b3">Part2: Dimension Ratio</a><br><a href="https://medium.com/@natcha.jintana/%E0%B8%A1%E0%B8%B2%E0%B8%84%E0%B8%A5%E0%B9%89%E0%B8%AD%E0%B8%87-view-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-chain-%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B9%80%E0%B8%96%E0%B8%AD%E0%B8%B0-b77d0065bc0e">Part3: Chain</a> x <a href="https://medium.com/@natcha.jintana/chain-x-weight-f4c2357ff27">Weight</a><br><a href="https://medium.com/@natcha.jintana/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-guideline-%E0%B9%84%E0%B8%A7%E0%B9%89%E0%B9%84%E0%B8%81%E0%B8%94%E0%B9%8C-view-d6242d7836ec">Part4: Guideline</a><br>Part5: Barrier<br>Part6: Group<br>Workshop</p><p>สำหรับ session นี้มีผู้เข้าร่วมประมาณ 20–30 คน ไม่ใช่แค่ Android Developer เท่านั้น iOS Developer ก็ให้ความสนใจเช่นกัน</p><p>บรรยากาศภายในงานจ้าา…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K1owogzEEL86VzdGP1aIaw.jpeg" /><figcaption>ฟังกันชิวๆ</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*fhf7PqDOH6RR6frFgoKzWw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yMAm8UCTDzZECxBZ2_EJgQ.jpeg" /><figcaption>Speaker เองค่าาา x รอยยิ้มจาก Android Developer ^^</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghBLtbBEdw5a9yAho_9FFQ.jpeg" /></figure><p>เมื่อช่วง Workshop มาถึง ทุกคนตั้งใจกันอย่างเต็มที่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1eyHSKSi01P4Trm1FZngpw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-BL61FEIsg7IvCqn517Sw.jpeg" /><figcaption>ตั้งใจกันสุดๆไปเลยยย</figcaption></figure><p>Workshop ให้สร้าง layout ตามนี้ค่ะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0AAFFBTUW_Py3rST4E6VSQ.png" /></figure><p>สามารถ clone project จาก <a href="https://github.com/lookmoojin/PigletConstraint">https://github.com/lookmoojin/PigletConstraint</a> มาลองสร้าง layout ตามนี้ได้เลย หรือเข้าไปดูเฉลยกันได้ค่ะ</p><p><a href="https://github.com/lookmoojin/PigletConstraint">lookmoojin/PigletConstraint</a></p><p><strong>Presentation &gt;&gt;</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fembed%3Fid%3D1dHIyoDly_yHCVMkBQN1R5vRxEQSQy7cOpzqTSOMUYzQ%26size%3Dl&amp;display_name=Google+Docs&amp;url=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fd%2F1dHIyoDly_yHCVMkBQN1R5vRxEQSQy7cOpzqTSOMUYzQ%2Fedit%3Fusp%3Dsharing&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="700" height="559" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee448e54636641ae5456056eebcd90d8/href">https://medium.com/media/ee448e54636641ae5456056eebcd90d8/href</a></iframe><p>ปิดท้ายด้วย Kahoot! ทดสอบความรู้กัน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vOx2NAgQQjVrLEtN8IYAQ.jpeg" /></figure><p>แจกของรางวัลน่ารักๆให้กับผู้ชนะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*9mJzN5H2Cbpc6sd2lrVPxQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*WpltXSKSCa10r8Idx2uNvA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*cvBjRcSs0xr9WBaoTBuOEw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*wPIG7IXC62CpIgZUN08b3w.jpeg" /></figure><p>ขอบคุณ TDG &amp; Right Talk ที่ให้โอกาส และสนับสนุน Speaker รุ่นใหม่ ทำให้ knowledge sharing ครั้งแรกนี้สมบูรณ์ที่สุด หวังว่าความรู้นำมาแชร์ในครั้งนี้จะเป็นประโยชน์กับทุกคน และเป็นแรงผลักดันให้เกิด Speaker รุ่นใหม่ๆต่อไปค่ะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*h5yWbfhKXqzim6cJpxtxhw.jpeg" /><figcaption>แล้วเจอกันใหม่ บายยยย^^</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaf6d5e9400a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/review-%E0%B8%9A%E0%B8%A3%E0%B8%A3%E0%B8%A2%E0%B8%B2%E0%B8%81%E0%B8%B2%E0%B8%A8%E0%B8%87%E0%B8%B2%E0%B8%99-mastering-of-constraint-layout-eaf6d5e9400a">Review บรรยากาศงาน Mastering of Constraint Layout</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สร้าง Guideline ไว้ไกด์ view]]></title>
            <link>https://medium.com/@natcha.jintana/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-guideline-%E0%B9%84%E0%B8%A7%E0%B9%89%E0%B9%84%E0%B8%81%E0%B8%94%E0%B9%8C-view-d6242d7836ec?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6242d7836ec</guid>
            <category><![CDATA[constraintlayout]]></category>
            <category><![CDATA[percent]]></category>
            <category><![CDATA[guidelines]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Sat, 14 Mar 2020 14:37:03 GMT</pubDate>
            <atom:updated>2020-03-28T13:08:56.093Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oui178wRyb8OH_DqpslUtg.png" /></figure><p>Guideline เป็น Helper ของ ConstraintLayout มีลักษณะเป็นเส้นประ ปรากฎตามตำแหน่งที่กำหนดอิงจาก screen ใช้สำหรับให้ view ยึดเกาะได้</p><blockquote>** เส้น Guideline จะแสดงให้เห็นขณะ dev เท่านั้น ไม่แสดงบน Device</blockquote><p><strong>เมื่อไหร่ถึงใช้ Guideline ?</strong></p><ul><li>ต้องการยึด view อยู่ในตำแหน่งตามสัดส่วนของหน้าจอ</li><li>ต้องการ set margin start หรือ end ให้กับหลายๆ view ก็เปลี่ยนมายึดติดกับ guideline ตัวเดียวแทน ตามรูปด้านล่าง</li></ul><p><strong>ตัวอย่างการใช้ Guideline (เส้นประสีแดง)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*HStqpO7MDiXPqD8dkODeDg.png" /><figcaption>แสดงเส้น Guideline (เส้นประสีแดง)</figcaption></figure><p><strong>Attribute ที่ใช้งาน</strong></p><ul><li><strong>กำหนด Orientation</strong></li></ul><pre>android:orientation=&quot;{vertical หรือ horizontal}&quot;</pre><ul><li><strong>กำหนดตำแหน่ง</strong></li></ul><p><strong>1. Percent</strong> - เส้น Guideline อยู่ตำแหน่งเปอร์เซ็นต์ตามขนาดความกว้าง หรือ <br>ความสูงของหน้าจอ มีค่า 0 -&gt; 1<br>0 = 0%<br>0.5 = 50%<br>0.7 = 70%<br>1 = 100%</p><pre>app:layout_constraintGuide_percent=&quot;{0 ถึง 1}&quot;</pre><p><strong>2. Begin</strong> - เส้น Guideline ห่างจากตำแหน่ง start = {dp}</p><pre>app:layout_constraintGuide_begin=&quot;{dp}&quot;</pre><p><strong>3. End </strong>- เส้น Guideline ห่างจากตำแหน่ง end= {dp}</p><pre>app:layout_constraintGuide_end=&quot;{dp}&quot;</pre><p><strong>รูปแบบการใช้งาน</strong></p><ul><li><strong>กำหนด Orientation</strong></li></ul><pre>android:orientation=&quot;vertical&quot;<br>หรือ<br>android:orientation=&quot;horizontal&quot;</pre><ul><li><strong>กำหนดตำแหน่ง</strong></li></ul><pre>app:layout_constraintGuide_percent=&quot;0.7&quot;<br>หรือ<br>app:layout_constraintGuide_begin=&quot;250dp&quot;<br>หรือ<br>app:layout_constraintGuide_end=&quot;44dp&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*O5EjDrfck3yOaCyxFX1j4w.png" /><figcaption>Orientation = Verital &amp; รูปแบบทั้งหมดของ Guideline</figcaption></figure><p><strong>Create Guideline</strong></p><p>คลิกขวาที่ view &gt; Helpers &gt; เลือก Guideline แบบ vertical หรือ Horizontal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-PS-RPffkQSTEOFsHS3iQ.png" /></figure><p><strong>ตัวอย่างการใช้งานแบบ Horizontal</strong></p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;&gt;<br><br>    <strong>&lt;androidx.constraintlayout.widget.Guideline</strong><br>        android:id=&quot;@+id/guideline&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        <strong>android:orientation=&quot;horizontal&quot;<br>        app:layout_constraintGuide_percent=&quot;0.1&quot;</strong> /&gt;<br><br>    &lt;Button<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;Click Me&quot;<br>        app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>        app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>        app:layout_constraintTop_toTopOf=&quot;@+id/guideline&quot; /&gt;<br><br>&lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;</pre><p><strong>ผลลัพธ์</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*yEMLEqrizngbjlwR6bMHCg.png" /></figure><p>เป็นยังไงกันบ้างค่ะ สำหรับการใช้งาน Guideline ในรูปแบบต่างๆ ไม่ยากอย่างที่คิด ลองนำไปกันดูนะคะ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6242d7836ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[มาคล้อง View ด้วย Chain กันเถอะ]]></title>
            <link>https://medium.com/tech-at-tdg/%E0%B8%A1%E0%B8%B2%E0%B8%84%E0%B8%A5%E0%B9%89%E0%B8%AD%E0%B8%87-view-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-chain-%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B9%80%E0%B8%96%E0%B8%AD%E0%B8%B0-b77d0065bc0e?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b77d0065bc0e</guid>
            <category><![CDATA[android-developers]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[constraintlayout]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Thu, 12 Mar 2020 16:14:22 GMT</pubDate>
            <atom:updated>2020-03-16T02:19:07.380Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RCPTIgUqRCZfcwhy653ZQ.png" /><figcaption>Photo by <a href="https://www.reliance-foundry.com/bollard/accessories-bollards/chain">reliance-foundry</a></figcaption></figure><p>Chain เป็นหนึ่งในความสามารถของ Constraint Layout ทำหน้าที่คล้อง Widget ตั้งแต่ 2 ชิ้นขึ้นไป เข้าด้วยกัน ลักษณะเหมือนกับ Linear Layout</p><p><strong>Attribute ที่ใช้งาน</strong></p><pre>app:layout_constraintVertical_chainStyle=&quot;{style}&quot;<br>app:layout_constraintHorizontal_chainStyle=&quot;{style}&quot;</pre><p><strong>Chain Style</strong></p><pre>1. packed<br>2. spread<br>3. spread_inside</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*ZazXQZ1LxqHGXKXpwDpsOw.png" /><figcaption><strong>packed</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*4hpxueW6UHAnDPiUmWpGJA.png" /><figcaption><strong>spread</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*EMfUCCPoAmyGCqDnQ64keg.png" /><figcaption><strong>spread_inside</strong></figcaption></figure><p><strong>รูปแบบการใช้งาน</strong></p><pre>app:layout_constraintVertical_chainStyle=&quot;packed&quot;<br>app:layout_constraintVertical_chainStyle=&quot;spread&quot;<br>app:layout_constraintVertical_chainStyle=&quot;spread_inside&quot;</pre><pre>app:layout_constraintHorizontal_chainStyle=&quot;packed&quot;<br>app:layout_constraintHorizontal_chainStyle=&quot;spread&quot;<br>app:layout_constraintHorizontal_chainStyle=&quot;spread_inside&quot;</pre><p><strong>ตัวอย่างการใช้งานแบบ Horizontal</strong></p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/textView1&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;TextView1&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toStartOf=&quot;@+id/textView2&quot;<br>        <strong>app:layout_constraintHorizontal_chainStyle=&quot;spread&quot;</strong><br>        app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/textView2&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;TextView2&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toStartOf=&quot;@+id/textView3&quot;<br>        app:layout_constraintStart_toEndOf=&quot;@+id/textView1&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/textView3&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;TextView3&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>        app:layout_constraintStart_toEndOf=&quot;@+id/textView2&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;<br>&lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;</pre><p><strong>ผลลัพธ์</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*VzTy9IZXXOD5d_kWtU-9MA.png" /><figcaption>horizontal — spread style</figcaption></figure><p>นอกจากนี้ Chain ยังสามารถทำงานร่วมกับ weight ได้อีกด้วย โดยสามารถเข้าไปอ่านกันได้ที่ <a href="https://medium.com/@natcha.jintana/chain-x-weight-f4c2357ff27">Chain x Weight</a> ค่ะ</p><p><a href="https://medium.com/@natcha.jintana/chain-x-weight-f4c2357ff27">Chain x Weight</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b77d0065bc0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/%E0%B8%A1%E0%B8%B2%E0%B8%84%E0%B8%A5%E0%B9%89%E0%B8%AD%E0%B8%87-view-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-chain-%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B9%80%E0%B8%96%E0%B8%AD%E0%B8%B0-b77d0065bc0e">มาคล้อง View ด้วย Chain กันเถอะ</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chain x Weight]]></title>
            <link>https://medium.com/tech-at-tdg/chain-x-weight-f4c2357ff27?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4c2357ff27</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[constraintlayout]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Thu, 12 Mar 2020 15:17:23 GMT</pubDate>
            <atom:updated>2020-03-23T02:59:28.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*6jio_d-vUI5-clN1Gr4AxQ.jpeg" /><figcaption>Photo by <a href="https://health.clevelandclinic.org/why-people-diet-lose-weight-and-gain-it-all-back/">clevelandclinic</a></figcaption></figure><p>การใช้งาน weight ร่วมกับ chain ใน ConstraintLayout นั้น เหมือนกับการใช้ layout_weight ใน LinearLayout เลยค่ะ</p><p><strong>Attribute ที่ใช้งาน</strong></p><pre>app:layout_constraintHorizontal_weight=&quot;{weight}&quot;<br>app:layout_constraintVertical_weight=&quot;{weight}&quot;</pre><p><strong>ตัวอย่างการใช้งานแบบ Horizontal</strong></p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/textView1&quot;<br>        <strong>android:layout_width=&quot;0dp&quot;</strong><br>        android:layout_height=&quot;wrap_content&quot;<br>        android:background=&quot;@color/sky&quot;<br>        android:text=&quot;TextView1&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toStartOf=&quot;@+id/textView2&quot;<br>        <strong>app:layout_constraintHorizontal_weight=&quot;1&quot;</strong><br>        app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/textView2&quot;<br>        <strong>android:layout_width=&quot;0dp&quot;</strong><br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;TextView2&quot;<br>        android:background=&quot;@color/orange&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toStartOf=&quot;@+id/textView3&quot;<br>        <strong>app:layout_constraintHorizontal_weight=&quot;2&quot;</strong><br>        app:layout_constraintStart_toEndOf=&quot;@+id/textView1&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/textView3&quot;<br>        <strong>android:layout_width=&quot;0dp&quot;</strong><br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;TextView3&quot;<br>        android:background=&quot;@color/green&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>        <strong>app:layout_constraintHorizontal_weight=&quot;3&quot;</strong><br>        app:layout_constraintStart_toEndOf=&quot;@+id/textView2&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;</pre><pre>&lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;</pre><p><strong>ผลลัพธ์</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*0ftK7L6yDUKrZqUlXFPe8Q.png" /><figcaption>Horizontal Weight 1–2–3</figcaption></figure><blockquote>แบบ <strong>Horizontal</strong>จะต้องกำหนด <strong>android:layout_width=”0dp”<br></strong>แบบ <strong>Vertical</strong> จะต้องกำหนด <strong>android:layout_height=”0dp”</strong></blockquote><p>การนำ weight ใช้งานร่วมกับ chain นั้นไม่ยากเลย ลองนำไปใช้กันดูนะคะ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4c2357ff27" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/chain-x-weight-f4c2357ff27">Chain x Weight</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[จบทุกปัญหา ImageView ด้วย Dimension Ratio]]></title>
            <link>https://medium.com/tech-at-tdg/%E0%B8%88%E0%B8%9A%E0%B8%97%E0%B8%B8%E0%B8%81%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2-imageview-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-dimension-ratio-bf26453684b3?source=rss-8bbe1b082a6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf26453684b3</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[constraintlayout]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Natcha Jintanasatien]]></dc:creator>
            <pubDate>Thu, 12 Mar 2020 15:12:04 GMT</pubDate>
            <atom:updated>2020-03-14T14:35:28.688Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-n1H1b_8bfNqGVD56u28fg.png" /></figure><p><strong>Dimension Ratio </strong>เป็นความสามารถอย่างหนึ่งของ Constraint Layout ใช้สำหรับ รักษาสัดส่วน (Ratio) ให้กับ widget เช่น ImageView Button CustomView etc.</p><p><strong>Attribute ที่ใช้งาน</strong></p><pre>app:layout_constraintDimensionRatio=&quot;width:height&quot;</pre><p><strong>รูปแบบการใช้งาน</strong></p><pre>app:layout_constraintDimensionRatio=&quot;16:9&quot;</pre><pre>app:layout_constraintDimensionRatio=&quot;H,16:9&quot;</pre><pre>app:layout_constraintDimensionRatio=&quot;W,9:16&quot;</pre><pre>app:layout_constraintDimensionRatio=&quot;16.55555:9.555555&quot;</pre><p><strong>ตัวอย่างการใช้งานกับ ImageView</strong></p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;&gt;</pre><pre>    &lt;ImageView<br>        <strong>android:layout_width=&quot;0dp&quot;<br>        android:layout_height=&quot;0dp&quot;</strong><br>        android:src=&quot;@drawable/image_16_9&quot;<br>        app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>        <strong>app:layout_constraintDimensionRatio=&quot;16:9&quot;</strong><br>        app:layout_constraintEnd_toEndOf=&quot;parent&quot;<br>        app:layout_constraintStart_toStartOf=&quot;parent&quot;<br>        app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;</pre><pre>&lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;</pre><blockquote>กำหนด <strong>android:layout_width=”0dp”</strong> และ <strong>android:layout_height=”0dp”</strong> เพื่อให้ ImageView แสดง ratio ได้ถูกต้อง</blockquote><p><strong>ผลลัพธ์</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*HZOfIPcXZA0hY6hh1zo6Uw.png" /><figcaption>16:9 Resoultion ImageView</figcaption></figure><p>หวังว่าบทความนี้จะเป็นประโยชน์กับทุกคน ครั้งหน้าหากเจอ ImageView หรือ Widget อื่นๆ ลองนำ dimension ratio ไปใช้งานกันดูนะคะ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf26453684b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-tdg/%E0%B8%88%E0%B8%9A%E0%B8%97%E0%B8%B8%E0%B8%81%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2-imageview-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-dimension-ratio-bf26453684b3">จบทุกปัญหา ImageView ด้วย Dimension Ratio</a> was originally published in <a href="https://medium.com/tech-at-tdg">te&lt;h @TDM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>