activity_main.xml 1.61 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.sunvote.udptest.MainActivity">


    <EditText
        android:id="@+id/server_ip"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="请输入server IP"
        android:text="192.168.0.170"/>

    <EditText
        android:id="@+id/server_port"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="请输入server 端口"
        android:text="40001"
        android:inputType="number"
        android:layout_below="@+id/server_ip"/>

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="请输入发送内容"
        android:id="@+id/content"
        android:text="f5 aa aa 1a 00 00 00 00 91 00 12 00 00 5d 78 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c9 bb"
        android:layout_below="@id/server_port"/>

    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Test"
        android:id="@+id/test"
        android:layout_below="@id/content"/>


    <TextView
        android:id="@+id/webviewtest"
        android:layout_below="@id/test"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</RelativeLayout>