Comments (14)
@miomao656 fix released in 1.2.0-alpha02
from dpadrecyclerview.
Hi @miomao656. Yes, that should be possible by customising the parent alignment configuration. Check this: https://rubensousa.github.io/DpadRecyclerView/alignment/#aligning-to-an-edge
In your case, you're looking for app:dpadRecyclerViewParentAlignmentEdge=none
Please let me know if this is the behavior you're looking for
from dpadrecyclerview.
When i add app:dpadRecyclerViewParentAlignmentEdge=none
the list with less items on the screen than the height starts at the middle of the screen and as i scroll trought the items down the list shifts up the screen.
This is fine but when i scroll up, the list does not return and the focused item goes up the screen.
Also first item in the list is only half visible when you scroll up.
Is there a way to focused item stay in center and the list just shifts up or down, depending on scroll direction?
from dpadrecyclerview.
@miomao656 can you please provide a screen recording of that behavior? What you're describing might be a bug, as scrolling up should return to the original state
from dpadrecyclerview.
Screen.Recording.2023-12-21.at.14.51.13.mov
here is the video
from dpadrecyclerview.
Are you using wrap_content
in the height? If yes, that's not properly supported if you're in a vertical orientation. Please use match_parent
or give it a fixed height
from dpadrecyclerview.
Also, which version are you using at the moment?
from dpadrecyclerview.
i am using 1.2.0 alfa 1, here is a recording with match parent for height and fixed width.
Screen.Recording.2023-12-21.at.15.01.19.mov
from dpadrecyclerview.
Ok, this seems indeed a bug. I will look into it. For now, as a workaround, can you try using app:dpadRecyclerViewParentAlignmentEdge=min
to see if it suits your needs?
from dpadrecyclerview.
The best i could come up with is using max.
max.mov
and for min and min_max i get this behaviour
others.mov
from dpadrecyclerview.
Thank you for sending the recordings. I will have a look at this issue and reply here with the fix once it's available
from dpadrecyclerview.
Tnx for the quick response.
Library is awesome, so keep up the good work!
from dpadrecyclerview.
@miomao656 fix will be available in the next release: 1.2.0-alpha02
from dpadrecyclerview.
Thank you! When do you plan to release ti?
from dpadrecyclerview.
Related Issues (20)
- Add support for long text scrolling
- Scroll jumps to the top on item's layout update HOT 7
- Nested vertical lists HOT 1
- Vertical list with focus centered HOT 2
- IndexOutOfBoundsException but I can't reproduce it. HOT 5
- Touch behavior in scrolling HOT 5
- help HOT 2
- Focus issue after touch event
- How to implement StaggeredGridLayout? HOT 5
- Update compose integration now that view-interop is fixed
- Allow skipping layout requests during scroll
- Expose ViewHolder focus state
- Add support for custom parent alignment based on ViewHolder position
- Add support for linear circular focus
- Gridrecyclerview with height 0.5 of the screen height - alignment problem (last row cut off) HOT 14
- First item of first row is smaller then all the others HOT 4
- Fast scrolling - loosing focus when having images from an url in the items HOT 21
- Scrolling issue when loading images in onBindViewHolder HOT 9
- Scroll a nested recyclerview to a specific item (without focussing it) HOT 3
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 dpadrecyclerview.