Comments (5)
It happens with the default height as well (the list starts with "Item 0")
from quickreturn.
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.
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.
@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.
Fix released on version 1.3.1-SNAPSHOT
from quickreturn.
Related Issues (20)
- Good Job HOT 1
- Combine Quick Return with Pull To Refresh HOT 3
- Quick Return target hide scroll thumb when scroll to top!!
- Quick Return broken when calling ListView.onRestoreInstanceState(state) HOT 1
- READ_PHONE_STATE permission HOT 5
- Add support for RecyclerView HOT 3
- Issue with item selection HOT 1
- TargetView show/hide option. HOT 2
- Start hidden? HOT 2
- IndexOutOfBoundsException when clicking Button as Target View HOT 1
- Couldn't click some rows HOT 1
- could not work with listview with header. HOT 1
- Remove the not used ic_launcher.png HOT 1
- CardsLib and QuickReturn
- Bug when setting listview position HOT 1
- The firstVisibleItem position is wrong when the top target view is out of screen. HOT 1
- Blank area displays under target view as you scroll up HOT 4
- Quick return target doesn't work properly when in the middle of scrolling, item's height chaged
- In ScrollView the bottom QuickReturn target doesn't disappear HOT 2
- How about scrollViews 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 quickreturn.