12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?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"
- 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:layout_width="match_parent"
- android:layout_height="match_parent"
- android:scaleType="centerCrop"/>
- <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">
- <ImageView
- android:id="@+id/circle_avatar"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:textStyle="bold"
- android:textSize="30sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="用户昵称"
- android:textSize="33sp"
- android:gravity="center"
- android:textColor="@android:color/white"
- />
- </LinearLayout>
- </RelativeLayout>
- <!--<android.support.v7.widget.Toolbar-->
- <!--android:id="@+id/toolbar_details"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="?attr/actionBarSize"-->
- <!--app:layout_collapseMode="pin" />-->
- </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>
|