Giter VIP home page Giter VIP logo

Comments (6)

ksoichiro avatar ksoichiro commented on May 18, 2024

@AndroidDeveloperLB
Thank you for your feedback and sorry for my late reply.

It seems difficult but I think it's possible.
Maybe it's like SlidingUpListViewActivity that uses TouchInterceptionFrameLayout of this library.
(SlidingUp examples moves ObservableView using TouchInterceptionFrameLayout.)
I'll try when I have time.

from android-observablescrollview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 18, 2024

Thank you. I've come with a solution, but I think it's a bad one and hope there is a better way:
http://stackoverflow.com/q/27997948/878126

When using a translationY, it causes weird issues of clicking on the items of the RecyclerView (when the upper area is shown). so I can click on the first item, yet the second (or third) item is shown as clicked. That's why I used padding instead.

I think the best thing is to change the layout params of the upper area, and also make it change its size using a customized RecyclerView that allows to block scrolling of itself via a listener.
Changing the LayoutParams to change the size (and use animation to do so) can be done as I've shown here: http://stackoverflow.com/q/19519921/878126

from android-observablescrollview.

dnlbauer avatar dnlbauer commented on May 18, 2024

I'd also love to see a sample for that since OPs solution seems to be not that elegant.

from android-observablescrollview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 18, 2024

@danijoo Yes, sorry. That's what I was allowed to do during the given time I had at work.

from android-observablescrollview.

frapsMatheus avatar frapsMatheus commented on May 18, 2024

I'm trying to accomplish this by using this other API https://github.com/emilsjolander/StickyListHeaders but I can't figure it out how to use both at the same time with the same ListView.

from android-observablescrollview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 18, 2024

@matrpedreira I don't know how to help, but maybe this repo is a better start:
https://github.com/edsilfer/sticky-index
?
You can also try one of mine.

from android-observablescrollview.

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.