If, however, you want to create some Views in the project from code, you should know that you can do this with "native" Views, such as Button, Label, EditText, etc., but you can't do it with Custom Views; you'll always have to insert them into a Layout.