Comments (5)
Yes, this is something I haven't looked into. With the exception of actually supporting this, the only real issue I see is GONE status in the grid layout. At present the item position is used to place views into the correct column, for this GONE would functional nearly identical to INVISIBLE.
from superslim.
Indeed you might have to have a virtual index of the view that is not incremented if a view is gone instead of invisible.
Or you might do the following:
If it's a header it's counted as a view, but not rendered
if it's a normal view it's ignored and the layout manager continues with the next item.
from superslim.
Basically, it would make positioning in the grid layout far more complex if you want to avoid scanning back to the beginning of the section every time you want to start positioning views. Anyway, I will get in support for visibility status eventually, though it might come in stages.
Thank you for reporting the issue :)
from superslim.
Perhaps have a look at what google does in their implementation. The source of the layoutmanagers should be public.
from superslim.
You'll be happy to know that View.GONE is not honoured for Google's implementations either.
In v0.4.0, SuperSLiM has the same view visibility behaviour. View.VISIBLE and View.INVISIBLE are adhered to, GONE is ignored.
from superslim.
Related Issues (20)
- Flexbox layout
- Dynamic sticky content
- Built in elevation change for sticky content.
- Infinite scroll
- Collapsible/expandable sections
- Sticky footers weirdly wobble on horizontal scroll. HOT 1
- Toggling collapsible sections loses items.
- Prepare milestone 5 release
- Update Readme.md
- On layout a sticky footer always sits above sticky inset (section state inset parameter).
- Sticky footer HOT 2
- RecycleView scrolls over sticky header
- Crash On RecyclerView Refresh
- Does SuperSLiM supports sub headers ? HOT 10
- Mocking framework
- i cannot build the project
- NPE at LayoutManager#onItemsUpdated
- Androidx HOT 1
- Is this covered by the Apache 2.0 License?
- Scrolling issue with Sticky Headers on
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 superslim.