Android StackScrollLayout

I need help creating a Layout like the one Android uses to render notifications inside it’s notification Panel.

enter image description here

  • Auto Collapse ActionBar SearchView on Soft Keyboard close
  • Converting camera YUV-data to ARGB with renderscript
  • Installing ADT on Eclipse
  • Use both onClickListener and onLongClickListener in listview Android 1.6
  • How to Change color of Button in Android when Clicked?
  • I can't get IntelliJ to recognise my Android SDK
  • Basically what happens at the end of the view when notifications don’t fit the screen anymore is what interests me. Here is the view in Android source code.

    Any suggestions or ideas are appreciated. Thanks!

  • Initializing a Loader in an Activity
  • Disable pan/zoom in com.google.android.maps.MapView
  • Unbelievably high rate of “customer's card was declined” on subscription API
  • Can't build IMarketBillingService.aidl for inApp purchase
  • Android load from URL to Bitmap
  • Calling finish() on an Android activity doesn't actually finish
  • One Solution collect form web for “Android StackScrollLayout”

    1-Include the view inside your layout xml

    <com.bartoszlipinski.flippablestackview.FlippableStackView
        android:id="@+id/stack"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    

    2-FlippableStackView is based on the specific PageTransformer used with the ViewPager. Therefore to fill the View you can use just a typical implementation of a PagerAdapter. In your onCreate method (or onCreateView for a fragment), setup all the parameters of the FlippableStackView.

     FlippableStackView stack = (FlippableStackView) findViewById(R.id.stack);
        stack.initStack(2);
        stack.setAdapter(mStackAdapter);
            //assuming mStackAdapter contains your initialized adapter
    

    3-Important Note: The current implementation of the library will display the elements from the Adapter in the reverse order. In other words: view at position 0 of your adapter will be displayed at the bottom of the stack and view at position adapter.getCount()-1 will be visible first (available for the first flip).

    for a working example and reference check the library here
    FlippableStackView

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.