| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?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:fitsSystemWindows="true">
- <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/activity_main_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/activity_recyclerview"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
- </LinearLayout>
- <android.support.design.widget.FloatingActionButton
- android:id="@+id/activity_details_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>
|