mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
add progress bar for other items than media
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
9edffc5e64
commit
d92f5546e9
@ -81,7 +81,7 @@ class SharedItemsListAdapter : RecyclerView.Adapter<SharedItemsListAdapter.ViewH
|
|||||||
currentItem.path,
|
currentItem.path,
|
||||||
currentItem.link,
|
currentItem.link,
|
||||||
currentItem.mimeType,
|
currentItem.mimeType,
|
||||||
null,
|
holder.binding.progressBar,
|
||||||
null,
|
null,
|
||||||
holder.binding.fileImage
|
holder.binding.fileImage
|
||||||
)
|
)
|
||||||
|
@ -29,6 +29,17 @@
|
|||||||
android:layout_marginBottom="@dimen/standard_half_margin"
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/preview_container"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="2dp"
|
||||||
|
android:layout_marginEnd="2dp"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
app:layout_alignSelf="flex_start"
|
||||||
|
app:layout_flexGrow="1"
|
||||||
|
app:layout_wrapBefore="true">
|
||||||
|
|
||||||
<com.facebook.drawee.view.SimpleDraweeView
|
<com.facebook.drawee.view.SimpleDraweeView
|
||||||
xmlns:fresco="http://schemas.android.com/apk/res-auto"
|
xmlns:fresco="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/file_image"
|
android:id="@+id/file_image"
|
||||||
@ -36,21 +47,28 @@
|
|||||||
android:layout_height="@dimen/file_icon_size"
|
android:layout_height="@dimen/file_icon_size"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:src="@drawable/ic_mimetype_file"
|
android:src="@drawable/ic_mimetype_file"
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/standard_margin"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:placeholderImageScaleType="fitCenter"
|
app:placeholderImageScaleType="fitCenter"
|
||||||
fresco:actualImageScaleType="centerCrop"
|
fresco:actualImageScaleType="centerCrop"
|
||||||
fresco:failureImage="@drawable/ic_mimetype_file"
|
fresco:failureImage="@drawable/ic_mimetype_file"
|
||||||
fresco:placeholderImage="@drawable/ic_mimetype_file"
|
fresco:placeholderImage="@drawable/ic_mimetype_file"
|
||||||
fresco:roundedCornerRadius="4dp" />
|
fresco:roundedCornerRadius="4dp"
|
||||||
|
tools:src="@drawable/ic_call_black_24dp"/>
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/progress_bar"
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:visibility="gone" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
<androidx.emoji.widget.EmojiTextView
|
<androidx.emoji.widget.EmojiTextView
|
||||||
android:id="@+id/file_name"
|
android:id="@+id/file_name"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_toEndOf="@id/file_image"
|
android:layout_toEndOf="@id/preview_container"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
android:textAlignment="viewStart"
|
android:textAlignment="viewStart"
|
||||||
|
Loading…
Reference in New Issue
Block a user