circle_of_friends_fragment.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. app:layout_scrollFlags="scroll|exitUntilCollapsed"
  18. android:fitsSystemWindows="true"
  19. app:contentScrim="?attr/colorPrimary"
  20. app:expandedTitleMarginStart="48dp"
  21. app:expandedTitleMarginEnd="64dp">
  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:orientation="horizontal"
  38. android:layout_alignParentBottom="true"
  39. android:layout_marginStart="40dp"
  40. android:layout_marginLeft="40dp"
  41. android:layout_marginBottom="40dp">
  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:textStyle="bold"
  47. android:textSize="30sp" />
  48. <TextView
  49. android:id="@+id/circle_username"
  50. android:layout_width="match_parent"
  51. android:layout_height="match_parent"
  52. android:text="用户昵称"
  53. android:textSize="22sp"
  54. android:gravity="center"
  55. android:textColor="@android:color/white"
  56. android:layout_marginLeft="15dp"
  57. android:layout_marginStart="15dp"
  58. />
  59. </LinearLayout>
  60. </RelativeLayout>
  61. <!--<com.sheishuo.app.common.views.BaseToolbar-->
  62. <!--android:id="@+id/circle_toolbar"-->
  63. <!--android:layout_width="match_parent"-->
  64. <!--android:layout_height="?attr/actionBarSize"-->
  65. <!--app:layout_collapseMode="pin"-->
  66. <!--app:title="朋友圈"-->
  67. <!--app:right_text="发表"-->
  68. <!--style="@style/fullToolbarStyle"/>-->
  69. </android.support.design.widget.CollapsingToolbarLayout>
  70. </android.support.design.widget.AppBarLayout>
  71. <LinearLayout
  72. android:layout_width="match_parent"
  73. android:layout_height="match_parent"
  74. android:orientation="vertical"
  75. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  76. <android.support.v7.widget.RecyclerView
  77. android:id="@+id/circle_recyclerview"
  78. android:layout_width="match_parent"
  79. android:layout_height="match_parent"/>
  80. </LinearLayout>
  81. <!--<android.support.design.widget.FloatingActionButton-->
  82. <!--android:id="@+id/circle_fab"-->
  83. <!--android:layout_height="wrap_content"-->
  84. <!--android:layout_width="wrap_content"-->
  85. <!--app:layout_anchor="@id/appbar"-->
  86. <!--app:layout_anchorGravity="bottom|right|end"-->
  87. <!--android:src="@drawable/ic_add_friends"-->
  88. <!--android:layout_margin="24dp"-->
  89. <!--android:clickable="true"/>-->
  90. </android.support.design.widget.CoordinatorLayout>