Giter VIP home page Giter VIP logo

Comments (5)

StelianMorariu avatar StelianMorariu commented on July 17, 2024

It happens with the default height as well (the list starts with "Item 0")

screenshot_2014-06-16-00-03-01 1

from quickreturn.

felipecsl avatar felipecsl commented on July 17, 2024

I actually thought a lot about it and right now I'm not convinced this problem should be fixed by this library. There are several way you can workaround this problem, the easiest one being by adding a header view to your listView that has the same height as the target view, this way the first row would be pushed down and wouldn't be hidden behind the target view. If you have a better solution or think this should be fixed in the lib, please let me know, otherwise I'm closing this.

from quickreturn.

StelianMorariu avatar StelianMorariu commented on July 17, 2024

Well, it's not as easy to add headers to a GridView. Besides that, addHeaderView() adds new problems starting with KitKat :
"Starting with KITKAT, this method may be called at any time. If the ListView's adapter does not extend HeaderViewListAdapter, it will be wrapped with a supporting instance of WrapperListAdapter."

Personally, I think it would be great if the library could solve the problem. I am, however, open to trying workarounds (adding a header doesn't work for me).

from quickreturn.

felipecsl avatar felipecsl commented on July 17, 2024

@StelianMorariu agreed it doesn't work for GridView though. I'm open for discussing it as well.
One solution I'm thinking of doing is adding an extra item at the top of the view adapter with the same height as the target view. The problem is a gridview, then it should have X extra items, where X is the numColumns. I'll hack something out here today

from quickreturn.

felipecsl avatar felipecsl commented on July 17, 2024

Fix released on version 1.3.1-SNAPSHOT

from quickreturn.

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.