Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlowLayout with minHeigth #28

Open
AustrianDudes opened this issue Nov 3, 2014 · 1 comment
Open

FlowLayout with minHeigth #28

AustrianDudes opened this issue Nov 3, 2014 · 1 comment

Comments

@AustrianDudes
Copy link

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>

@ApmeM
Copy link
Owner

ApmeM commented Dec 4, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants