When we create a new project, Android Studio creates a new layout for us. As we have seen, this autogenerated layout is very simple and contains a single
TextView widget. The
TextView widget is unsurprisingly the standard way of displaying text. On the palette it is labeled as Plain TextView but in XML code it just says
TextView. I will refer to it in the way that seems most appropriate for the current context.
It will become apparent as we progress, but it is worth making clear at this point that all our layouts will be designed in XML, not Java. In later chapters, you will learn more Java and then we will see how we write Java code to manipulate these layouts.
What we haven't looked at quite as closely is that the generated ...