GithubHelp home page GithubHelp logo

Comments (6)

chakrit avatar chakrit commented on July 20, 2024

This is what I use right now:

FlowLayout newsFlow = views.find(view, R.id.flow_news);
int count = adapter.getCount();
for (int i = 0; i < count; i++) {
    newsFlow.addView(adapter.getView(i, null, newsFlow));
}

But obviously this logic belongs in the flow layout, not the activity or fragment that's using it. There are also other nuances that'll be needed such as auto-updating when the backing store gets updated with new items.

from android-flowlayout.

gengjiawen avatar gengjiawen commented on July 20, 2024

+1 for this

from android-flowlayout.

frodberserk avatar frodberserk commented on July 20, 2024

Please add adapter feature.

from android-flowlayout.

neiljaywarner avatar neiljaywarner commented on July 20, 2024

That would be neat. I imagine that would not be easy, but it would be cool.
I did something similar.

On Wed, Apr 1, 2015 at 12:06 AM, frodberserk [email protected]
wrote:

Please add adapter feature.


Reply to this email directly or view it on GitHub
#14 (comment)
.

from android-flowlayout.

ApmeM avatar ApmeM commented on July 20, 2024

Sorry,
I have tried to understand how adapters should work inside the layout but failed.
Can somebody create a pull request for this issue (at least for horizontal view without gravity etc, as an example so I can extend it and add to this project).

from android-flowlayout.

ApmeM avatar ApmeM commented on July 20, 2024

Now with recycling view setAdapter can be used.

from android-flowlayout.

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.