58.2 Designing the User Interface
Locate and load the activity_main.xml file in the Project tool window (app -> res -> layout -> activity_main.xml). Right-click on the “Hello World!” TextView and select the Convert view... option from the resulting menu. In the conversion dialog, select the Button view before clicking on Apply. Select the new button, change the text to read “Start Service” and extract the string to a resource named start_service. With the new Button still selected, locate the onClick property in the Attributes panel and assign to it a method named buttonClick.