fork(1) download
  1. <LinearLayout xmlns:android="http://s...content-available-to-author-only...d.com/apk/res/android"
  2. xmlns:tools="http://s...content-available-to-author-only...d.com/tools"
  3. android:id="@+id/LinearLayout1"
  4. android:layout_width="fill_parent"
  5. android:layout_height="match_parent"
  6. android:gravity="center_horizontal"
  7. android:orientation="vertical" >
  8.  
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content" >
  12.  
  13. <TextView
  14. android:id="@+id/textView1"
  15. android:layout_width="0dp"
  16. android:layout_height="wrap_content"
  17. android:layout_weight="1"
  18. android:text="IP地址"
  19. android:textAppearance="?android:attr/textAppearanceLarge" />
  20.  
  21. <EditText
  22. android:id="@+id/ed_ip"
  23. android:layout_width="0dp"
  24. android:layout_height="wrap_content"
  25. android:layout_weight="2.5"
  26. android:ems="10"
  27. android:hint="192.168.1.1"
  28. android:text="192.168.1.1" >
  29. </EditText>
  30. </LinearLayout>
  31.  
  32. <LinearLayout
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content" >
  35.  
  36. <TextView
  37. android:id="@+id/textView2"
  38. android:layout_width="0dp"
  39. android:layout_height="wrap_content"
  40. android:layout_weight="1"
  41. android:text="端口号"
  42. android:textAppearance="?android:attr/textAppearanceLarge" />
  43.  
  44. <EditText
  45. android:id="@+id/ed_port"
  46. android:layout_width="0dp"
  47. android:layout_height="wrap_content"
  48. android:layout_weight="1.5"
  49. android:ems="10"
  50. android:hint="1234"
  51. android:inputType="number"
  52. android:text="1234" />
  53.  
  54. android:id="@+id/bn_connect"
  55. android:layout_width="0dp"
  56. android:layout_height="wrap_content"
  57. android:layout_weight="1"
  58. android:text=" connect "
  59. android:textSize="20sp" />
  60. </LinearLayout>
  61.  
  62. <LinearLayout
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content" >
  65.  
  66. <EditText
  67. android:id="@+id/ed_dat"
  68. android:layout_width="0dp"
  69. android:layout_height="wrap_content"
  70. android:layout_weight="1"
  71. android:hint="data to send..."
  72. android:inputType="textMultiLine"
  73. android:minLines="3"
  74. android:scrollHorizontally="true"
  75. android:text="test_data" />
  76.  
  77. android:id="@+id/bn_send"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:text="發送"
  81. android:textSize="30sp" />
  82. </LinearLayout>
  83.  
  84. <TextView
  85. android:id="@+id/textView4"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:text="接收到的資料(點擊可清除):"
  89. android:textSize="20sp" />
  90.  
  91. <ScrollView
  92. android:id="@+id/scrollView1"
  93. android:layout_width="match_parent"
  94. android:layout_height="fill_parent" >
  95.  
  96. <TextView
  97. android:id="@+id/tx_receive"
  98. android:layout_width="fill_parent"
  99. android:layout_height="wrap_content" />
  100. </ScrollView>
  101.  
  102. </LinearLayout>
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
^
Main.java:1: error: class, interface, or enum expected
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 ^
2 errors
stdout
Standard output is empty