Comments (6)
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.
+1 for this
from android-flowlayout.
Please add adapter feature.
from android-flowlayout.
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.
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.
Now with recycling view setAdapter can be used.
from android-flowlayout.
Related Issues (20)
- HORIZONTAL SCROLL VIEW WITH FLOWLAYOUT HOT 2
- Break before *this* element, only if line breaks at all
- flow layout + RadioGroup HOT 2
- failed to set margins in between two items of flow layout its displaying continuously with no margins , padding ? HOT 4
- Support for TextView and Edit Text HOT 2
- FlowLayoutManager should be constructable using a Context to support setting from XML
- When RecyclerView layout_height set to wrap_content, there will be nothing show on the screen. HOT 3
- Clipped child views on Android 4.1 - 4.3 HOT 1
- Display abnormal when using removeViewAt(int index); HOT 1
- Display Black Background with recyclerview in Samsung Galaxy Star Pro GT-s7262
- [Discussion] Should this library be deprecated in favor of Google's FlexboxLayout? HOT 3
- FlowLayout does not work with enclosing ScrollView HOT 2
- ava.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@70e62c7
- java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@70e62c7 HOT 1
- How to get number of lines
- Gradle 'android-flowlayout-master' project refresh failed with Android Studio 3.0.0
- Get actual height
- Flow Layout doesnot work inside a Recyclerview
- Target API 26 HOT 1
- Check if child on start of line HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-flowlayout.