Our application will have the following user interface:
It has a button that we can use to launch a native camera application to take a photo, a text view to show image classification descriptions, and an image view to show the photo. We should define these UI elements in the activity_main.xml file of the project. The following snippet shows this file:
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="10dp" android:paddingRight="10dp"><TextView android:text="@string/btn_name" ...