Code Monkey home page Code Monkey logo

Comments (9)

AAkira avatar AAkira commented on August 28, 2024

@Ivolian

Thank you for reporting.
Yes,
It is difficult to adjust size if a height of child elements don't be fixed when onMeasure() is called.
I'll try to fix this issue.
Please send your PR if you have a good idea. :-)

from expandablelayout.

Ivolian avatar Ivolian commented on August 28, 2024

screenshot_2015-12-07-22-26-15

You can see, when I make the first child item VIEW.GONE,
the relativelayout does not work well, it's too high, the red part.

Tonight I use some time to read your code.
I find childPositionList hold the real height of every child item sum.
So why not use it as relativelayout's height or width?

The key code in onMeasure method:
layoutSize = getCurrentPosition();
What about:
layoutSize = getChildPosition(childPositionList.size()-1);

Then, every child item can be VIEW.GONE.
And the example i commented 4 day ago may also be solved.

At last, it's just a idea.

from expandablelayout.

AAkira avatar AAkira commented on August 28, 2024

@Ivolian

I'm so sorry!
I was thinking I fixed this line.
Thank you so much!
I updated this library which is v1.4.1.
Please check it.

from expandablelayout.

jemshit avatar jemshit commented on August 28, 2024

wrap_content not working on v1.4.1 @AAkira

from expandablelayout.

jemshit avatar jemshit commented on August 28, 2024

i am using ExpandableRelativeLayout

from expandablelayout.

jemshit avatar jemshit commented on August 28, 2024

there is a huge space at bottom of layout

from expandablelayout.

jemshit avatar jemshit commented on August 28, 2024

OK, it worked after i added RelativeLayout inside ExpandableRelativeLayout(wrap_content). All other views are inside RelativeLayout(wrap_content)

from expandablelayout.

zaheerahmad avatar zaheerahmad commented on August 28, 2024

@AAkira First of all nice library 👍

It seems like 'wrap_content' in ExpandableRelativeLayout is not working in 1.4.3. I downgraded it to 1.4.1 and its all working fine.

from expandablelayout.

AAkira avatar AAkira commented on August 28, 2024

@jemshit @zaheerahmad

I'm sorry that I didn't notice.
I fixed it in v1.5.0.
Please check it.

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.