1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" 3 android:layout_height="match_parent" 4 tools:context=".MainActivity" 5 android:orientation="vertical" > 6 7 <LinearLayout 8 android:layout_width="match_parent" 9 android:layout_height="wrap_content" 10 android:orientation="horizontal"> 11 <EditText 12 android:id="@+id/host_edit_text" 13 android:layout_weight="2" 14 android:layout_width="0dp" 15 android:layout_height="wrap_content" 16 android:hint="Enter Host" /> 17 <EditText 18 android:id="@+id/port_edit_text" 19 android:layout_weight="1" 20 android:layout_width="0dp" 21 android:layout_height="wrap_content" 22 android:inputType="numberDecimal" 23 android:hint="Enter Port" /> 24 </LinearLayout> 25 26 27 <EditText 28 android:id="@+id/message_edit_text" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:hint="Enter message to send" /> 32 33 <Button 34 android:id="@+id/send_button" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:onClick="sendMessage" 38 android:text="Send Grpc Request" /> 39 40 <TextView 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:paddingTop="12dp" 44 android:paddingBottom="12dp" 45 android:textSize="16sp" 46 android:text="Response:" /> 47 48 <TextView 49 android:id="@+id/grpc_response_text" 50 android:layout_width="match_parent" 51 android:layout_height="match_parent" 52 android:scrollbars = "vertical" 53 android:textSize="16sp" /> 54 55</LinearLayout> 56