At the moment I'm trying to create a own view. Now I found the usefull tutorial on developer.android.net. I followed the instroduction, but I have some trouble to use the view.
First, my folder structur
cView.java
package company.firstactivity.customViews;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
public class cView extends View{
public cView(Context context, AttributeSet attrs){
super(context,attrs);
}
}
cViewAttributes.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="cView">
<attr name="showText" format="boolean" />
</declare-styleable>
</resources>
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="company.firstactivity.MainActivity">
</RelativeLayout>
My problem is the namespace to use the view. What is the namespace? Can anyone help me?
Thanks in advance!

showText.