activity_login_ip_layout.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:flatui="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. android:background="@mipmap/login_background"
  7. android:orientation="vertical">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_alignParentBottom="true"
  12. android:layout_centerHorizontal="true"
  13. android:layout_marginBottom="@dimen/space_100"
  14. android:orientation="vertical"
  15. android:paddingLeft="@dimen/space_30"
  16. android:paddingRight="@dimen/space_30">
  17. <LinearLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_margin="15dip"
  21. android:gravity="left"
  22. android:orientation="vertical">
  23. <TextView
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:text="@string/login_ip_address"
  27. android:textColor="@color/black"
  28. android:textSize="@dimen/text_size_18" />
  29. <com.jsjty.jdc.app.widget.flatui.views.FlatEditText
  30. android:id="@+id/login_ip_input"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_marginTop="@dimen/space_5"
  34. android:gravity="center_vertical"
  35. android:hint="@string/login_ip_input"
  36. android:includeFontPadding="true"
  37. android:maxLines="1"
  38. flatui:fl_fieldStyle="fl_box"
  39. flatui:fl_theme="@array/sea" />
  40. </LinearLayout>
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:layout_margin="15dip"
  45. android:gravity="left"
  46. android:orientation="vertical">
  47. <TextView
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:text="@string/login_port_address"
  51. android:textColor="@color/black"
  52. android:textSize="@dimen/text_size_18" />
  53. <com.jsjty.jdc.app.widget.flatui.views.FlatEditText
  54. android:id="@+id/login_port_input"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginTop="@dimen/space_5"
  58. android:gravity="center_vertical"
  59. android:hint="@string/login_port_input"
  60. android:includeFontPadding="true"
  61. android:inputType="number"
  62. android:maxLines="1"
  63. flatui:fl_fieldStyle="fl_box"
  64. flatui:fl_theme="@array/sea" />
  65. </LinearLayout>
  66. <TextView
  67. android:id="@+id/login_btn_save"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_marginTop="@dimen/space_20"
  71. android:background="@mipmap/login_btn"
  72. android:gravity="center"
  73. android:text="@string/login_ip_save"
  74. android:textColor="@color/white"
  75. android:textSize="@dimen/text_size_22" />
  76. <TextView
  77. android:id="@+id/login_btn_cancel"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content"
  80. android:layout_marginTop="@dimen/space_10"
  81. android:background="@mipmap/login_cancel"
  82. android:gravity="center"
  83. android:text="@string/login_ip_cancel"
  84. android:textColor="@color/white"
  85. android:textSize="@dimen/text_size_22" />
  86. </LinearLayout>
  87. </RelativeLayout>