123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:my="http://schemas.android.com/tools"
- android:id="@+id/main_content"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.design.widget.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="256dp"
- android:fitsSystemWindows="true">
- <android.support.design.widget.CollapsingToolbarLayout
- android:id="@+id/collapsing_toolbar"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_scrollFlags="scroll|exitUntilCollapsed"
- android:fitsSystemWindows="true"
- app:contentScrim="?attr/colorPrimary"
- app:expandedTitleMarginStart="48dp"
- app:expandedTitleMarginEnd="64dp">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- app:layout_collapseMode="parallax"
- android:fitsSystemWindows="true" >
- <ImageView
- android:id="@+id/circle_background"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:scaleType="centerCrop"
- android:src="@drawable/temp_circle_background"/>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_alignParentBottom="true"
- android:layout_marginStart="40dp"
- android:layout_marginLeft="40dp"
- android:layout_marginBottom="40dp">
- <com.netease.nim.uikit.common.ui.imageview.HeadImageView
- android:id="@+id/circle_avatar"
- android:layout_width="56dp"
- android:layout_height="56dp"
- android:textStyle="bold"
- android:textSize="30sp" />
- <TextView
- android:id="@+id/circle_username"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="用户昵称"
- android:textSize="22sp"
- android:gravity="center"
- android:textColor="@android:color/white"
- android:layout_marginLeft="15dp"
- android:layout_marginStart="15dp"
- />
- </LinearLayout>
- </RelativeLayout>
- <!--<com.sheishuo.app.common.views.BaseToolbar-->
- <!--android:id="@+id/circle_toolbar"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="?attr/actionBarSize"-->
- <!--app:layout_collapseMode="pin"-->
- <!--app:title="朋友圈"-->
- <!--app:right_text="发表"-->
- <!--style="@style/fullToolbarStyle"/>-->
- </android.support.design.widget.CollapsingToolbarLayout>
- </android.support.design.widget.AppBarLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/circle_recyclerview"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
- </LinearLayout>
- <!--<android.support.design.widget.FloatingActionButton-->
- <!--android:id="@+id/circle_fab"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:layout_width="wrap_content"-->
- <!--app:layout_anchor="@id/appbar"-->
- <!--app:layout_anchorGravity="bottom|right|end"-->
- <!--android:src="@drawable/ic_add_friends"-->
- <!--android:layout_margin="24dp"-->
- <!--android:clickable="true"/>-->
- </android.support.design.widget.CoordinatorLayout>
|