1

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.

Prithniraj Nicyone
  • 5,021
  • 13
  • 52
  • 78
  • The source code is available for this app in Github. If you're trying to get the scroll up/down listener of your `RecyclerView`, you might take a look at here. http://stackoverflow.com/a/33007135/3145960 – Reaz Murshed Aug 03 '16 at 09:49
  • Thanks for the reply. Can you please post the github source code link of the app here. Thanks a lot. – Prithniraj Nicyone Aug 03 '16 at 10:25

2 Answers2

0

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.

M. Erfan Mowlaei
  • 1,376
  • 1
  • 14
  • 25
0

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.

Community
  • 1
  • 1
Chintan Khetiya
  • 15,962
  • 9
  • 47
  • 85