-1
我正在使用Google's FlexboxLayout Android library。Android Google FlexboxLayout:獲取行數或列數
我在尋找如何獲得(當flexDirection
屬性設置爲row
或row_reverse
)或列(當flexDirection
屬性設置爲column
或column_reverse
)的行數。
我正在使用Google's FlexboxLayout Android library。Android Google FlexboxLayout:獲取行數或列數
我在尋找如何獲得(當flexDirection
屬性設置爲row
或row_reverse
)或列(當flexDirection
屬性設置爲column
或column_reverse
)的行數。
方法FlexboxLayout.getFlexLines()
返回com.google.android.flexbox.FlexLine
的實例列表,每個實例都包含與FlexBoxLayout
的主軸上的線相關的屬性。 我只需要檢索列表的大小以獲取主軸上的行數。
很好,如果你找到解決方案,但你可以請添加一些關於解決方案的描述,以幫助堆棧溢出社區。 –
對不起,我更正了 – Yairopro