I created a class like this
public final class MyView extends View { public MyView(Context context, AttributeSet attrs) { super(context, attrs);
You should write it like:
<view class="com.hitziger.barcode.MyView"...
in the layout.xml, use:
<View android:class="com.hitziger.barcode.MyView" android:id="@+id/my_view" ...
istead of:
<com.hitziger.barcode.MyView android:id="@+id/my_view"