2017-01-10 17:14:27 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-12-18 01:25:35 +11:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-10-16 04:56:11 +11:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-10-23 06:18:20 +11:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-01-10 17:14:27 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-05-11 04:13:25 +10:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true">
|
2017-05-08 07:58:56 +10:00
|
|
|
|
2020-07-27 18:42:39 +10:00
|
|
|
<com.github.chrisbanes.photoview.PhotoView
|
2018-10-16 04:56:11 +11:00
|
|
|
android:id="@+id/photoView"
|
2017-01-10 17:14:27 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-05-12 11:31:29 +10:00
|
|
|
android:layout_height="match_parent" />
|
2017-05-10 23:24:45 +10:00
|
|
|
|
|
|
|
<ProgressBar
|
2018-10-16 04:56:11 +11:00
|
|
|
android:id="@+id/progressBar"
|
2017-05-10 23:24:45 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_centerVertical="true"
|
2019-10-23 06:18:20 +11:00
|
|
|
android:layout_gravity="center"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2017-05-08 07:58:56 +10:00
|
|
|
|
2020-08-02 05:48:51 +10:00
|
|
|
<!-- This should be inside CoordinatorLayout for two reasons:
|
|
|
|
|
|
|
|
1. TouchImageView really wants some constraints ans has no size otherwise
|
|
|
|
2. We don't want sheet to overlap with appbar but the only way to do it with autosizing
|
|
|
|
is to gibe parent some margin. -->
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
2018-05-11 04:13:25 +10:00
|
|
|
android:layout_width="match_parent"
|
2020-08-02 05:48:51 +10:00
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginTop="70dp"
|
2019-10-23 06:18:20 +11:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-08-02 05:48:51 +10:00
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/captionSheet"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/description_bg_expanded"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:behavior_peekHeight="90dp"
|
|
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="3dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:background="@drawable/ic_drag_indicator_horiz_24dp" />
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2018-05-11 04:13:25 +10:00
|
|
|
|
2020-08-02 05:48:51 +10:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/mediaDescription"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hyphenationFrequency="full"
|
|
|
|
android:lineSpacingMultiplier="1.1"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#eee"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
tools:text="Some media description which might get quite long so that it won't easily fit in one line" />
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
2018-12-18 01:25:35 +11:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|