| <?xml version="1.0" encoding="utf-8"?><!-- | |
| ~ Copyright 2018 Sudhir Khanger | |
| ~ | |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); | |
| ~ you may not use this file except in compliance with the License. | |
| ~ You may obtain a copy of the License at | |
| ~ | |
| ~ http://www.apache.org/licenses/LICENSE-2.0 | |
| ~ | |
| ~ Unless required by applicable law or agreed to in writing, software | |
| ~ distributed under the License is distributed on an "AS IS" BASIS, | |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| ~ See the License for the specific language governing permissions and | |
| ~ limitations under the License. | |
| --> | |
| <layout 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"> | |
| <data /> | |
| <android.support.design.widget.CoordinatorLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:fitsSystemWindows="true" | |
| tools:context=".ui.detail.DetailActivity"> | |
| <android.support.design.widget.AppBarLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="@dimen/appbar_height" | |
| android:theme="@style/AppTheme.AppBarOverlay"> | |
| <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"> | |
| <RelativeLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <ImageView | |
| android:id="@+id/backdrop_image_view" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:adjustViewBounds="true" | |
| android:scaleType="centerCrop" | |
| app:layout_collapseMode="parallax" | |
| app:layout_collapseParallaxMultiplier="0.5" /> | |
| <TextView | |
| android:id="@+id/title_text_view" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_alignParentStart="true" | |
| android:layout_alignParentLeft="true" | |
| android:layout_alignParentBottom="true" | |
| android:layout_marginStart="@dimen/margin_16dp" | |
| android:layout_marginLeft="@dimen/margin_16dp" | |
| android:layout_marginBottom="@dimen/margin_8dp" | |
| android:textColor="@android:color/white" | |
| android:textSize="@dimen/title_size" | |
| android:textStyle="bold" | |
| tools:text="Title" /> | |
| </RelativeLayout> | |
| <android.support.v7.widget.Toolbar | |
| android:id="@+id/toolbar" | |
| android:layout_width="match_parent" | |
| android:layout_height="?attr/actionBarSize" | |
| app:layout_collapseMode="pin" | |
| app:popupTheme="@style/AppTheme.PopupOverlay" /> | |
| </android.support.design.widget.CollapsingToolbarLayout> | |
| </android.support.design.widget.AppBarLayout> | |
| <include layout="@layout/content_detail" /> | |
| </android.support.design.widget.CoordinatorLayout> | |
| </layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment