As mentioned in a previous chapter, widgets have attributes that describe how they
should behave. In an XML layout file, these are literally XML attributes on the
widget’s element in the file. Usually, there are corresponding getter and setter
methods for manipulating this attribute at runtime from your Java code.