activity_change_password.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <merge xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. tools:context=".ChangePasswordActivity" >
  4. <!-- Login progress -->
  5. <LinearLayout
  6. android:id="@+id/login_status"
  7. android:layout_width="wrap_content"
  8. android:layout_height="wrap_content"
  9. android:layout_gravity="center"
  10. android:gravity="center_horizontal"
  11. android:orientation="vertical"
  12. android:visibility="gone" >
  13. <ProgressBar
  14. style="?android:attr/progressBarStyleLarge"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:layout_marginBottom="8dp" />
  18. <TextView
  19. android:id="@+id/login_status_message"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_marginBottom="16dp"
  23. android:text="Connecting..."
  24. android:textAppearance="?android:attr/textAppearanceMedium" />
  25. </LinearLayout>
  26. <!-- Login form -->
  27. <ScrollView
  28. android:id="@+id/login_form"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent" >
  31. <LinearLayout
  32. style="@style/LoginFormContainer"
  33. android:orientation="vertical" >
  34. <EditText
  35. android:id="@+id/old_password"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:hint="Old password"
  39. android:imeActionId="@+id/login"
  40. android:imeActionLabel="@string/action_sign_in_short"
  41. android:imeOptions="actionUnspecified"
  42. android:inputType="textPassword"
  43. android:maxLines="1"
  44. android:singleLine="true"
  45. android:text="" />
  46. <EditText
  47. android:id="@+id/new_password"
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:hint="New password"
  51. android:imeActionId="@+id/login"
  52. android:imeActionLabel="@string/action_sign_in_short"
  53. android:imeOptions="actionUnspecified"
  54. android:inputType="textPassword"
  55. android:maxLines="1"
  56. android:singleLine="true"
  57. android:text="" />
  58. <EditText
  59. android:id="@+id/new_password_confirm"
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:hint="Confirm new password"
  63. android:imeActionId="@+id/login"
  64. android:imeActionLabel="@string/action_sign_in_short"
  65. android:imeOptions="actionUnspecified"
  66. android:inputType="textPassword"
  67. android:maxLines="1"
  68. android:singleLine="true"
  69. android:text="" />
  70. <LinearLayout
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content" >
  73. <Button
  74. android:id="@+id/btn_close"
  75. android:layout_width="fill_parent"
  76. android:layout_height="wrap_content"
  77. android:layout_marginTop="16dp"
  78. android:layout_weight="1"
  79. android:paddingLeft="32dp"
  80. android:paddingRight="32dp"
  81. android:text="Close" />
  82. <Button
  83. android:id="@+id/btn_ok"
  84. android:layout_width="fill_parent"
  85. android:layout_height="wrap_content"
  86. android:layout_marginTop="16dp"
  87. android:layout_weight="1"
  88. android:paddingLeft="32dp"
  89. android:paddingRight="32dp"
  90. android:text="Ok" />
  91. </LinearLayout>
  92. </LinearLayout>
  93. </ScrollView>
  94. </merge>