androidfacebookviewscrollgoogle-now

Scrolling box view like the new Google now


I'm kind of new to Android development and wanted to create a fragment like the new Google Now screen with the boxes, or the Android Facebook App wall screen in which every post is in a custom "box".


Solution

  • They're just using a ListView

    A ListView is not something trivial to tackle for a beginner. Since the guide I pointed you to may not be enough, here is a 1 hour video on ListViews made by Romain Guy and Chet Haase on YouTube (Romain Guy is the guy who wrote ListView for Android and Chet Haase who wrote the animation framework for Android).

    For an example that mimics that boxed look that you can play around with, download DevApps Direct on your device. All the samples DevApps showcases are open source.

    Scroll to "ListView Animations" > "Google Cards Example" > "Run Demo"

    Code available here.

    You might also want to take a look at some of the other samples DevApps Direct has: "Card Library", "SugaredListAnimations Sample", "Pull to Refresh", "SwipeListView Demo", etc.