@@ -0,0 +1,1041 @@
+package com.bustiblelemons.views;%0A%0Aimport android.content.Context;%0Aimport android.support.v4.view.ViewPager;%0Aimport android.util.AttributeSet;%0Aimport android.view.View;%0A%0A/**%0A * Created by bhm on 21.09.14.%0A */%0Apublic class ExpandableViewPager extends ViewPager %7B%0A%0A%0A    public ExpandableViewPager(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public ExpandableViewPager(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A%0A    %7D%0A%0A    @Override%0A    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) %7B%0A        int height = 0;%0A        for (int i = 0; i %3C getChildCount(); i++) %7B%0A            View child = getChildAt(i);%0A            child.measure(widthMeasureSpec,%0A                    MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));%0A            int h = child.getMeasuredHeight();%0A            if (h %3E height) %7B height = h; %7D%0A        %7D%0A%0A        heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY);%0A%0A        super.onMeasure(widthMeasureSpec, heightMeasureSpec);%0A    %7D%0A%7D%0A

add expandable viewpager