Scrolling box view like the new Google now

2.1k views Asked by At

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".

2

There are 2 answers

1
Stephan Branczyk On BEST ANSWER

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.

0
Leonardo Leonardo On

Just complementing, I had to do quite same thing months ago...

Just a ListView incremented with whatever you want(text, images, etc) ... it is necessary a adapter as well, otherwise you will not have a nice view !