profile_activity.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:animateLayoutChanges="true"
  8. android:orientation="vertical"
  9. tools:ignore="ContentDescription">
  10. <android.support.v7.widget.Toolbar
  11. android:id="@+id/profileToolbar"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  15. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
  16. <View
  17. android:id="@+id/topProfileSpace"
  18. android:layout_width="match_parent"
  19. android:layout_height="0dp"
  20. android:layout_weight="1" />
  21. <ImageView
  22. android:id="@+id/profileAvatar"
  23. android:layout_width="128dp"
  24. android:layout_height="128dp"
  25. android:layout_gravity="center_horizontal"
  26. tools:src="@drawable/oval_placeholder_background" />
  27. <ViewSwitcher
  28. android:id="@+id/profileNicknameSwitcher"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_gravity="center_horizontal"
  32. android:padding="16dp">
  33. <TextView
  34. android:id="@+id/profileNickname"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_gravity="center"
  38. android:ellipsize="end"
  39. android:gravity="center"
  40. android:maxLines="1"
  41. android:textColor="?android:attr/textColorPrimary"
  42. android:textSize="28sp"
  43. tools:text="Павел Дуров" />
  44. <EditText
  45. android:id="@+id/profileNicknameEditText"
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:layout_gravity="center"
  49. android:gravity="center"
  50. android:hint="@string/profile.hint.nickname"
  51. android:inputType="text"
  52. android:textSize="28sp"
  53. tools:ignore="Autofill" />
  54. </ViewSwitcher>
  55. <View
  56. android:layout_width="match_parent"
  57. android:layout_height="0dp"
  58. android:layout_weight="2" />
  59. <View
  60. android:layout_width="match_parent"
  61. android:layout_height="0.5dp"
  62. android:background="?android:attr/textColorTertiary" />
  63. <LinearLayout
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content">
  66. <TextView
  67. android:id="@+id/profileTodoCount"
  68. style="@style/ProfileCaptionItem" />
  69. <TextView
  70. android:id="@+id/profileDoingCount"
  71. style="@style/ProfileCaptionItem" />
  72. <TextView
  73. android:id="@+id/profileDoneCount"
  74. style="@style/ProfileCaptionItem" />
  75. </LinearLayout>
  76. <View
  77. android:layout_width="match_parent"
  78. android:layout_height="0.5dp"
  79. android:background="?android:attr/textColorTertiary" />
  80. <TextView
  81. android:id="@+id/randomProfileBook"
  82. android:layout_width="match_parent"
  83. android:layout_height="56dp"
  84. android:gravity="center"
  85. android:padding="8dp"
  86. android:textColor="?android:attr/textColorSecondary"
  87. android:textSize="12sp"
  88. tools:text="Мастер и маргарита — 90%" />
  89. </LinearLayout>