Back to project page pixel-art.
The source code is released under:
Apache License
If you think the Android project pixel-art listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jaween.pixelart.ui; // www . j a v a 2 s .c om import android.support.v4.app.Fragment; import android.view.View; import android.widget.TableLayout; import com.jaween.pixelart.util.SlideAnimator; import com.jaween.pixelart.util.SlidingLinearLayout; /** * Created by ween on 12/19/14. */ public class PanelFragment extends Fragment { // Animator private SlideAnimator slideAnimator; protected void setupAnimation(SlidingLinearLayout container, TableLayout table, View bar) { slideAnimator = new SlideAnimator(container, table, bar, this); } public boolean animationStarted() { return slideAnimator.animationStarted(); } public void slide(boolean forward, int height) { if (forward) { slideAnimator.start(height); } else { slideAnimator.reverse(height); } } }