I'm sure this is a stupid question but I just can't find an answer anywhere. I'm trying to create a custom View XML element in Android (using Xamarin, so it's technically C#, although I don't think that matters here). I've found a bunch of tutorials, but no one seems to explain where on earth the path comes from. For example, the google example looks like:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/com.example.customviews">
<com.example.customviews.charting.PieChart
custom:showText="true"
custom:labelPosition="left" />
</LinearLayout>
Where did com.example.customviews.charting come from? None of the examples I've found explain how this path is created. I found someone saying it was the package name, but my package name doesn't look anything like that (maybe I did something wrong when generating the file?):
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="AndroidDemo.AndroidDemo" android:versionCode="1" android:versionName="1.0" android:installLocation="auto">
Right now I've got this in my layout:
<AndroidDemo.AndroidDemo.DragRectView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/dragRect" />
Which results in an Android.View.InflateException and a java.lang.ClassNotFoundException.
I'm sure I've got the path to DragRectView (my class) wrong; can anyone give me some direction on how to figure out what it is?