Connection between View in the xml file and extened View class
Is there a way to link inherit class to xml file. I am trying to connect extended class to widget in the xml file. Is it possible ? Thanks in advance. You must have noticed that all the nodes that we specify in the layout XMLs are actually either View classes(for e.g: TextView, EditView) or view containers/layout managers(e.g: LinearLayout, RelativeLayout etc.). Android allows you to create custom views and containers by extending the View class and one of the layout managers, respectively. You can then choose to inflate such views directly from code or specify them as nodes in your layout