Comments (5)
I'm using EcoGallery in my app (Motion) and actually I recently saw an issue when I set text view from EcoGallery onItemSelected, the gallery will snap to the center (if I comment the code it works fine). Do you do any work onItemSelected? I want to know if you are seeing the same behavior so I could try to fix it.
from ecogallery.
I can verify that the issue occurs (or occured as of several months ago) with onItemSelected
from ecogallery.
Take a look at my fork: https://github.com/Gryzor/TimelineGallerySample
Some devices (notably API level 16 and 17) issue a requestLayout when any of the views are changed (so when the library does a SnapToCenter a relayout is issued, this causes the gallery to jump and snap immediately).
Make sure you're using (look at the sample) a special ImageView for your gallery items that don't do anything on requestLayout.
from ecogallery.
@Gryzor Makes sense, are you still maintaining your fork?
I'm evaluating if I should continue support the library since I'm changing my app design and will no longer need Gallery view and it would be helpful to point developers to maintainable fork.
from ecogallery.
@falnatsheh Nah, I just want the gallery to disappear from the face of the planet ;) I have used it for a while until I managed to make the ViewPager work the way I wanted. (Took me a while tho').
I don't mind looking at Pull Requests and maintaining it, but I can't make any "implement me this feature" promises. I just made the gallery "work" but there's no way to fix that hacky thing without a complete rewrite (which nobody seems interested in doing given that the 'alternatives' seem to be 'good enough').
from ecogallery.
Related Issues (14)
- Focus is Lost when using Arrow Keys HOT 6
- I can't scroll EcoGallery with Views which are clickable like Buttons ... HOT 5
- Selected state is cleared for selected item
- how to add carousel effect ?
- setOnClickListener disable the "swipe"
- Custom child drawing
- java.lang.NullPointerException: when fast scroll HOT 1
- Not found any tutorial for how to use it. HOT 7
- Failed to find style 'ecoGalleryStyle' in current theme HOT 8
- Can not swipe on image when add onClickListenner HOT 3
- Action on changed active image HOT 3
- getView() in BaseAdapter being called infinitely HOT 1
- Highlight is lost after scroll to another position. 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 ecogallery.