1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 5 tools:context=".MainActivity" 6 android:orientation="vertical" 7 > 8 9 <LinearLayout 10 android:layout_width="match_parent" 11 android:layout_height="wrap_content" 12 android:orientation="horizontal" 13 > 14 <EditText 15 android:id="@+id/host_edit_text" 16 android:layout_weight="2" 17 android:layout_width="0dp" 18 android:layout_height="wrap_content" 19 android:hint="Enter Host" 20 /> 21 <EditText 22 android:id="@+id/port_edit_text" 23 android:layout_weight="1" 24 android:layout_width="0dp" 25 android:layout_height="wrap_content" 26 android:inputType="numberDecimal" 27 android:hint="Enter Port" 28 /> 29 </LinearLayout> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:orientation="horizontal"> 35 <CheckBox android:id="@+id/use_uds_checkbox" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:onClick="enableUds" 39 android:textColor="@color/focus" 40 android:text="Use UDS (SSL not supported)"/> 41 <EditText 42 android:id="@+id/uds_proxy_edit_text" 43 android:layout_height="wrap_content" 44 android:layout_width="match_parent" 45 android:enabled="false" 46 android:hint="Enter Unix Domain Socket Abstract Namespace Address" 47 /> 48 </LinearLayout> 49 50 <LinearLayout 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:orientation="horizontal" 54 > 55 <CheckBox android:id="@+id/test_cert_checkbox" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:textColor="@color/focus" 59 android:text="Use Test Cert" 60 /> 61 </LinearLayout> 62 63 <Button 64 android:id="@+id/empty_unary_button" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:onClick="startEmptyUnary" 68 android:text="Empty Unary" 69 tools:ignore="OnClick" 70 /> 71 72 <Button 73 android:id="@+id/large_unary_button" 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" 76 android:onClick="startLargeUnary" 77 android:text="Large Unary" 78 tools:ignore="OnClick" 79 /> 80 81 <Button 82 android:id="@+id/client_streaming_button" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:onClick="startClientStreaming" 86 android:text="Client Streaming" 87 tools:ignore="OnClick" 88 /> 89 90 <Button 91 android:id="@+id/server_streaming_button" 92 android:layout_width="match_parent" 93 android:layout_height="wrap_content" 94 android:onClick="startServerStreaming" 95 android:text="Server Streaming" 96 tools:ignore="OnClick" 97 /> 98 99 <Button 100 android:id="@+id/ping_pong_button" 101 android:layout_width="match_parent" 102 android:layout_height="wrap_content" 103 android:onClick="startPingPong" 104 android:text="Ping Pong" 105 tools:ignore="OnClick" 106 /> 107 108 <TextView 109 android:layout_width="match_parent" 110 android:layout_height="wrap_content" 111 android:paddingTop="12dp" 112 android:paddingBottom="12dp" 113 android:textSize="16sp" 114 android:text="Response:" 115 /> 116 117 <ScrollView 118 android:id="@+id/result_area" 119 android:layout_width="fill_parent" 120 android:layout_height="wrap_content" 121 android:scrollbars="vertical" 122 android:fillViewport="true" 123 > 124 125 <TextView 126 android:id="@+id/grpc_response_text" 127 android:layout_width="fill_parent" 128 android:layout_height="wrap_content" 129 android:textSize="16sp" 130 /> 131 132 </ScrollView> 133 134</LinearLayout> 135