New UI Component of Custom View in Android Studio



In Android Studio, you can easily create custom view:
> File > New > UI Component > Custom View

Android Studio will create a almost full feature custom view for you, also provide a sample xml to show how to add it in your layout xml.