public void addSection ( GSection section ) { section . setPosition ( sectionList . size ( ) ) ; LinearLayout . LayoutParams params = new LinearLayout . LayoutParams ( ViewGroup . LayoutParams . MATCH_PARENT , ( int ) ( 48 * density ) ) ; sectionList . add ( section ) ; sections . addView ( section . getView ( ) , params ) ; }
Method used for customize layout