In Android, an XML-based layout is a file that defines the different widgets to be used in the UI and the relations between those widgets and their containers . Android treats the layout files as resources. Hence the layouts are kept in the folder reslayout.