// Path: materialAppBaseLibrary/src/main/java/com/daililol/material/appbase/utility/Converter.java
// public class Converter {
// 	
// 	public static int dp2px(Context context, float dp){
// 		return (int)(dp * context.getResources().getDisplayMetrics().density);
// 	}
// 
// 	public static int px2dp(Context context, float px){
// 		return (int)(px / context.getResources().getDisplayMetrics().density);
// 	}
// }


import com.daililol.material.appbase.R;
import com.daililol.material.appbase.utility.Converter;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AbsListView;
import android.widget.LinearLayout;
import android.widget.TextView;

package com.daililol.material.appbase.widget;



public class RetriableListFooter extends LinearLayout{
	

	private View footerView;
	private LinearLayout loadingView;
	private MaterialRaisedButton retryButton;
	private TextView noMoreText;
	private ViewType loadType = ViewType.LOADING;
	
	public static enum ViewType{
		LOADING,
		RETRY,
		NO_MORE
	}
	
	public RetriableListFooter(Context context){
		this(context, null);
	}
	
	public RetriableListFooter(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub

// Path: materialAppBaseLibrary/src/main/java/com/daililol/material/appbase/utility/Converter.java
// public class Converter {
// 	
// 	public static int dp2px(Context context, float dp){
// 		return (int)(dp * context.getResources().getDisplayMetrics().density);
// 	}
// 
// 	public static int px2dp(Context context, float px){
// 		return (int)(px / context.getResources().getDisplayMetrics().density);
// 	}
// }


// Path: materialAppBaseLibrary/src/main/java/com/daililol/material/appbase/widget/RetriableListFooter.java
import com.daililol.material.appbase.R;
import com.daililol.material.appbase.utility.Converter;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AbsListView;
import android.widget.LinearLayout;
import android.widget.TextView;

package com.daililol.material.appbase.widget;



public class RetriableListFooter extends LinearLayout{
	

	private View footerView;
	private LinearLayout loadingView;
	private MaterialRaisedButton retryButton;
	private TextView noMoreText;
	private ViewType loadType = ViewType.LOADING;
	
	public static enum ViewType{
		LOADING,
		RETRY,
		NO_MORE
	}
	
	public RetriableListFooter(Context context){
		this(context, null);
	}
	
	public RetriableListFooter(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub

		this.setLayoutParams(new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, Converter.dp2px(getContext(), 72)));
