mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.8 KiB
55 lines
1.8 KiB
10 years ago
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
tools:context=".MainActivity"
|
||
|
android:orientation="vertical" >
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
<EditText
|
||
|
android:id="@+id/host_edit_text"
|
||
|
android:layout_weight="2"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:hint="Enter Host" />
|
||
|
<EditText
|
||
|
android:id="@+id/port_edit_text"
|
||
|
android:layout_weight="1"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:inputType="numberDecimal"
|
||
|
android:hint="Enter Port" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/message_edit_text"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:hint="Enter message to send" />
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/send_button"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:onClick="sendMessage"
|
||
|
android:text="Send Grpc Request" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:paddingTop="12dp"
|
||
|
android:paddingBottom="12dp"
|
||
|
android:textSize="16dp"
|
||
|
android:text="Response:" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/grpc_response_text"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:textSize="16dp" />
|
||
|
|
||
|
</LinearLayout>
|