Exploring the palette – part 1
Let's take a whirlwind tour of some of those previously unexplored/unused items from the palette. Then, we can drag a bunch of them onto a layout and see some of the methods they have that might be useful. We can then implement a project to put them all to use.
We already explored the Button and TextView widgets in the last chapter. Let's take a closer look at some additional widgets.
The EditText widget
The EditText widget does as its name suggests. If we make an EditText widget available to our users, then they will indeed be able to edit the text inside it. We looked at this in an earlier chapter; however, we didn't actually achieve anything with it. What we didn't explore was how to capture the information from within it, or where we would type this text-capturing code.
The following block of code assumes that we have declared an object of the EditText type and used it to get a reference to an EditText widget...