circle_of_friends_fragment.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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="match_parent"
  36. android:layout_height="match_parent"
  37. android:gravity="center"
  38. android:orientation="horizontal">
  39. <TextView
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_weight="1"
  43. android:enabled="false"
  44. android:shadowColor="@color/black"
  45. android:shadowDx="1"
  46. android:shadowDy="1"
  47. android:shadowRadius="1"
  48. android:text="轻触换背景"
  49. android:textAlignment="center"
  50. android:textColor="@color/GreyWhite" />
  51. </LinearLayout>
  52. <LinearLayout
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal"
  56. android:layout_alignParentBottom="true"
  57. android:layout_marginStart="40dp"
  58. android:layout_marginLeft="40dp"
  59. android:layout_marginBottom="40dp">
  60. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  61. android:id="@+id/circle_avatar"
  62. android:layout_width="56dp"
  63. android:layout_height="56dp"
  64. android:textStyle="bold"
  65. android:textSize="30sp" />
  66. <TextView
  67. android:id="@+id/circle_username"
  68. android:layout_width="match_parent"
  69. android:layout_height="match_parent"
  70. android:text="用户昵称"
  71. android:textSize="22sp"
  72. android:gravity="center"
  73. android:textColor="@android:color/white"
  74. android:layout_marginLeft="15dp"
  75. android:layout_marginStart="15dp"
  76. />
  77. </LinearLayout>
  78. </RelativeLayout>
  79. <!--<com.sheishuo.app.common.views.BaseToolbar-->
  80. <!--android:id="@+id/circle_toolbar"-->
  81. <!--android:layout_width="match_parent"-->
  82. <!--android:layout_height="?attr/actionBarSize"-->
  83. <!--app:layout_collapseMode="pin"-->
  84. <!--app:title="朋友圈"-->
  85. <!--app:right_text="发表"-->
  86. <!--style="@style/fullToolbarStyle"/>-->
  87. </android.support.design.widget.CollapsingToolbarLayout>
  88. </android.support.design.widget.AppBarLayout>
  89. <LinearLayout
  90. android:layout_width="match_parent"
  91. android:layout_height="match_parent"
  92. android:orientation="vertical"
  93. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  94. <android.support.v7.widget.RecyclerView
  95. android:id="@+id/circle_recyclerview"
  96. android:layout_width="match_parent"
  97. android:layout_height="match_parent"/>
  98. </LinearLayout>
  99. <!--<android.support.design.widget.FloatingActionButton-->
  100. <!--android:id="@+id/circle_fab"-->
  101. <!--android:layout_height="wrap_content"-->
  102. <!--android:layout_width="wrap_content"-->
  103. <!--app:layout_anchor="@id/appbar"-->
  104. <!--app:layout_anchorGravity="bottom|right|end"-->
  105. <!--android:src="@drawable/ic_add_friends"-->
  106. <!--android:layout_margin="24dp"-->
  107. <!--android:clickable="true"/>-->
  108. </android.support.design.widget.CoordinatorLayout>