profile_activity.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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:orientation="vertical"
  8. tools:background="@color/colorPrimaryDark"
  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:layout_width="match_parent"
  18. android:layout_height="0dp"
  19. android:layout_weight="5" />
  20. <ImageView
  21. android:id="@+id/profileAvatar"
  22. android:layout_width="128dp"
  23. android:layout_height="128dp"
  24. android:layout_gravity="center_horizontal"
  25. tools:src="@drawable/oval_placeholder_background" />
  26. <TextView
  27. android:id="@+id/profileNickname"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_gravity="center_horizontal"
  31. android:gravity="center"
  32. android:padding="16dp"
  33. android:textColor="@color/white"
  34. android:textSize="28sp"
  35. tools:text="Павел Дуров" />
  36. <View
  37. android:layout_width="match_parent"
  38. android:layout_height="0dp"
  39. android:layout_weight="1" />
  40. <!-- TODO: visible -->
  41. <include
  42. layout="@layout/profile_contact_item"
  43. android:visibility="invisible" />
  44. <View
  45. android:layout_width="match_parent"
  46. android:layout_height="0dp"
  47. android:layout_weight="5" />
  48. <View
  49. android:layout_width="match_parent"
  50. android:layout_height="1dp"
  51. android:background="#BBFFFFFF" />
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content">
  55. <TextView
  56. android:id="@+id/profileBooksCount"
  57. style="@style/ProfileCaptionItem" />
  58. <TextView
  59. android:id="@+id/profileWishesCount"
  60. style="@style/ProfileCaptionItem" />
  61. <TextView
  62. android:id="@+id/profileReviewsCount"
  63. style="@style/ProfileCaptionItem" />
  64. </LinearLayout>
  65. <View
  66. android:layout_width="match_parent"
  67. android:layout_height="1dp"
  68. android:background="#BBFFFFFF" />
  69. <View
  70. android:layout_width="match_parent"
  71. android:layout_height="56dp" />
  72. </LinearLayout>