Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <android.support.design.widget.CoordinatorLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- 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="300dp"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
- android:fitsSystemWindows="true">
- <android.support.design.widget.CollapsingToolbarLayout
- android:id="@+id/collapsingToolbar"
- 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"
- app:title="აკაკი წერეთლის სახელობის რაღაც">
- <ImageView
- android:id="@+id/toolbarImage"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:scaleType="centerCrop"
- android:fitsSystemWindows="true"
- android:src="@drawable/image_akaki_tseretlis_sakhelmtsipo_universiteti"
- app:layout_collapseMode="parallax" />
- <android.support.v7.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
- app:layout_collapseMode="pin" />
- </android.support.design.widget.CollapsingToolbarLayout>
- </android.support.design.widget.AppBarLayout>
- <android.support.v4.widget.NestedScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="28sp"
- android:lineSpacingExtra="8dp"
- android:text="lelelelelel"
- android:padding="@dimen/activity_horizontal_margin" />
- </android.support.v4.widget.NestedScrollView>
- <android.support.design.widget.FloatingActionButton
- android:id="@+id/button_add_to_favorite"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_margin="@dimen/activity_horizontal_margin"
- android:src="@drawable/ic_favorite"
- app:layout_anchor="@id/appBar"
- app:layout_anchorGravity="bottom|end" />
- </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement