Code Monkey home page Code Monkey logo

Comments (8)

cachapa avatar cachapa commented on July 21, 2024

Do you mean showing a bit of the layout in the collapsed state?
I guess that would be possible by configuring the collapsed size, but honestly I struggle to find a common use case for it.

I'll leave this issue open for now.

from expandablelayout.

Exerosis avatar Exerosis commented on July 21, 2024

Yes, I think it could be helpful for anyone looking to have a preview of something(image, text, comments in a list, etc). Something similar to a minHeight would be really useful! Thanks for considering.

from expandablelayout.

henriquecm avatar henriquecm commented on July 21, 2024

I've done was like this:

 <LinearLayout>//root
     <LinearLayout/>//child
     <net.cachapa.expandablelayout.ExpandableLayout/>
 </LinearLayout>

Then i created a view with a listener inside Linear Layout Child that can toggle the expandable layout.

from expandablelayout.

Hayk985 avatar Hayk985 commented on July 21, 2024

@cachapa you're closing the issue, but how to fix it? I see you have this problem very long time, so you haven't found a solution yet yes?

from expandablelayout.

cachapa avatar cachapa commented on July 21, 2024

This issue is still open. I closed the one you created because it's a duplicate of this one.

The solution would be implementing a "collapsed_height" attribute, but that would be hard to make dynamic, i.e. just showing a line of text, since it would require looking at the line height.

from expandablelayout.

Hayk985 avatar Hayk985 commented on July 21, 2024

@cachapa but where is the "collapsed_height" attribute, I can't see it.

from expandablelayout.

Hayk985 avatar Hayk985 commented on July 21, 2024

@cachapa https://github.com/AAkira/ExpandableLayout . in this library there is a method expandableLayout.setClosePosition(int value); and that is doing what I need, but the library not works good, I had some problems using this library, because I'm using your library. So you can see how he does the collapsed state part, when some part is visible.

from expandablelayout.

cachapa avatar cachapa commented on July 21, 2024

@Hayko985 please read my message. The "collapsed_height" attribute doesn't exist yet, all I said is it would be a possible solution for the issue.

If someone wants to implement it, I'll gladly accept it. Otherwise you need to wait until I have the time to do it myself.

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.