activity_main.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <RelativeLayout 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. android:paddingBottom="@dimen/activity_vertical_margin"
  6. android:paddingLeft="@dimen/activity_horizontal_margin"
  7. android:paddingRight="@dimen/activity_horizontal_margin"
  8. android:paddingTop="@dimen/activity_vertical_margin"
  9. tools:context="me.yoqi.wifiproxy.MainActivity" >
  10. <LinearLayout
  11. android:id="@+id/layout_main"
  12. android:layout_width="fill_parent"
  13. android:layout_height="fill_parent"
  14. android:orientation="vertical" >
  15. <TextView
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:text="host:" />
  19. <EditText
  20. android:id="@+id/edt_host"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:text="@string/v_host" />
  24. <TextView
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:text="@string/port_" />
  28. <EditText
  29. android:id="@+id/edt_port"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:text="@string/v_port" />
  33. <Button
  34. android:id="@+id/button1"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_gravity="center"
  38. android:layout_marginTop="50sp"
  39. android:text="@string/set_wifi_proxy" />
  40. </LinearLayout>
  41. </RelativeLayout>