android-flowlayout icon indicating copy to clipboard operation
android-flowlayout copied to clipboard

FlowLayout with minHeigth

Open AustrianDudes opened this issue 10 years ago • 1 comments

Hi ApmeM, First of all thanks for your FlowLayout it solved some of my layout issues I were experiencing. Unfortunately it seems like the android:minHeigth property is ignored; is there any way to work around this?

This is how I currently use your FlowLayout:

<com.testapp.elements.FlowLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:minHeight="@dimen/verticalMarginBigger" android:gravity="center_vertical" app:orientation="horizontal" app:weightDefault="1.0">

<!-- Here other views are added -->

</com.testapp.elements.FlowLayout>

AustrianDudes avatar Nov 03 '14 10:11 AustrianDudes

Hi, sorry for late response.

Do I understand correctly this is a FlowLayout attribute that means if parent wants to reduce FlowLayout size less then minHeight / minWidth then we need to set height / width to that value and part of the FlowLayout will be hidden by parent layout because of its actual size is less then FlowLayout size?

ApmeM avatar Dec 04 '14 15:12 ApmeM