Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does an Android StackView look like?

Can someone provide a screenshot of an Android StackView that shows a potential application of this widget? I'm not sure what to use it for.

like image 715
gabor Avatar asked Sep 19 '11 20:09

gabor


People also ask

What is StackView Android?

StackView is a widget that helps in arranging the items in the form of stacked cards. Whenever we flip the front item, the next item from behind comes to the front.

What are Android layouts?

A layout defines the structure for a user interface in your app, such as in an activity. All elements in the layout are built using a hierarchy of View and ViewGroup objects. A View usually draws something the user can see and interact with.

What is FrameLayout?

FrameLayout is designed to block out an area on the screen to display a single item. Generally, FrameLayout should be used to hold a single child view, because it can be difficult to organize child views in a way that's scalable to different screen sizes without the children overlapping each other.


2 Answers

There is one on this page. Here's the screencap they display:

StackView example

An item flips off of the front, and onto the back (sort of like a deck of cards).

like image 151
Jon O Avatar answered Sep 20 '22 17:09

Jon O


There's an example here from the Android examples you can implement to see what it does. I suspect a screenshot may not be adequate enough since the widget inherits from AdapterViewAnimator.

like image 41
C0deAttack Avatar answered Sep 20 '22 17:09

C0deAttack