Flexbox-Layout v0.2.4 發布,?Android實現類似 Flexbox 布局
Flexbox 是屬于web前端領域CSS的一種布局方案,是2009年W3C提出了一種新的布局方案,可以簡便、完整、響應式地實現各種頁面布局,并且 React Native 也是使用的 Flex 布局。你可以簡單的理解為 Flexbox 是CSS領域類似 Linearlayout 的一種布局,但是要比 Linearlayout 要強大的多。
在 Android 開發中使用 Linearlayout + RelativeLayout 基本可以實現大部分復雜的布局,但是Google就想了,有沒有類似 Flexbox 的一個布局呢?這使用起來一個布局就可以搞定各種復雜的情況了,于是 FlexboxLayout 就應運而生了。 所以 FlexboxLayout 是針對 Android 平臺的,實現類似 Flexbox 布局方案。
更新日志
-
Fix the issue invalid height is set in the following situation (#139)
- flex direction is set to row (or row_reverse)
- FlexboxLayout has a TextView (or other views that expand vertically if not enough space is left horizontally)
- TextView's layout_width is set to 0dp, layout_height is set to wrap_content and layout_flexGrow is set to positive
-
Fix the center alignment when margin is set only one side of a flex item to be consistent with the CSS spec (#138)
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/7d5dcb4b
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!