|
@@ -19,73 +19,75 @@
|
|
|
~ License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
~
|
|
|
-->
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<FrameLayout
|
|
|
+ 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:id="@+id/bottom_sheet"
|
|
|
+ style="@style/Widget.Material3.BottomSheet"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- android:minHeight="@dimen/bottom_sheet_min_height"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
|
|
|
|
|
- <com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/bottom_sheet"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
-
|
|
|
- <com.google.android.material.progressindicator.CircularProgressIndicator
|
|
|
- android:indeterminate="true"
|
|
|
- android:id="@+id/bottom_sheet_loading"
|
|
|
- android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- tools:visibility="gone" />
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:id="@+id/bottom_sheet_content"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
- android:visibility="gone"
|
|
|
- tools:visibility="visible">
|
|
|
+ <com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:id="@+id/thumbnail_container"
|
|
|
+ <com.google.android.material.progressindicator.CircularProgressIndicator
|
|
|
+ android:id="@+id/bottom_sheet_loading"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/standard_padding"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/title"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/title">
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_marginBottom="@dimen/standard_margin"
|
|
|
+ android:indeterminate="true"
|
|
|
+ tools:visibility="gone" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/bottom_sheet_header"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="@dimen/standard_margin"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:visibility="visible">
|
|
|
|
|
|
<include
|
|
|
android:id="@+id/thumbnail_layout"
|
|
|
- layout="@layout/file_thumbnail" />
|
|
|
- </FrameLayout>
|
|
|
+ layout="@layout/file_thumbnail"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="12dp" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/title"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:ellipsize="middle"
|
|
|
- android:lines="1"
|
|
|
- android:padding="@dimen/standard_padding"
|
|
|
- android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toEndOf="@id/thumbnail_container"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- tools:text="Test file name which is very very very very very long.pdf" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="24dp"
|
|
|
+ android:ellipsize="middle"
|
|
|
+ android:lines="1"
|
|
|
+ android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall"
|
|
|
+ tools:text="Test file name which is very very very very very long.pdf" />
|
|
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <androidx.core.widget.NestedScrollView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/file_actions_list"
|
|
|
+ <androidx.core.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical" />
|
|
|
- </androidx.core.widget.NestedScrollView>
|
|
|
-</LinearLayout>
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/file_actions_list"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical" />
|
|
|
+
|
|
|
+ </androidx.core.widget.NestedScrollView>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</FrameLayout>
|