<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Java on Johnny Huang</title><link>https://hzqtc.github.io/tags/java/</link><description>Recent content in Java on Johnny Huang</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 13 Dec 2013 00:00:00 +0000</lastBuildDate><atom:link href="https://hzqtc.github.io/tags/java/index.xml" rel="self" type="application/rss+xml"/><item><title>Android Custom Layout: FlowLayout</title><link>https://hzqtc.github.io/2013/12/android-custom-layout-flowlayout.html</link><pubDate>Fri, 13 Dec 2013 00:00:00 +0000</pubDate><guid>https://hzqtc.github.io/2013/12/android-custom-layout-flowlayout.html</guid><description>&lt;p&gt;Hello, Android devs! This is my first blog about Android. We know Android SDK provides you a bunch&#10;of useful layouts: &lt;code&gt;FrameLayout&lt;/code&gt;, &lt;code&gt;LinearLayout&lt;/code&gt;, &lt;code&gt;RelativeLayout&lt;/code&gt;, etc. So where is &lt;code&gt;FlowLayout&lt;/code&gt;,&#10;which works like a multiline &lt;code&gt;TextView&lt;/code&gt; but holding views instead of texts? Developers can just add&#10;views to a &lt;code&gt;FlowLayout&lt;/code&gt; and each view is put to the right of the previous one and wraps to a new row&#10;when the current row is full. I&amp;rsquo;m gonna show you how you could implement your own &lt;code&gt;FlowLayout&lt;/code&gt; with&#10;less than 100 lines of code.&lt;/p&gt;</description></item></channel></rss>