Code Monkey home page Code Monkey logo

Comments (6)

mikepenz avatar mikepenz commented on September 22, 2024

Please attach a screenshot to the ticket (can't follow the link due to security concerns)

You mean you have an item which may have a different height if the text expands further?

Or you have flexible width items in the list?

Neither are an adapter matter.

You'd probably have to compute the columns you need per item, and then accordingly tell the RV similar like in the grid layout how many columns each item type needs.

from fastadapter.

NetylkinOV avatar NetylkinOV commented on September 22, 2024

xzxz
Screenshot

from fastadapter.

mikepenz avatar mikepenz commented on September 22, 2024

This looks to be best done via: https://material.io/components/chips/android#using-chips

I don't think this is a ticket related for this library.

from fastadapter.

NetylkinOV avatar NetylkinOV commented on September 22, 2024

Mike, the height is the same for all elements, but the width can be different. May take up the entire screen.
Let's look at the first row of elements in the screenshot. The first element is wider than the other two (which are the same in width) The whole point of this task is that we set the width of the columns for the gridlayout to be static, so for the first row and the first element the column width will be 130, then for the first element of the second row (which is lower) it is needed in 100. Because it is necessary that the elements are located next to each other without a large number of spaces between them.

So I decided to write to you to discuss it :)

It turns out that I need to look for some other solution for such a problem for me :)

from fastadapter.

NetylkinOV avatar NetylkinOV commented on September 22, 2024

Yes, indeed, it is a good idea to do it through chips. I've never experienced this before, I'll try. Thanks for the idea :)

from fastadapter.

NetylkinOV avatar NetylkinOV commented on September 22, 2024

Thank you for help 👍

from fastadapter.

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.