|
|
@@ -5,36 +5,56 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
android:background="@color/white"
|
|
|
- android:fitsSystemWindows="true"
|
|
|
tools:context="me.vadik.knigopis.user.UserActivity">
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
android:id="@+id/app_bar"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="180dp"
|
|
|
- android:fitsSystemWindows="true"
|
|
|
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
|
|
+ android:layout_height="@dimen/app_bar_height"
|
|
|
+ android:theme="@style/AppBarTheme">
|
|
|
|
|
|
<android.support.design.widget.CollapsingToolbarLayout
|
|
|
android:id="@+id/toolbar_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:fitsSystemWindows="true"
|
|
|
app:contentScrim="?attr/colorPrimary"
|
|
|
+ app:expandedTitleGravity="center_vertical"
|
|
|
+ app:expandedTitleMarginBottom="16dp"
|
|
|
+ app:expandedTitleMarginStart="@dimen/title_start_margin_expanded"
|
|
|
+ app:expandedTitleMarginTop="56dp"
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
|
|
app:toolbarId="@+id/toolbar">
|
|
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
android:id="@+id/toolbar"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="?attr/actionBarSize"
|
|
|
+ android:layout_height="@dimen/toolbar_height"
|
|
|
app:layout_collapseMode="pin"
|
|
|
- app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
|
|
|
+ app:popupTheme="@style/ToolbarPopupTheme"
|
|
|
+ app:titleMarginStart="@dimen/title_start_margin_collapsed" />
|
|
|
|
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/toolbarImage"
|
|
|
+ android:layout_width="@dimen/avatar_size_expanded"
|
|
|
+ android:layout_height="@dimen/avatar_size_expanded"
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
+ android:layout_marginTop="56dp"
|
|
|
+ android:src="@drawable/oval_dark_placeholder_background"
|
|
|
+ app:appBarLayout="@+id/app_bar"
|
|
|
+ app:appBarMaxHeight="@dimen/app_bar_height"
|
|
|
+ app:appBarMinHeight="@dimen/toolbar_height"
|
|
|
+ app:layout_behavior="me.vadik.knigopis.view.SimpleBehavior"
|
|
|
+ app:toHeight="40dp"
|
|
|
+ app:toWidth="40dp"
|
|
|
+ app:toX="64dp"
|
|
|
+ app:toY="8dp"
|
|
|
+ tools:ignore="ContentDescription" />
|
|
|
+
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
android:id="@+id/userBooksRecyclerView"
|
|
|
android:layout_width="match_parent"
|