Giter VIP home page Giter VIP logo

Comments (14)

rubensousa avatar rubensousa commented on July 19, 2024 1

@miomao656 fix released in 1.2.0-alpha02

from dpadrecyclerview.

rubensousa avatar rubensousa commented on July 19, 2024

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.

miomao656 avatar miomao656 commented on July 19, 2024

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.

rubensousa avatar rubensousa commented on July 19, 2024

@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.

miomao656 avatar miomao656 commented on July 19, 2024
Screen.Recording.2023-12-21.at.14.51.13.mov

here is the video

from dpadrecyclerview.

rubensousa avatar rubensousa commented on July 19, 2024

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.

rubensousa avatar rubensousa commented on July 19, 2024

Also, which version are you using at the moment?

from dpadrecyclerview.

miomao656 avatar miomao656 commented on July 19, 2024

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.

rubensousa avatar rubensousa commented on July 19, 2024

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.

miomao656 avatar miomao656 commented on July 19, 2024

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.

rubensousa avatar rubensousa commented on July 19, 2024

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.

miomao656 avatar miomao656 commented on July 19, 2024

Tnx for the quick response.

Library is awesome, so keep up the good work!

from dpadrecyclerview.

rubensousa avatar rubensousa commented on July 19, 2024

@miomao656 fix will be available in the next release: 1.2.0-alpha02

from dpadrecyclerview.

miomao656 avatar miomao656 commented on July 19, 2024

Thank you! When do you plan to release ti?

from dpadrecyclerview.

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.