FossifyGallery/app/src/main/res/layout/activity_media.xml

74 lines
3.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2020-04-18 10:32:13 +02:00
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/media_refresh_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2016-03-03 00:12:10 +01:00
<RelativeLayout
android:id="@+id/media_holder"
2016-03-03 00:12:10 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2016-03-03 00:12:10 +01:00
<com.simplemobiletools.commons.views.MyTextView
2020-04-18 10:32:13 +02:00
android:id="@+id/media_empty_text_placeholder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-04-18 10:32:13 +02:00
android:alpha="0.8"
android:gravity="center_horizontal"
2020-04-18 10:32:13 +02:00
android:paddingStart="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
2020-04-18 10:32:13 +02:00
android:paddingEnd="@dimen/activity_margin"
android:text="@string/no_media_with_filters"
android:textSize="@dimen/bigger_text_size"
2020-04-18 10:32:13 +02:00
android:textStyle="italic"
android:visibility="gone" />
<com.simplemobiletools.commons.views.MyTextView
2020-04-18 10:32:13 +02:00
android:id="@+id/media_empty_text_placeholder_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-04-18 10:32:13 +02:00
android:layout_below="@+id/media_empty_text_placeholder"
android:layout_centerHorizontal="true"
android:background="?attr/selectableItemBackground"
android:padding="@dimen/activity_margin"
android:text="@string/change_filters_underlined"
android:textSize="@dimen/bigger_text_size"
2020-04-18 10:32:13 +02:00
android:visibility="gone" />
<com.simplemobiletools.commons.views.MyRecyclerView
android:id="@+id/media_grid"
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-03-07 22:59:57 +01:00
android:layoutAnimation="@anim/layout_animation"
android:scrollbars="none"
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
2020-04-18 10:32:13 +02:00
app:spanCount="@integer/media_columns_vertical_scroll" />
2017-03-18 19:48:03 +01:00
<com.simplemobiletools.commons.views.FastScroller
android:id="@+id/media_vertical_fastscroller"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:paddingStart="@dimen/normal_margin"
android:visibility="gone">
2020-04-18 10:32:13 +02:00
<include layout="@layout/fastscroller_handle_vertical" />
</com.simplemobiletools.commons.views.FastScroller>
<com.simplemobiletools.commons.views.FastScroller
android:id="@+id/media_horizontal_fastscroller"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
2018-11-18 21:53:49 +01:00
android:layout_alignParentBottom="true"
android:paddingTop="@dimen/normal_margin"
android:visibility="gone">
2020-04-18 10:32:13 +02:00
<include layout="@layout/fastscroller_handle_horizontal" />
</com.simplemobiletools.commons.views.FastScroller>
</RelativeLayout>
2018-10-05 22:42:21 +02:00
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>