// Path: library/src/main/java/com/hadlink/library/widget/progress/CircularProgressBar.java
// public class CircularProgressBar extends ProgressBar {
// 
//   public CircularProgressBar(Context context) {
//     this(context, null);
//   }
// 
//   public CircularProgressBar(Context context, AttributeSet attrs) {
//     this(context, attrs, R.attr.cpbStyle);
//   }
// 
//   public CircularProgressBar(Context context, AttributeSet attrs, int defStyle) {
//     super(context, attrs, defStyle);
// 
//     if (isInEditMode()) {
//       setIndeterminateDrawable(new CircularProgressDrawable.Builder(context, true).build());
//       return;
//     }
// 
//     Resources res = context.getResources();
//     TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CircularProgressBar, defStyle, 0);
// 
// 
//     final int color = a.getColor(R.styleable.CircularProgressBar_cpb_color, res.getColor(R.color.cpb_default_color));
//     final float strokeWidth = a.getDimension(R.styleable.CircularProgressBar_cpb_stroke_width, res.getDimension(R.dimen.cpb_default_stroke_width));
//     final float sweepSpeed = a.getFloat(R.styleable.CircularProgressBar_cpb_sweep_speed, Float.parseFloat(res.getString(R.string.cpb_default_sweep_speed)));
//     final float rotationSpeed = a.getFloat(R.styleable.CircularProgressBar_cpb_rotation_speed, Float.parseFloat(res.getString(R.string.cpb_default_rotation_speed)));
//     final int colorsId = a.getResourceId(R.styleable.CircularProgressBar_cpb_colors, 0);
//     final int minSweepAngle = a.getInteger(R.styleable.CircularProgressBar_cpb_min_sweep_angle, res.getInteger(R.integer.cpb_default_min_sweep_angle));
//     final int maxSweepAngle = a.getInteger(R.styleable.CircularProgressBar_cpb_max_sweep_angle, res.getInteger(R.integer.cpb_default_max_sweep_angle));
//     a.recycle();
// 
//     int[] colors = null;
//     //colors
//     if (colorsId != 0) {
//       colors = res.getIntArray(colorsId);
//     }
// 
//     Drawable indeterminateDrawable;
//     CircularProgressDrawable.Builder builder = new CircularProgressDrawable.Builder(context)
//         .sweepSpeed(sweepSpeed)
//         .rotationSpeed(rotationSpeed)
//         .strokeWidth(strokeWidth)
//         .minSweepAngle(minSweepAngle)
//         .maxSweepAngle(maxSweepAngle);
// 
//     if (colors != null && colors.length > 0)
//       builder.colors(colors);
//     else
//       builder.color(color);
// 
//     indeterminateDrawable = builder.build();
//     setIndeterminateDrawable(indeterminateDrawable);
//   }
// 
//   private CircularProgressDrawable checkIndeterminateDrawable() {
//      Drawable ret = getIndeterminateDrawable();
//      if (ret == null || !(ret instanceof CircularProgressDrawable))
//         throw new RuntimeException("The drawable is not a CircularProgressDrawable");
//      return (CircularProgressDrawable) ret;
//   }
// 
//   public void progressiveStop() {
//     checkIndeterminateDrawable().progressiveStop();
//   }
// 
//   public void progressiveStop(CircularProgressDrawable.OnEndListener listener) {
//     checkIndeterminateDrawable().progressiveStop(listener);
//   }
// }


import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.hadlink.library.R;
import com.hadlink.library.widget.progress.CircularProgressBar;
/*
 *    Copyright (c) 2016, lyao. lomoliger@hotmail.com
 *
 *     Part of the code from the open source community,
 *     thanks stackOverflow & gitHub .
 *     Licensed under the Apache License, Version 2.0 (the "License");
 *     you may not use this file except in compliance with the License.
 *     You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *     Unless required by applicable law or agreed to in writing, software
 *     distributed under the License is distributed on an "AS IS" BASIS,
 *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *     See the License for the specific language governing permissions and
 *     limitations under the License.
 */

package com.hadlink.library.widget.pla;




public class PLALoadMoreListView extends PLAMultiColumnListView implements PLAAbsListView.OnScrollListener {

    private OnScrollListener mOnScrollListener;
    private LayoutInflater mInflater;

    // footer view
    private RelativeLayout mFooterView;
    private TextView mLabLoadMore;
// Path: library/src/main/java/com/hadlink/library/widget/progress/CircularProgressBar.java
// public class CircularProgressBar extends ProgressBar {
// 
//   public CircularProgressBar(Context context) {
//     this(context, null);
//   }
// 
//   public CircularProgressBar(Context context, AttributeSet attrs) {
//     this(context, attrs, R.attr.cpbStyle);
//   }
// 
//   public CircularProgressBar(Context context, AttributeSet attrs, int defStyle) {
//     super(context, attrs, defStyle);
// 
//     if (isInEditMode()) {
//       setIndeterminateDrawable(new CircularProgressDrawable.Builder(context, true).build());
//       return;
//     }
// 
//     Resources res = context.getResources();
//     TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CircularProgressBar, defStyle, 0);
// 
// 
//     final int color = a.getColor(R.styleable.CircularProgressBar_cpb_color, res.getColor(R.color.cpb_default_color));
//     final float strokeWidth = a.getDimension(R.styleable.CircularProgressBar_cpb_stroke_width, res.getDimension(R.dimen.cpb_default_stroke_width));
//     final float sweepSpeed = a.getFloat(R.styleable.CircularProgressBar_cpb_sweep_speed, Float.parseFloat(res.getString(R.string.cpb_default_sweep_speed)));
//     final float rotationSpeed = a.getFloat(R.styleable.CircularProgressBar_cpb_rotation_speed, Float.parseFloat(res.getString(R.string.cpb_default_rotation_speed)));
//     final int colorsId = a.getResourceId(R.styleable.CircularProgressBar_cpb_colors, 0);
//     final int minSweepAngle = a.getInteger(R.styleable.CircularProgressBar_cpb_min_sweep_angle, res.getInteger(R.integer.cpb_default_min_sweep_angle));
//     final int maxSweepAngle = a.getInteger(R.styleable.CircularProgressBar_cpb_max_sweep_angle, res.getInteger(R.integer.cpb_default_max_sweep_angle));
//     a.recycle();
// 
//     int[] colors = null;
//     //colors
//     if (colorsId != 0) {
//       colors = res.getIntArray(colorsId);
//     }
// 
//     Drawable indeterminateDrawable;
//     CircularProgressDrawable.Builder builder = new CircularProgressDrawable.Builder(context)
//         .sweepSpeed(sweepSpeed)
//         .rotationSpeed(rotationSpeed)
//         .strokeWidth(strokeWidth)
//         .minSweepAngle(minSweepAngle)
//         .maxSweepAngle(maxSweepAngle);
// 
//     if (colors != null && colors.length > 0)
//       builder.colors(colors);
//     else
//       builder.color(color);
// 
//     indeterminateDrawable = builder.build();
//     setIndeterminateDrawable(indeterminateDrawable);
//   }
// 
//   private CircularProgressDrawable checkIndeterminateDrawable() {
//      Drawable ret = getIndeterminateDrawable();
//      if (ret == null || !(ret instanceof CircularProgressDrawable))
//         throw new RuntimeException("The drawable is not a CircularProgressDrawable");
//      return (CircularProgressDrawable) ret;
//   }
// 
//   public void progressiveStop() {
//     checkIndeterminateDrawable().progressiveStop();
//   }
// 
//   public void progressiveStop(CircularProgressDrawable.OnEndListener listener) {
//     checkIndeterminateDrawable().progressiveStop(listener);
//   }
// }


// Path: library/src/main/java/com/hadlink/library/widget/pla/PLALoadMoreListView.java
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.hadlink.library.R;
import com.hadlink.library.widget.progress.CircularProgressBar;

/*
 *    Copyright (c) 2016, lyao. lomoliger@hotmail.com
 *
 *     Part of the code from the open source community,
 *     thanks stackOverflow & gitHub .
 *     Licensed under the Apache License, Version 2.0 (the "License");
 *     you may not use this file except in compliance with the License.
 *     You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *     Unless required by applicable law or agreed to in writing, software
 *     distributed under the License is distributed on an "AS IS" BASIS,
 *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *     See the License for the specific language governing permissions and
 *     limitations under the License.
 */

package com.hadlink.library.widget.pla;




public class PLALoadMoreListView extends PLAMultiColumnListView implements PLAAbsListView.OnScrollListener {

    private OnScrollListener mOnScrollListener;
    private LayoutInflater mInflater;

    // footer view
    private RelativeLayout mFooterView;
    private TextView mLabLoadMore;
    private CircularProgressBar mProgressBarLoadMore;