Created
March 10, 2017 12:39
-
-
Save jimitjaishwal/0747b7bca44160c9be08f38ecfdfad7f to your computer and use it in GitHub Desktop.
back button problem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:fitsSystemWindows="true" | |
| tools:context="com.android.jimitjaishwal.moviesplex.Details" | |
| tools:ignore="MergeRootFrame"> | |
| <android.support.design.widget.AppBarLayout | |
| android:id="@+id/app_bar" | |
| android:layout_width="match_parent" | |
| android:layout_height="@dimen/material_appbar_height" | |
| android:fitsSystemWindows="true" | |
| android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | |
| <android.support.design.widget.CollapsingToolbarLayout | |
| android:id="@+id/collapsing_toolbar" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| app:expandedTitleTextAppearance="@style/CollapsedAppBar" | |
| app:expandedTitleGravity="bottom" | |
| app:expandedTitleMargin="16dp" | |
| app:expandedTitleMarginBottom="42dp" | |
| android:fitsSystemWindows="true" | |
| app:layout_scrollFlags="scroll" | |
| app:toolbarId="@+id/toolbar"> | |
| <FrameLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:fitsSystemWindows="true"> | |
| <ImageView | |
| android:id="@+id/backdrop_path" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:contentDescription="@null" | |
| android:fitsSystemWindows="true" | |
| android:scaleType="centerCrop" /> | |
| <View | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:background="@drawable/photo_background_projection" /> | |
| <LinearLayout | |
| android:id="@+id/movie_title_bg" | |
| android:layout_width="match_parent" | |
| android:layout_height="@dimen/toolbar_height" | |
| android:layout_gravity="bottom" | |
| android:background="@color/colorPrimaryDark" | |
| android:elevation="@dimen/appbar_elevation" | |
| android:gravity="center_vertical" | |
| android:orientation="vertical" | |
| android:paddingBottom="@dimen/movie_title_bg_padding_bottom" | |
| android:paddingEnd="@dimen/movie_title_bg_padding_right" | |
| android:paddingStart="@dimen/movie_title_bg_padding_left" | |
| android:paddingTop="@dimen/movie_title_bg_padding_top"> | |
| <TextView | |
| android:visibility="invisible" | |
| android:id="@+id/movie_title" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:fontFamily="sans-serif-light" | |
| android:maxLines="1" | |
| android:textColor="@color/lightWhite" | |
| android:textSize="23sp" | |
| android:textStyle="bold" /> | |
| <TextView | |
| android:id="@+id/movie_category" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:fontFamily="sans-serif-light" | |
| android:textColor="@color/white" | |
| android:textSize="14sp" /> | |
| </LinearLayout> | |
| </FrameLayout> | |
| <android.support.v7.widget.Toolbar | |
| android:id="@+id/toolbar" | |
| android:layout_width="match_parent" | |
| android:layout_height="?attr/actionBarSize" | |
| app:layout_collapseMode="pin" | |
| app:contentInsetStart="@dimen/activity_horizontal_margin" | |
| app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> | |
| </android.support.design.widget.CollapsingToolbarLayout> | |
| </android.support.design.widget.AppBarLayout> | |
| <include layout="@layout/detail_container"/> | |
| <android.support.design.widget.FloatingActionButton | |
| android:id="@+id/fab" | |
| android:transitionName="button_fab" | |
| android:layout_width="wrap_content" | |
| android:clickable="true" | |
| android:layout_height="wrap_content" | |
| android:layout_margin="@dimen/fab_margin" | |
| app:layout_anchor="@id/app_bar" | |
| app:layout_anchorGravity="bottom|right" | |
| app:srcCompat="@drawable/ic_favorite_black_24dp" /> | |
| </android.support.design.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment