GithubHelp home page GithubHelp logo

Comments (5)

TonicArtos avatar TonicArtos commented on July 18, 2024

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.

GoodSir42 avatar GoodSir42 commented on July 18, 2024

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.

TonicArtos avatar TonicArtos commented on July 18, 2024

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.

GoodSir42 avatar GoodSir42 commented on July 18, 2024

Perhaps have a look at what google does in their implementation. The source of the layoutmanagers should be public.

from superslim.

TonicArtos avatar TonicArtos commented on July 18, 2024

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)

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.