Android GridView Floating Footer like Facebook Feed - android

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.

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!!!

Facebook Android App News Feed Layout

I am trying to implement a vertical listview with horizontal scroll on each item just like the facebook newsfeed. Suggested apps can be seen by scrolling to right and some part of next item is also visible.
here is the screenshot :
http://i.stack.imgur.com/7JRfM.png
So I am just stuck here and don't know how to proceed.
You're probably going to need to write some custom code (which is a pretty good rule of thumb whenever you're trying to do something Facebook did on Android; they do some crazy stuff).
I don't believe you can nest ListViews in Android. There is "ExpandableListView", which lets you expand items to show more, although this isn't quite the same thing.
I would advise to just create a vertical ListView, and have the items be horizontal LinearLayouts that you can inflate yourself. You can also try making them horizontal ScrollViews (although I think this may have the same limitation as using nested ListViews).
Good luck!

Android view dismiss when scroll down

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/

Google+ app listview layout with different views

I'm trying to implement a sliding menu just like the one found in Google's Google+ Android app:
I've got the actual sliding menu working but I'm having trouble implementing a scrolling view that can hold any type of child views.
For example I would like to have a header like the "NOTIFICATIONS" row in screenshot and below it a ListView with notification items. And I would like to have another sections below that list, perhaps called "ERRORS" and below it a different ListView with errors. And perhaps a WebView at the very bottom.
How is this best implemented?
Note: I have read this tutorial but it's talking about a single ListView. I would like to construct this using a LinearLayout or alike, if that's possible.
The way I ended up implementing this was with a ScrollView that I simply populated with Views.
There are some things to be considered when using a ScrollView, like this answer or the Android documentation.
From what I understand, if you need a whole lot of items in a list then you should look at using a ListView. Otherwise a ScrollView will do just fine.

Android pull to refresh with ScrollView control

I am using a ScrollView to display a list of items that are inflated on runtime. Like a feed of updates for the user.
While thinking about the options i got to let the user update the view with new notifications I thought about the pull to refresh feature in the twitter app.
Anyone got any idea how and if can it be implemented with a ScrollView ?
Saw there are some implementations for that using ListView but I don't like the idea of changing all of my platform to gain this refresh effect.
There is a solution introduced for implementing pull to refresh for various component which are scrollable like listview and scroollview.
Look at ChangeLog link https://github.com/chrisbanes/Android-PullToRefresh
ListView with just one element can be treated as a ScrollView. You can use the implementation for pull-to-refresh ListView and add just one item in it. I had used this trick in the past.
You can do that. You can increase the top margin of the scrollview when the user moves the finger down and the scrollview it's on it's top. Then on release fire the update and decrease the margin with animation.(You have to create your own animation to pull that off). That's the idea. If you want more particular help ask what you cannot implement.

Categories

Resources