Skip to content

I WANT TO SET THE PANEL HEIGHT TO ZERO AND PANEL HEIGHT TO ACTION BAR HEIGHT WITH ANIMATION  #560

Open
@sharathyadhav1

Description

@sharathyadhav1

hi,
i want to do a animation on touch of the screen ,(ie)if i touch the main fragment i want to hide the panel at the top with animation and setting the duration to it, as far wat i did was on touch i setting the panel height to action bar height and on alternate touch i am setting the panel height to 0 ,in this way ican show and hide panel like the action bar , kindly suggest if i could attach animation duration to it so it runs soomthly

My code is something like this

if(SlidingFragmentEN.isslidingshown){

                Log.e("isslidingshown",""+SlidingFragment.isslidingshownar);
                SlidingFragmentEN.isslidingshown =false;

// SlidingFragment.mLayout.setOverlayed(true);

                SlidingFragmentEN.mLayout.setPanelHeight(160);

                SlidingFragmentEN.mLayout.setParalaxOffset(30);
                SlidingFragmentEN.mLayout.setClipPanel(false);
            //  SlidingFragment.mLayout.setPanelState(PanelState.DRAGGING);
                SlidingFragmentEN.mLayout.setCoveredFadeColor(Color.argb(0, 0, 0, 0));
            }else{

                SlidingFragmentEN.isslidingshown =true;

                new ScaleInAnimation(categorybutton).animate();
                SlidingFragmentEN.mLayout.setParalaxOffset(0);
                SlidingFragmentEN.mLayout.setPanelHeight(0);
                SlidingFragmentEN.mLayout.setClipPanel(true);
                SlidingFragmentEN.mLayout.setCoveredFadeColor(Color.TRANSPARENT);

            } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions