package im.ene.lab.observablescrollers.lib.fragment;

import android.app.Activity;
import android.support.v4.app.Fragment;

import im.ene.lab.observablescrollers.lib.util.OnScrollObservedListener;
import im.ene.lab.observablescrollers.lib.util.Scrollable;

/**
 * Created by eneim on 6/22/15.
 * <p/>
 * Fragment that hold a scrollable
 */

public abstract class ObsFragment extends Fragment {

    protected OnScrollObservedListener mOnScrollObservedListener;

    protected final String EXTRA_PADDINGS = "PADDINGS";

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        if (!(activity instanceof OnScrollObservedListener))
            throw new IllegalArgumentException("This Fragment must be attached to an OnScrollObservedListener");

        mOnScrollObservedListener = (OnScrollObservedListener) activity;
    }

    public abstract Scrollable getScrollable();

    public abstract void fixScrollerPadding(int left, int top, int right, int bottom);
}

@@ -914,31 +914,225 @@
 );%0A%0A    
-public abstract
+/**%0A     * Normally a scroller need to be fix its padding. In case you define your own padding, just ignore this%0A     * @param left%0A     * @param top%0A     * @param right%0A     * @param bottom%0A     */%0A    public
  void fi
@@ -1189,12 +1189,20 @@
  bottom)
-;
+ %7B%0A%0A    %7D
 %0A%7D%0A

add some comment