Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 2, 2018. It is now read-only.
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Recursively computing layout when RelativeLayout and android:layout_above #88

Open
@ypresto

Description

I found memory is growing and GC is running when FreeFlow is shown even if I didn't touch to the device.
Allocation tracking says FreeFlow is computing layout constantly.

image

It was because FreeFlowContainer is placed in RelativeLayout and layout_above is used.
(I placed LinearLayout with fixed height of 76dp, which contains Buttons, on the bottom of fragment.)
For workaround I applied below diff to my xml file.

 <FreeFlowContainer
 android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
 android:layout_alignParentTop="true"
- android:layout_above="@id/footerButton"
+ android:layout_alignParentBottom="true"
+ android:layout_marginBottom="76dp"

This issue also causes bug that sometimes onItemSelected() is not called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /