1<?xml version="1.0" encoding="utf-8"?> 2 3<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 4 xmlns:app="http://schemas.android.com/apk/res-auto" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 android:fitsSystemWindows="false"> 8 9 <ImageView 10 android:id="@+id/low_res_image" 11 android:layout_width="match_parent" 12 android:layout_height="match_parent" 13 android:scaleType="centerCrop" 14 android:background="@android:color/black"/> 15 16 <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView 17 android:id="@+id/full_res_image" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" /> 20 21 <ImageView 22 android:id="@+id/loading_indicator" 23 android:layout_width="wrap_content" 24 android:layout_height="wrap_content" 25 android:layout_gravity="center" 26 android:visibility="invisible" 27 android:fitsSystemWindows="false"/> 28 29 <FrameLayout 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:fitsSystemWindows="true"> 33 34 <androidx.coordinatorlayout.widget.CoordinatorLayout 35 android:id="@+id/coordinator_layout" 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:layout_gravity="bottom"> 39 40 <include 41 layout="@layout/preview_page_info" 42 android:id="@+id/bottom_sheet" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 app:behavior_peekHeight="@dimen/preview_attribution_pane_collapsed_height" 46 app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"/> 47 48 </androidx.coordinatorlayout.widget.CoordinatorLayout> 49 50 <androidx.appcompat.widget.Toolbar 51 android:id="@+id/toolbar" 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:layout_gravity="top" 55 style="@style/TranslucentToolbarStyle"/> 56 57 </FrameLayout> 58 59</FrameLayout> 60