线性布局,如果当前行没有空间,则会将内容包装到下一行。
org.apmem.tools layouts 1.10 provided 将以下 XML 代码添加到 layout/something.xml 中: <org.apmem.tools.layouts.FlowLayout xmlns:android="http://schemas.android.com/apk/res/android"" android:layout_width="fill_parent" android:layout_height="wrap_content" /> 要更改默认方向,请使用以下代码: android:orientation="vertical" 要更改布局方向,请使用以下代码: xmlns:f="http://schemas.android.com/apk/res/your.namespace"" f:layoutDirection="rtl" Android 重力现在已受支持(与元素 weight 结合使用):
f:weightDefault="1.0" android:gravity="fill" 如果需要在某个对象之前打断行,即使前一行中有足够的空间,则在子视图元素中使用以下布局参数: f:layout_newLine="true" 布局参数: * android:orientation - 行方向。使用以下值之一: * horizontal - 行将沿水平方向,行分隔符将创建新行 * vertical - 行将沿垂直方向,行分隔符将创建新行
暂无开放 Issues,或尚未同步最近议题。