Giter Club home page Giter Club logo

Comments (6)

MohamedHatemAbdu avatar MohamedHatemAbdu commented on June 5, 2024

@skydoves
I played a little with ExpandableLayout class and after i added the below line it works with me fine. but in fact i don't why ?
image
image

Could you advise ?

from expandablelayout.

skydoves avatar skydoves commented on June 5, 2024

@MohamedHatemAbdu
Hi, I think if the secondlayout is a RecyclerView, the flow will go to the ViewGroup case.
Because RecyclerView is a ViewGroup.

RecyclerView is a ViewGroup but It doesn't have any View child via added addView.
So I think using child.measuredHeight is more correct instead of using setMeasureHeight.
Thank you for your issue :)

This will be applied to the next release!

from expandablelayout.

MohamedHatemAbdu avatar MohamedHatemAbdu commented on June 5, 2024

@skydoves There is another issue :

The recyclerview doesn't retain it's status correctly.
If you have many items in the list and you expanded only the first item in the list, may be you find other items in the list expanded (but you didn't expand them) due to the recycling.

And i think this issue due to we save the status of expanding in Expandablelayout view itself through a Boolean var isExpandable.

from expandablelayout.

Imran-ss avatar Imran-ss commented on June 5, 2024

This will be applied to the next release!

Hi @skydoves when are you planning to release this?
I am also getting same issue.

from expandablelayout.

skydoves avatar skydoves commented on June 5, 2024

Hi, I fixed the measuring function internally, it's released a new version 1.0.5.
If you check working well in a new version, this issue will be closed.
Thank you for your issue :)

from expandablelayout.

skydoves avatar skydoves commented on June 5, 2024

Duplicated #5.

from expandablelayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.