I cannot access the elements in my XML form the main activity,
writing the element id throws errors as if the element is not even there.
Basically Main can’t see what is written in XML file, even though they are linked.
Can’t detect the getBmiButton button from XML
Source: Windows Questions