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 does not work with enclosing ScrollView #81

Open
Spookyguy opened this issue Mar 8, 2017 · 2 comments
Open

FlowLayout does not work with enclosing ScrollView #81

Spookyguy opened this issue Mar 8, 2017 · 2 comments

Comments

@Spookyguy
Copy link

Hi,

as the title says, i can't get FlowLayout to work with an enclosing Scrollview. XML is like follows:

`

    <org.apmem.tools.layouts.FlowLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#000000"
        android:gravity="fill"
        android:isScrollContainer="true"
        android:orientation="horizontal"
        android:padding="50dp"
        android:scrollbars="vertical">

        <ImageView
            android:id="@+id/katana"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="openChecklist"
            android:paddingLeft="30dip"
            android:src="@drawable/katana"
            android:tag="tag" />

        <ImageView
            android:id="@+id/etla"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="openChecklist"
            android:paddingLeft="30dip"
            android:src="@drawable/detla"
            android:tag="tag" />

        <ImageView
            android:id="@+id/embn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="openChecklist"
            android:paddingLeft="30dip"
            android:src="@drawable/dembn"
            android:tag="tag" />

        <ImageView
            android:id="@+id/esxt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="openChecklist"
            android:paddingLeft="30dip"
            android:src="@drawable/desxt"
            android:tag="tag" />

        <ImageView
            android:id="@+id/etja"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="openChecklist"
            android:paddingLeft="30dip"
            android:src="@drawable/detja"
            android:tag="tag" />

        <ImageView
            android:id="@+id/eiwk"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="openChecklist"
            android:paddingLeft="30dip"
            android:src="@drawable/deiwk"
            android:tag="tag" />

        <ImageView
            android:id="@+id/exfs"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="openChecklist"
            android:paddingLeft="30dip"
            android:src="@drawable/dexfs"
            android:tag="tag" />
    </org.apmem.tools.layouts.FlowLayout>
</ScrollView>`

Result without ScrollView
Result with ScrollView

@adrianokerbermenvia
Copy link

I have a similar problem, in my case, the ScrollView does not display all the FlowLayout at the bottom, so my last two items are partially occluded.

@janmokry
Copy link

I have resolved it by adding android:layout_marginBottom="40dp" (value may differ for you)
It's hacky but it works.

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

3 participants