Skip to content

Commit b65241c

Browse files
committed
add share_list_item_shimmer.xml
Signed-off-by: alperozturk <[email protected]>
1 parent 09ed722 commit b65241c

File tree

2 files changed

+65
-19
lines changed

2 files changed

+65
-19
lines changed

app/src/main/res/layout/file_details_sharing_fragment.xml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -196,34 +196,35 @@
196196
android:text="@string/show_all" />
197197
</LinearLayout>
198198

199-
<FrameLayout
199+
<LinearLayout
200200
android:id="@+id/shimmer_layout"
201201
android:visibility="visible"
202202
android:layout_width="match_parent"
203-
android:layout_height="match_parent">
204-
205-
<LinearLayout
206-
android:id="@+id/loading_content"
207-
android:layout_width="match_parent"
208-
android:layout_height="wrap_content"
209-
android:orientation="vertical"
210-
android:visibility="visible">
211-
212-
<include layout="@layout/activity_list_item_shimmer" />
203+
android:layout_height="wrap_content"
204+
android:orientation="vertical">
213205

214-
<include layout="@layout/activity_list_item_shimmer" />
206+
<include layout="@layout/share_list_item_shimmer" />
215207

216-
<include layout="@layout/activity_list_item_shimmer" />
208+
<include layout="@layout/share_list_item_shimmer" />
217209

218-
<include layout="@layout/activity_list_item_shimmer" />
210+
<TextView
211+
android:id="@+id/empty_list_view_headline"
212+
android:layout_width="match_parent"
213+
android:layout_height="wrap_content"
214+
android:layout_gravity="center_horizontal"
215+
android:ellipsize="end"
216+
android:gravity="center"
217+
android:maxLines="2"
218+
android:paddingTop="@dimen/standard_padding"
219+
android:paddingBottom="@dimen/standard_half_padding"
220+
android:text="@string/file_list_loading"
221+
android:textSize="26sp" />
219222

220-
</LinearLayout>
223+
<include layout="@layout/share_list_item_shimmer" />
221224

222-
<include
223-
android:id="@+id/empty_list"
224-
layout="@layout/empty_list" />
225+
<include layout="@layout/share_list_item_shimmer" />
225226

226-
</FrameLayout>
227+
</LinearLayout>
227228
</FrameLayout>
228229

229230

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ Nextcloud - Android Client
3+
~
4+
~ SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
5+
~ SPDX-License-Identifier: AGPL-3.0-or-later
6+
-->
7+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
8+
xmlns:app="http://schemas.android.com/apk/res-auto"
9+
android:layout_width="match_parent"
10+
android:layout_height="wrap_content"
11+
android:orientation="horizontal"
12+
android:paddingBottom="@dimen/standard_half_padding"
13+
android:paddingEnd="@dimen/standard_padding"
14+
android:paddingStart="@dimen/zero"
15+
android:paddingTop="@dimen/standard_half_padding"
16+
android:layout_weight="1">
17+
18+
<com.elyeproj.loaderviewlibrary.LoaderImageView
19+
android:id="@+id/copy_internal_link_icon_loader"
20+
android:layout_width="@dimen/share_icon_size"
21+
android:layout_height="@dimen/share_icon_size"
22+
android:layout_marginStart="@dimen/standard_margin"
23+
android:layout_marginEnd="@dimen/standard_margin"
24+
android:padding="@dimen/standard_half_padding"
25+
android:scaleType="centerCrop"
26+
app:corners="100" />
27+
28+
<LinearLayout
29+
android:layout_width="match_parent"
30+
android:layout_height="wrap_content"
31+
android:layout_marginTop="@dimen/standard_half_margin"
32+
android:orientation="vertical">
33+
34+
<com.elyeproj.loaderviewlibrary.LoaderTextView
35+
android:layout_width="match_parent"
36+
android:layout_height="wrap_content"
37+
android:textStyle="bold"
38+
android:layout_marginBottom="4dp" />
39+
40+
<com.elyeproj.loaderviewlibrary.LoaderTextView
41+
android:layout_width="@dimen/sharee_list_item_size"
42+
android:layout_height="wrap_content" />
43+
</LinearLayout>
44+
45+
</LinearLayout>

0 commit comments

Comments
 (0)