2016-02-20 21:06:22 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-11-30 19:52:55 +01:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-05-02 21:24:04 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2016-10-25 20:26:53 +02:00
|
|
|
android:id="@+id/media_item_holder"
|
2017-06-18 22:15:16 +02:00
|
|
|
android:layout_width="wrap_content"
|
2016-11-19 19:20:50 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-11-16 14:03:18 +01:00
|
|
|
android:clickable="true"
|
2021-01-17 23:07:26 +01:00
|
|
|
android:focusable="true">
|
2016-02-20 21:06:22 +01:00
|
|
|
|
2018-11-04 21:25:51 +01:00
|
|
|
<com.simplemobiletools.gallery.pro.views.MySquareImageView
|
2017-08-05 17:02:18 +02:00
|
|
|
android:id="@+id/medium_thumbnail"
|
2017-06-19 22:19:35 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-30 19:52:55 +01:00
|
|
|
android:layout_height="match_parent" />
|
2017-06-19 22:19:35 +02:00
|
|
|
|
2016-06-05 23:49:57 +02:00
|
|
|
<ImageView
|
2021-02-19 18:51:43 +01:00
|
|
|
android:id="@+id/play_portrait_outline"
|
2017-08-07 22:57:41 +02:00
|
|
|
android:layout_width="@dimen/selection_check_size"
|
|
|
|
android:layout_height="@dimen/selection_check_size"
|
2017-08-06 12:20:12 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2021-11-30 15:49:00 +01:00
|
|
|
android:layout_alignParentBottom="true"
|
2017-08-07 22:57:41 +02:00
|
|
|
android:layout_margin="@dimen/small_margin"
|
2020-04-21 13:14:29 +02:00
|
|
|
android:src="@drawable/ic_play_outline_vector"
|
2020-11-30 19:52:55 +01:00
|
|
|
android:visibility="gone" />
|
2016-06-05 23:49:57 +02:00
|
|
|
|
2021-11-07 19:42:08 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/favorite"
|
2021-11-30 15:49:00 +01:00
|
|
|
android:layout_width="@dimen/favorite_icon_size"
|
|
|
|
android:layout_height="@dimen/favorite_icon_size"
|
2021-11-07 19:42:08 +01:00
|
|
|
android:layout_alignParentTop="true"
|
2021-11-30 15:49:00 +01:00
|
|
|
android:layout_alignParentStart="true"
|
2021-11-07 19:42:08 +01:00
|
|
|
android:layout_margin="@dimen/small_margin"
|
2021-11-30 15:49:00 +01:00
|
|
|
android:padding="@dimen/tiny_margin"
|
2021-11-07 19:42:08 +01:00
|
|
|
android:gravity="end"
|
|
|
|
android:background="@drawable/circle_black_background"
|
2021-11-30 15:49:00 +01:00
|
|
|
android:src="@drawable/ic_star_vector"
|
2021-11-07 19:42:08 +01:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
2018-11-09 13:02:37 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/video_duration"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-11-07 19:42:08 +01:00
|
|
|
android:layout_alignParentBottom="true"
|
2019-05-02 21:24:04 +02:00
|
|
|
android:layout_alignParentEnd="true"
|
2018-11-09 13:02:37 +01:00
|
|
|
android:ellipsize="end"
|
2019-05-02 21:24:04 +02:00
|
|
|
android:gravity="end"
|
2018-11-09 13:02:37 +01:00
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingLeft="@dimen/small_margin"
|
|
|
|
android:paddingRight="@dimen/small_margin"
|
2019-05-02 21:27:51 +02:00
|
|
|
android:shadowColor="@color/default_background_color"
|
|
|
|
android:shadowRadius="4"
|
2018-11-09 13:02:37 +01:00
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="@dimen/normal_text_size"
|
2019-05-02 21:24:04 +02:00
|
|
|
android:visibility="gone"
|
2020-11-30 19:52:55 +01:00
|
|
|
tools:text="02:34" />
|
2019-05-02 21:24:04 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/medium_check"
|
|
|
|
android:layout_width="@dimen/selection_check_size"
|
|
|
|
android:layout_height="@dimen/selection_check_size"
|
|
|
|
android:layout_alignEnd="@+id/medium_name"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
2020-11-30 19:52:55 +01:00
|
|
|
android:layout_margin="@dimen/medium_margin"
|
2019-05-02 21:24:04 +02:00
|
|
|
android:background="@drawable/circle_background"
|
2019-07-28 17:58:59 +02:00
|
|
|
android:contentDescription="@null"
|
2019-05-02 21:24:04 +02:00
|
|
|
android:padding="@dimen/tiny_margin"
|
2019-08-08 19:46:40 +02:00
|
|
|
android:src="@drawable/ic_check_vector"
|
2020-11-30 19:52:55 +01:00
|
|
|
android:visibility="gone" />
|
2018-11-09 13:02:37 +01:00
|
|
|
|
2016-11-10 20:46:11 +01:00
|
|
|
<TextView
|
2018-11-18 21:29:03 +01:00
|
|
|
android:id="@+id/medium_name"
|
2016-11-10 20:46:11 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-11-10 20:55:28 +01:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-02 21:24:04 +02:00
|
|
|
android:layout_alignStart="@+id/medium_thumbnail"
|
|
|
|
android:layout_alignEnd="@+id/medium_thumbnail"
|
2018-11-18 21:53:49 +01:00
|
|
|
android:layout_alignParentBottom="true"
|
2016-11-10 20:46:11 +01:00
|
|
|
android:background="@drawable/gradient_background"
|
2018-07-01 18:04:23 +02:00
|
|
|
android:ellipsize="end"
|
2016-11-10 20:46:11 +01:00
|
|
|
android:gravity="bottom"
|
2016-11-10 20:55:28 +01:00
|
|
|
android:maxLines="3"
|
2016-12-27 22:39:26 +01:00
|
|
|
android:paddingLeft="@dimen/small_margin"
|
|
|
|
android:paddingRight="@dimen/small_margin"
|
2018-11-18 21:53:49 +01:00
|
|
|
android:paddingBottom="@dimen/small_margin"
|
2019-05-05 15:47:35 +02:00
|
|
|
android:shadowColor="@color/default_background_color"
|
|
|
|
android:shadowRadius="4"
|
2016-11-10 20:46:11 +01:00
|
|
|
android:textColor="@android:color/white"
|
2019-05-02 21:24:04 +02:00
|
|
|
android:textSize="@dimen/smaller_text_size"
|
2020-11-30 19:52:55 +01:00
|
|
|
tools:text="My photo" />
|
2016-11-10 20:46:11 +01:00
|
|
|
|
2016-06-05 23:49:57 +02:00
|
|
|
</RelativeLayout>
|