circle_of_person_activity.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:my="http://schemas.android.com/tools"
  5. android:id="@+id/main_content"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent">
  8. <android.support.design.widget.AppBarLayout
  9. android:id="@+id/appbar"
  10. android:layout_width="match_parent"
  11. android:layout_height="256dp">
  12. <!--android:fitsSystemWindows="true">-->
  13. <android.support.design.widget.CollapsingToolbarLayout
  14. android:id="@+id/collapsing_toolbar"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:fitsSystemWindows="true"
  18. app:contentScrim="?attr/colorPrimary"
  19. app:expandedTitleMarginEnd="64dp"
  20. app:expandedTitleMarginStart="48dp"
  21. app:layout_scrollFlags="scroll|exitUntilCollapsed">
  22. <RelativeLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:orientation="vertical"
  26. app:layout_collapseMode="parallax">
  27. <!--android:fitsSystemWindows="true" >-->
  28. <ImageView
  29. android:id="@+id/circle_background"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:scaleType="centerCrop"
  33. android:src="@drawable/temp_circle_background" />
  34. <LinearLayout
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_alignParentBottom="true"
  38. android:layout_marginBottom="40dp"
  39. android:layout_marginLeft="40dp"
  40. android:layout_marginStart="40dp"
  41. android:orientation="horizontal">
  42. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  43. android:id="@+id/circle_avatar"
  44. android:layout_width="56dp"
  45. android:layout_height="56dp"
  46. android:textSize="30sp"
  47. android:textStyle="bold" />
  48. <TextView
  49. android:id="@+id/circle_username"
  50. android:layout_width="match_parent"
  51. android:layout_height="match_parent"
  52. android:layout_marginLeft="15dp"
  53. android:layout_marginStart="15dp"
  54. android:gravity="center"
  55. android:text="用户昵称"
  56. android:textColor="@android:color/white"
  57. android:textSize="22sp" />
  58. </LinearLayout>
  59. </RelativeLayout>
  60. <!--<com.sheishuo.app.common.views.BaseToolbar-->
  61. <!--android:id="@+id/circle_toolbar"-->
  62. <!--android:layout_width="match_parent"-->
  63. <!--android:layout_height="?attr/actionBarSize"-->
  64. <!--app:layout_collapseMode="pin"-->
  65. <!--app:title="朋友圈"-->
  66. <!--app:right_text="发表"-->
  67. <!--style="@style/fullToolbarStyle"/>-->
  68. </android.support.design.widget.CollapsingToolbarLayout>
  69. </android.support.design.widget.AppBarLayout>
  70. <android.support.design.widget.AppBarLayout
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content">
  73. <com.sheishuo.app.common.views.BaseToolbar
  74. android:id="@+id/toolbar"
  75. android:layout_width="match_parent"
  76. android:layout_height="@dimen/action_bar_height"/>
  77. </android.support.design.widget.AppBarLayout>
  78. <LinearLayout
  79. android:layout_width="match_parent"
  80. android:layout_height="match_parent"
  81. android:orientation="vertical"
  82. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  83. <android.support.v7.widget.RecyclerView
  84. android:id="@+id/circle_recyclerview"
  85. android:layout_width="match_parent"
  86. android:layout_height="match_parent"/>
  87. </LinearLayout>
  88. <!--<android.support.design.widget.FloatingActionButton-->
  89. <!--android:id="@+id/circle_fab"-->
  90. <!--android:layout_height="wrap_content"-->
  91. <!--android:layout_width="wrap_content"-->
  92. <!--app:layout_anchor="@id/appbar"-->
  93. <!--app:layout_anchorGravity="bottom|right|end"-->
  94. <!--android:src="@drawable/ic_add_friends"-->
  95. <!--android:layout_margin="24dp"-->
  96. <!--android:clickable="true"/>-->
  97. </android.support.design.widget.CoordinatorLayout>