circle_of_friends_fragment.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. android:minHeight="?attr/actionBarSize">
  23. <RelativeLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:orientation="vertical"
  27. app:layout_collapseMode="parallax"
  28. android:fitsSystemWindows="true" >
  29. <ImageView
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:scaleType="centerCrop"
  33. android:src="@drawable/ico_01_fujinqun"/>
  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. <ImageView
  43. android:id="@+id/circle_avatar"
  44. android:layout_width="48dp"
  45. android:layout_height="48dp"
  46. android:textStyle="bold"
  47. android:textSize="30sp" />
  48. <TextView
  49. android:layout_width="match_parent"
  50. android:layout_height="match_parent"
  51. android:text="用户昵称"
  52. android:textSize="33sp"
  53. android:gravity="center"
  54. android:textColor="@android:color/white"
  55. />
  56. </LinearLayout>
  57. </RelativeLayout>
  58. <com.sheishuo.app.common.views.BaseToolbar
  59. android:id="@+id/circle_toolbar"
  60. android:layout_width="match_parent"
  61. android:layout_height="?attr/actionBarSize"
  62. app:layout_collapseMode="pin"
  63. app:title="朋友圈"
  64. app:right_text="发表"
  65. style="@style/fullToolbarStyle"/>
  66. </android.support.design.widget.CollapsingToolbarLayout>
  67. </android.support.design.widget.AppBarLayout>
  68. <LinearLayout
  69. android:layout_width="match_parent"
  70. android:layout_height="match_parent"
  71. android:orientation="vertical"
  72. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  73. <android.support.v7.widget.RecyclerView
  74. android:id="@+id/circle_recyclerview"
  75. android:layout_width="match_parent"
  76. android:layout_height="match_parent"/>
  77. </LinearLayout>
  78. <!--<android.support.design.widget.FloatingActionButton-->
  79. <!--android:id="@+id/circle_fab"-->
  80. <!--android:layout_height="wrap_content"-->
  81. <!--android:layout_width="wrap_content"-->
  82. <!--app:layout_anchor="@id/appbar"-->
  83. <!--app:layout_anchorGravity="bottom|right|end"-->
  84. <!--android:src="@drawable/ic_add_friends"-->
  85. <!--android:layout_margin="24dp"-->
  86. <!--android:clickable="true"/>-->
  87. </android.support.design.widget.CoordinatorLayout>