Try doing programmatically
FlowLayout
 inflater = (FlowLayout) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
FlowLayout ll = (FlowLayout) inflater.inflate(R.layout.main, null);
FlowLayout tv = (FlowLayout) inflater.inflate(R.layout.secondlayout, null);
tv.setLayoutParams(new FlowLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
ll.addView(tv);
setContentView(ll);
use it like this on layout
<org.apmem.tools.layouts.FlowLayout
                        xmlns:f="http://schemas.android.com/apk/res/com.lopply.lopply"
                        xmlns:android="http://schemas.android.com/apk/res/android"
                        android:id="@+id/content3"
                        android:layout_marginTop="15dp"
                        android:layout_width="230dp"
                        android:layout_height="190dp"
                        android:layout_below="@id/title3"
                        f:horizontalSpacing="2dp" >
                        <TextView
                            android:id="@+id/content3"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/label_tip_3"
                            android:textColor="#5e5e5e"
                            android:textSize="18dp" />
                        <TextView
                            android:id="@+id/lblFacebook"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/label_tip_3_facebook"
                            android:textColor="#c64d31"
                            android:textSize="18dp" />
                        <TextView
                            android:id="@+id/lblAnd"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/label_tip_3_and"
                            android:textColor="#5e5e5e"
                            android:textSize="18dp" />
                        <TextView
                            android:id="@+id/lblTwitter"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/label_tip_3_twitter"
                            android:textColor="#c64d31"
                            android:textSize="18dp" />
                        <TextView
                            android:id="@+id/lblDot"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/label_tip_3_dot"
                            android:textColor="#5e5e5e"
                            android:textSize="18dp" />
                    </org.apmem.tools.layouts.FlowLayout>