Flexbox-Layout v0.2.3 發布,?Android實現類似 Flexbox 布局
Flexbox 是屬于web前端領域CSS的一種布局方案,是2009年W3C提出了一種新的布局方案,可以簡便、完整、響應式地實現各種頁面布局,并且 React Native 也是使用的 Flex 布局。你可以簡單的理解為 Flexbox 是CSS領域類似 Linearlayout 的一種布局,但是要比 Linearlayout 要強大的多。
在 Android 開發中使用 Linearlayout + RelativeLayout 基本可以實現大部分復雜的布局,但是Google就想了,有沒有類似 Flexbox 的一個布局呢?這使用起來一個布局就可以搞定各種復雜的情況了,于是 FlexboxLayout 就應運而生了。 所以 FlexboxLayout 是針對 Android 平臺的,實現類似 Flexbox 布局方案。
更新日志
-
Adds the feature to put dividers between flex items or flex lines. Following attributes are now supported ( #100 )
- showDivider
- showDividerHorizontal
- showDividerVertical
- dividerDrawable
- dividerDrawableHorizontal
- dividerDrawableVertical
-
Exposes the
FlexLine
class andgetFlexLines()
method to offer the read-only information about the flex lines contained in the FlexboxLayout. ( #102 ) -
Fixes the issue that an empty flex line is added if the initial length of the first item is large ( #88)
</ul>
下載
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!