// 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.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.TextView;
package com.daililol.material.appbase.widget;



public class MaterialFlatButton extends TextView{

	public static enum Theme{
		LIGHT,
		DARK
	}
	
	public MaterialFlatButton(Context context){
		this(context, null);
	}
	
	public MaterialFlatButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
		
		int theme = 0;
		int padding = -1;
		int paddingLeft = -1;
		int paddingRight = -1;
		int paddingTop = -1;
		int paddingBottom = -1;
		

		
		if (attrs != null){
			TypedArray t = context.obtainStyledAttributes(attrs, R.styleable.MaterialButton);
			theme = t.getInt(R.styleable.MaterialButton_button_theme, 0);
			padding = (int)t.getDimension(R.styleable.MaterialButton_android_padding, padding);
			paddingLeft = (int)t.getDimension(R.styleable.MaterialButton_android_paddingLeft, paddingLeft);
			paddingRight = (int)t.getDimension(R.styleable.MaterialButton_android_paddingRight, paddingRight);
			paddingTop = (int)t.getDimension(R.styleable.MaterialButton_android_paddingTop, paddingTop);
			paddingBottom = (int)t.getDimension(R.styleable.MaterialButton_android_paddingBottom, paddingBottom);
			t.recycle();
			
		}

		this.setClickable(true);
		
// 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/MaterialFlatButton.java
import com.daililol.material.appbase.R;
import com.daililol.material.appbase.utility.Converter;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.TextView;

package com.daililol.material.appbase.widget;



public class MaterialFlatButton extends TextView{

	public static enum Theme{
		LIGHT,
		DARK
	}
	
	public MaterialFlatButton(Context context){
		this(context, null);
	}
	
	public MaterialFlatButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
		
		int theme = 0;
		int padding = -1;
		int paddingLeft = -1;
		int paddingRight = -1;
		int paddingTop = -1;
		int paddingBottom = -1;
		

		
		if (attrs != null){
			TypedArray t = context.obtainStyledAttributes(attrs, R.styleable.MaterialButton);
			theme = t.getInt(R.styleable.MaterialButton_button_theme, 0);
			padding = (int)t.getDimension(R.styleable.MaterialButton_android_padding, padding);
			paddingLeft = (int)t.getDimension(R.styleable.MaterialButton_android_paddingLeft, paddingLeft);
			paddingRight = (int)t.getDimension(R.styleable.MaterialButton_android_paddingRight, paddingRight);
			paddingTop = (int)t.getDimension(R.styleable.MaterialButton_android_paddingTop, paddingTop);
			paddingBottom = (int)t.getDimension(R.styleable.MaterialButton_android_paddingBottom, paddingBottom);
			t.recycle();
			
		}

		this.setClickable(true);
		
		int defaultPaddingLeft = Converter.dp2px(context, 16);