一、实现构造方法
public Preview(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
}
二、layout
<enleo.well_read_eye.Preview
android:id="@+id/previewView"
android:visibility="visible"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</enleo.well_read_eye.Preview>