The next exercise is to add a text label, a text box and a button. These elements are called widgets in Android which has the class name
Button in the Android API. We will not go through the details of these classes; most importantly we could apply these widgets in our app.
To open this layout, double-click the
res/layout/activity_main.xml file from the project explorer.
On the left of the app screen, you'll see the Palette. Browse the Form Widgets, there are several widgets including the
TextView. Click and drag the
TextView widgets to the app screen. Change the widget ID into
"@+id/tvName", and make sure to press Enter to confirm your changes and save them to the XML file. The