61.5 Adding the Web View to the UI
The user interface for the sole activity contained within the new MyWebView project is going to consist of an instance of the Android WebView widget. Within the Project tool window, locate the activity_main.xml file, which contains the user interface description for the activity, and double-click on it to load it into the Layout Editor tool.
With the Layout Editor tool in Design mode, select the default TextView widget and remove it from the layout by using the keyboard delete key.
Drag and drop a WebView object from the Widgets section of the palette onto the existing ConstraintLayout view as illustrated in Figure 61-2:
Figure 61-2
Before continuing, change the ID of the WebView instance to webView1 and use the Infer constraints button to add any missing constraints.