Android view dismiss when scroll down - android

I am working on an Android app, in which an Activity contains a header view and a ListView below it.
I want when the listview scrolls down, the header dismiss (at the same speed I scroll), and when the listview scrolls up, the header shows back.
I am not sure if I explained it clearly. If I did not make it clear, please take a look at the Twitter Android app. The action bar tab has the same effect as I described.
Thank you!

Actually you need pinnedHeaderListView for that you need implement logic of below two library or you can use these library to desire effect that you want.
https://github.com/JimiSmith/PinnedHeaderListView
https://code.google.com/p/android-amazing-listview/

Related

ListView/RecyclerView item expand animation one by one on scroll?

Hey Every one I am working on a project that requires ListView/RecyclerView items animation in a very unique. Here is the sample app RetailMeNot. The ListView or RecyclerView used in this app is definitely custom and looks pretty cool. Initially, the list show smaller image of a child-item. As the user scrolls up, the child item expands fully to reveal a bigger image and previously expand item collapse/hide and put the next item on top.
Has anyone seen a library or implementation of a similar ListView/RecyclerView?
I really tried hard to make this effect on ListView and RecyclerView but couldn't achieve the required result.....
Any help would be really appreciated, Thanks in Advance!!!
After doing so much search and trying so many example's I finally created the effect with this library. This library has the same expand/collapse effect as RetailMeNot. Just download the library and use it in your project.
Happy Coding!!!

Show/hide a layout on scroll up/down android

I am working on an android application and want to implement a functionality in which I want to show a layout which will contain Like/Comment of that content at the bottom of the page.
I want this layout to be shown when I scroll up the page and hide when I scroll down the page.
I have scene many applications that have implemented this feature, but I have no idea how to implement this feature in my app.
Please check this link of the app which is giving the same functionality which I want to implenment https://play.google.com/store/apps/details?id=com.midsizemango.materialapps
Please help if anyone have idea here, Thanks a lot in advanced.
You need to do the same thing which happens with fab, first create a class extendingCoordinatorLayout.Behavior<View> and implement it like other fab examples. just remember that it won't work on simple listView and gridView.
Also here's a good detailed tutorial for you.
You Just have to set Scroll-Up & Scroll-Down listener of your Recycler view or Scroll View check Reference link.
Now base on Scroll-Up & Scroll-Down listener set VISIBLE / GONEof your footer view either it is LinearLayout or Toolbar with animation.

Android GridView Floating Footer like Facebook Feed

I'm trying to find the best way to approach implementing Facebook like floating last row on Grid view.
when scrolling down, the status-photo-checkin disappear to allow more space for the list, and when scrolling up it appears again. anyone has an idea how can I implement this or direct me to an existing component/library?
I have seen the post Android Listview Floating First Row and try the Quick Return pattern: https://plus.google.com/u/0/+RomanNurik/posts/1Sb549FvpJt
But it does not work for GridView.
Check out this QuickReturn library I wrote.
https://github.com/lawloretienne/QuickReturn
It even has an example of how its done in Facebook.

hiding header smoothly (like in twitter app)

I have listView like main part of my activity view. I want to implement header bar like in twitter app. (hiding header onScroll UP and showing header onScroll DOWN). How can I do this?
Thanks for all future help.
You can try using PoppyView though you may need to tweak it to implement it as per your requirement

android animate views inside a scroll view while scrolling

Is there example android code or sample android app which demonstrate animation of the views while scrolling.
For example. In a scroll view some items are not visible when you scroll the items will start to come inside the screen that time i just want to animate that view.
any help would be greatly appreciated.
Thanks.
Download this app. Here you will find tons of libraries of your use. I also seen the library which your are asking in this app. You will find source code links in the app as well.
https://play.google.com/store/apps/details?id=com.desarrollodroide.repos&hl=en
Or You can do one more thing
Just add on scroll listener and some more listeners are there by which you can detect which portion of your scroll view is visible.
Then You can add animation to those views.
Try Listview animation library.
Modify it and use.
https://github.com/nhaarman/ListViewAnimations

Categories

Resources