Flexbox-Layout v0.3.0-alpha3 發布

jopen 7年前發布 | 9K 次閱讀 Android Layout Flexbox-Layout

 

Flexbox 是屬于web前端領域CSS的一種布局方案,是2009年W3C提出了一種新的布局方案,可以簡便、完整、響應式地實現各種頁面布局,并且 React Native 也是使用的 Flex 布局。你可以簡單的理解為 Flexbox 是CSS領域類似 Linearlayout 的一種布局,但是要比 Linearlayout 要強大的多。

在 Android 開發中使用 Linearlayout + RelativeLayout 基本可以實現大部分復雜的布局,但是Google就想了,有沒有類似 Flexbox 的一個布局呢?這使用起來一個布局就可以搞定各種復雜的情況了,于是 FlexboxLayout 就應運而生了。 所以 FlexboxLayout 是針對 Android 平臺的,實現類似 Flexbox 布局方案。

更新日志

  • Fix the issue RecyclerView becomes invisible when wrapped with another RecyclerView or ScrollView (#199#208)
  • Fix the issue the first line disappeared when the user scrolls that makes the first line invisible then try to scroll back to the top, on the condition the second line has more items than the first line. (#228#229)
  • Fix the issue after the scrollTo method is called the item specified as the argument is always placed at the first line. (#206)
  • Fix the issue when developers handle configuration changes by themselves, the flex lines before the anchor position were not discarded (#198)
  • Fix the issue a ViewHolder was created multiple times in a single layout pass (#242)

下載

本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/3dab4d5e

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!