Skip to content

Instantly share code, notes, and snippets.

@eddieberklee
Created June 8, 2016 22:32
Show Gist options
  • Select an option

  • Save eddieberklee/780d0b63fc3960d61ef042bf389f6ce6 to your computer and use it in GitHub Desktop.

Select an option

Save eddieberklee/780d0b63fc3960d61ef042bf389f6ce6 to your computer and use it in GitHub Desktop.
package com.compscieddy.meetinthemiddle.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import com.compscieddy.eddie_utils.Lawg;
/**
* Created by elee on 6/8/16.
* Based off http://stackoverflow.com/a/26201117/4326052
*/
public class CropCircleView extends FrameLayout {
private final static Lawg lawg = Lawg.newInstance(CropCircleView.class.getSimpleName());
public CropCircleView(Context context) {
super(context, null, 0);
init(context, null, 0);
}
public CropCircleView(Context context, AttributeSet attrs) {
super(context, attrs, 0);
init(context, attrs, 0);
}
public CropCircleView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
init(context, attrs, defStyle);
}
public void init(Context context, AttributeSet attrs, int defStyle) {
// TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.ForadayTextView);
// int typefaceId = ta.getInt(R.styleable.ForadayTextView_fontface, FontCache.MONTSERRAT_REGULAR);
// setTypeface(FontCache.get(context, typefaceId));
// ta.recycle();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment