Home | History | Annotate | Download | only in layout
      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       >
     36     <CheckBox android:id="@+id/get_checkbox"
     37         android:layout_width="wrap_content"
     38         android:layout_height="wrap_content"
     39         android:text="@string/use_get"
     40         />
     41     <CheckBox android:id="@+id/test_cert_checkbox"
     42         android:layout_width="wrap_content"
     43         android:layout_height="wrap_content"
     44         android:text="Use Test Cert"
     45         />
     46   </LinearLayout>
     47 
     48   <Button
     49       android:id="@+id/empty_unary_button"
     50       android:layout_width="match_parent"
     51       android:layout_height="wrap_content"
     52       android:onClick="startEmptyUnary"
     53       android:text="Empty Unary"
     54       />
     55 
     56   <Button
     57       android:id="@+id/large_unary_button"
     58       android:layout_width="match_parent"
     59       android:layout_height="wrap_content"
     60       android:onClick="startLargeUnary"
     61       android:text="Large Unary"
     62       />
     63 
     64   <Button
     65       android:id="@+id/client_streaming_button"
     66       android:layout_width="match_parent"
     67       android:layout_height="wrap_content"
     68       android:onClick="startClientStreaming"
     69       android:text="Client Streaming"
     70       />
     71 
     72   <Button
     73       android:id="@+id/server_streaming_button"
     74       android:layout_width="match_parent"
     75       android:layout_height="wrap_content"
     76       android:onClick="startServerStreaming"
     77       android:text="Server Streaming"
     78       />
     79 
     80   <Button
     81       android:id="@+id/ping_pong_button"
     82       android:layout_width="match_parent"
     83       android:layout_height="wrap_content"
     84       android:onClick="startPingPong"
     85       android:text="Ping Pong"
     86       />
     87 
     88   <TextView
     89       android:layout_width="match_parent"
     90       android:layout_height="wrap_content"
     91       android:paddingTop="12dp"
     92       android:paddingBottom="12dp"
     93       android:textSize="16sp"
     94       android:text="Response:"
     95       />
     96 
     97   <ScrollView
     98       android:id="@+id/result_area"
     99       android:layout_width="fill_parent"
    100       android:layout_height="wrap_content"
    101       android:scrollbars="vertical"
    102       android:fillViewport="true"
    103       >
    104 
    105     <TextView
    106         android:id="@+id/grpc_response_text"
    107         android:layout_width="fill_parent"
    108         android:layout_height="wrap_content"
    109         android:textSize="16sp"
    110         />
    111 
    112   </ScrollView>
    113 
    114 </LinearLayout>
    115