Blame view

C5/testproject/src/main/res/layout/activity_main.xml 1.61 KB
fac86401   孙向锦   初始化C5 Vote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  <?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>