Skip to content

Redundant amount of children's in View Hierarchy #3

Description

@MBratkowski

Please complete the following information:

  • Library Version [v1.0.1]
  • Affected Device(s) [Android Emulator]

Describe the Bug:
First thing - great job! I like this library, looks pretty nice and API is clear to use. Unfortunately, I found some issues with the View Hierarchy with the views which are associated.

Whenever method updateExpandableLayout invokes then we don't delete the previous elements of the view. In summary, we have an under the hood huge view hierarchy.

Current behaviour:

Screenshot 2019-10-07 at 15 11 04

I found some simple and fast fix to resolve this issue before invokes of updateExpandableLayout we add a removeAllViews method to clear our view, then view hierarchy looks much simpler.

Screenshot 2019-10-07 at 15 09 18

Expected Behavior:

We shouldn't have a redundant amount of views.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions