androidanimationviewmenusliding

Android: Up/down animated sliding menu


I have tried several solutions but need help. The topics below are really useful but I think I'm doing something wrong. How to set layout height/settings for both? Let's say I have 2 LinearLayout for content and bottom menu.

Also I don't want the bottom menu disappeared after sliding. It should be constant there. I am using fragments for menu clicks/change views.

Android: Expand/collapse animation

Android animate drop down/up view proper

enter image description here


Solution

  • As my comment seemed to help, I will post the link as an answer: https://github.com/umano/AndroidSlidingUpPanel

    The full code cannot be pasted in StackOverflow, but the whole library will help you to achieve what you need.

    The 2.2 version of the Umano Android app features a sexy sliding up draggable panel for the currently playing article. This type of a panel is a common pattern also used in the Google Music app and the Rdio app. This is an open source implementation of this component that you are free to take advantage of in your apps. Umano Team <3 Open Source.

    <com.sothree.slidinguppaneldemo.SlidingUpPanelLayout
        android:id="@+id/sliding_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
    
        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="Main Content"
            android:textSize="16sp" />
    
        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center|top"
            android:text="The Awesome Sliding Up Panel"
            android:textSize="16sp" />
    </com.sothree.slidinguppaneldemo.SlidingUpPanelLayout>