How to My own made View into XML tag at Android Development

Introduction

in a layout/dialogname.xml file, I found XML tag is someone's own made View class.
like this

<com.mypackage.name.MyProject.MyView
android:id="@+id/myView" 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
   />

I was wondering what it is, and I surveyed.
this is called "custom view"

CustomView Sample in Android-SDK

this sample is here.

C:\Program Files\Android\android-sdk\samples\android-8\ApiDemos

(android-APIversion)
under that,
View/Custom
How to run Android SDK's sample ishere
customview.png

package com.example.android.apis.view;
import com.example.android.apis.R;
 
import android.app.Activity;
import android.os.Bundle;
 
public class CustomView1 extends Activity {
 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.custom_view_1);
    }
}
en.gif en
ja.gif ja


edit
サポートサイト Wikidot.com