2017-09-03 08:04:18 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/itemRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2017-11-02 07:38:18 +01:00
|
|
|
android:focusable="true"
|
|
|
|
android:paddingTop="@dimen/video_item_search_padding"
|
|
|
|
android:paddingBottom="@dimen/video_item_search_padding">
|
2017-09-03 08:04:18 +02:00
|
|
|
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
|
|
android:id="@+id/itemThumbnailView"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="42dp"
|
|
|
|
android:layout_centerVertical="true"
|
2017-11-02 07:38:18 +01:00
|
|
|
android:layout_marginLeft="@dimen/video_item_search_image_right_margin"
|
|
|
|
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
|
2017-09-03 08:04:18 +02:00
|
|
|
android:contentDescription="@string/list_thumbnail_view_description"
|
|
|
|
android:src="@drawable/buddy_channel_item"
|
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
|
2017-11-02 07:38:18 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/itemActionDropdown"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="42dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
2017-11-03 04:34:12 +01:00
|
|
|
android:paddingLeft="@dimen/video_item_search_padding"
|
|
|
|
android:paddingStart="@dimen/video_item_search_padding"
|
2017-11-02 07:38:18 +01:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:src="?attr/more_vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"
|
2017-11-03 04:34:12 +01:00
|
|
|
tools:ignore="ContentDescription,RtlSymmetry"/>
|
2017-11-02 07:38:18 +01:00
|
|
|
|
2017-09-03 08:04:18 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemTitleView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2017-11-02 07:38:18 +01:00
|
|
|
android:layout_toLeftOf="@id/itemActionDropdown"
|
|
|
|
android:layout_toStartOf="@id/itemActionDropdown"
|
2017-09-03 08:04:18 +02:00
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_toRightOf="@+id/itemThumbnailView"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textSize="@dimen/video_item_search_title_text_size"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="Channel Title, Lorem ipsum"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/itemAdditionalDetails"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/itemTitleView"
|
|
|
|
android:layout_toRightOf="@+id/itemThumbnailView"
|
2017-11-02 07:38:18 +01:00
|
|
|
android:layout_toLeftOf="@id/itemActionDropdown"
|
|
|
|
android:layout_toStartOf="@id/itemActionDropdown"
|
2017-09-03 08:04:18 +02:00
|
|
|
android:lines="1"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textSize="@dimen/video_item_search_upload_date_text_size"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="10M subscribers"/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|