content: package cn.refactor.cutoloadingviewdemo;
  
  import android.os.Bundle;
  import android.support.annotation.Nullable;
  import android.support.v4.app.Fragment;
  import android.support.v7.widget.LinearLayoutManager;
  import android.support.v7.widget.RecyclerView;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.SeekBar;
  
  import java.util.ArrayList;
  import java.util.List;
  
  import cn.refactor.cutoloadingview.CutoLoadingView;
  import cn.refactor.cutoloadingviewdemo.header.SamplePtrFrameLayout;
  import in.srain.cube.views.ptr.PtrDefaultHandler;
  import in.srain.cube.views.ptr.PtrFrameLayout;
  import in.srain.cube.views.ptr.PtrHandler;
  
  /**
   * Create by andy (https://github.com/andyxialm)
   * Create time: 16/10/12 09:24
   * Description : Sample show progress
   */
  public class SampleFragment extends Fragment {
  
      public static SampleFragment newInstance() {
          return new SampleFragment();
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          return inflater.inflate(R.layout.fragment_sample,container,false);
      }
  
      @Override
      public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
          super.onViewCreated(view, savedInstanceState);
  
          // setup views
          final CutoLoadingView cutoLoadingView = (CutoLoadingView) view.findViewById(R.id.cuto_loading_view);
          cutoLoadingView.setMax(100.0f);
          SeekBar seekBar = (SeekBar) view.findViewById(R.id.seek_bar);
          seekBar.setMax(100);
          seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
              @Override
              public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                  cutoLoadingView.setProgress(progress);
              }
  
              @Override
              public void onStartTrackingTouch(SeekBar seekBar) {
  
              }
  
              @Override
              public void onStopTrackingTouch(SeekBar seekBar) {
  
              }
          });
      }
  
  }
  