Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

FunControl

Mohammad Mahdi Nouri edited this page May 19, 2017 · 1 revision

FunControl SetUp :

first of all create an instance of FunControl for example :

FunControl funControl;

then initialize this object with its Builder class for example :

funControl = new FunControl.Builder()
                .setFunnyLayout(Funny)
                .setFunnyButton(FunnyButton)
                .setContainer(ViewGroup)
                .setAnimationDuration(long) // Optional 
                .setGravityToExpand(Gravity) // Optional 
                .setWidthToExpand(ViewGroup.LayoutParams.MATCH_PARENT || ViewGroup.LayoutParams.WRAP_CONTENT || int) // Optional 
                .build();

Available methods :

  • .expand()
  • .collapse()
  • .isExpanded()
Clone this wiki locally