Flexbox-Layout v0.2.5 發布,?Android實現類似 Flexbox 布局
Flexbox 是屬于web前端領域CSS的一種布局方案,是2009年W3C提出了一種新的布局方案,可以簡便、完整、響應式地實現各種頁面布局,并且 React Native 也是使用的 Flex 布局。你可以簡單的理解為 Flexbox 是CSS領域類似 Linearlayout 的一種布局,但是要比 Linearlayout 要強大的多。
在 Android 開發中使用 Linearlayout + RelativeLayout 基本可以實現大部分復雜的布局,但是Google就想了,有沒有類似 Flexbox 的一個布局呢?這使用起來一個布局就可以搞定各種復雜的情況了,于是 FlexboxLayout 就應運而生了。 所以 FlexboxLayout 是針對 Android 平臺的,實現類似 Flexbox 布局方案。
更新日志
- layout_height is set to wrap_content for the FlexboxLayout
- Bottom (or top) margin is set to a child
- The child which has the bottom (top) margin has the largest height in the same flex line (or only a single child exists)
- The child has a positive layout_flexGrow attribute set
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/1a1ea49e
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!