2015-09-04 02:15:03 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-12-02 13:08:43 +03:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
2015-09-04 02:15:03 +02:00
|
|
|
android:layout_width="match_parent"
|
2015-12-02 15:27:19 +03:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-02 16:23:31 +03:00
|
|
|
android:padding="@dimen/video_item_search_card_margin">
|
2015-09-04 02:15:03 +02:00
|
|
|
|
2015-12-02 13:08:43 +03:00
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/card_view"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-12-02 16:29:58 +03:00
|
|
|
card_view:cardCornerRadius="@dimen/video_item_search_card_radius">
|
2015-09-04 02:15:03 +02:00
|
|
|
|
2015-12-02 17:00:37 +03:00
|
|
|
<RelativeLayout
|
2015-12-02 13:08:43 +03:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
2015-12-02 15:27:19 +03:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-02 16:23:31 +03:00
|
|
|
android:padding="@dimen/video_item_search_card_padding">
|
2015-09-04 02:15:03 +02:00
|
|
|
|
2015-12-02 17:00:37 +03:00
|
|
|
<RelativeLayout android:id="@+id/itemThumbnailViewContainer"
|
|
|
|
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
|
2015-12-02 13:08:43 +03:00
|
|
|
android:layout_width="wrap_content"
|
2015-12-02 16:23:31 +03:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/itemThumbnailView"
|
|
|
|
android:contentDescription="@string/itemThumbnailViewDescription"
|
|
|
|
android:layout_width="@dimen/video_item_search_image_width"
|
|
|
|
android:layout_height="@dimen/video_item_search_image_height"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:src="@drawable/dummy_thumbnail"/>
|
|
|
|
|
|
|
|
<TextView android:id="@+id/itemDurationView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBottom="@id/itemThumbnailView"
|
|
|
|
android:layout_alignRight="@id/itemThumbnailView"
|
|
|
|
android:layout_alignEnd="@id/itemThumbnailView"
|
|
|
|
android:layout_marginRight="@dimen/video_item_search_duration_margin"
|
|
|
|
android:layout_marginEnd="@dimen/video_item_search_duration_margin"
|
|
|
|
android:layout_marginBottom="@dimen/video_item_search_duration_margin"
|
|
|
|
android:paddingTop="@dimen/video_item_search_duration_vertical_padding"
|
|
|
|
android:paddingBottom="@dimen/video_item_search_duration_vertical_padding"
|
|
|
|
android:paddingRight="@dimen/video_item_search_duration_horizontal_padding"
|
|
|
|
android:paddingLeft="@dimen/video_item_search_duration_horizontal_padding"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textSize="@dimen/video_item_search_duration_text_size"
|
|
|
|
android:background="@color/durationBackground"
|
|
|
|
android:textColor="@color/durationText"/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2015-09-20 18:02:33 +02:00
|
|
|
|
2015-12-02 17:13:01 +03:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
2015-12-02 16:23:31 +03:00
|
|
|
android:layout_width="fill_parent"
|
2015-12-02 17:00:37 +03:00
|
|
|
android:layout_height="@dimen/video_item_search_image_height"
|
|
|
|
android:layout_toRightOf="@id/itemThumbnailViewContainer">
|
2015-12-02 16:23:31 +03:00
|
|
|
|
|
|
|
<TextView android:id="@+id/itemVideoTitleView"
|
2015-12-02 17:13:01 +03:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_width="fill_parent"
|
2015-12-02 16:23:31 +03:00
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textSize="@dimen/video_item_search_title_text_size"/>
|
2015-12-02 13:08:43 +03:00
|
|
|
|
2015-12-02 15:27:19 +03:00
|
|
|
<TextView android:id="@+id/itemUploaderView"
|
2015-12-02 16:23:31 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/video_item_search_uploader_height"
|
2015-12-02 15:27:19 +03:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-12-02 17:13:01 +03:00
|
|
|
android:textSize="@dimen/video_item_search_uploader_text_size"/>
|
2015-12-02 13:08:43 +03:00
|
|
|
|
2015-12-02 15:27:19 +03:00
|
|
|
<TextView android:id="@+id/itemUploadDateView"
|
2015-12-02 16:23:31 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/video_item_search_upload_date_height"
|
2015-12-02 15:27:19 +03:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-12-02 17:13:01 +03:00
|
|
|
android:textSize="@dimen/video_item_search_upload_date_text_size"/>
|
2015-12-02 15:27:19 +03:00
|
|
|
|
2015-12-02 17:13:01 +03:00
|
|
|
</LinearLayout>
|
2015-09-04 02:15:03 +02:00
|
|
|
|
2015-12-02 17:00:37 +03:00
|
|
|
</RelativeLayout>
|
2015-12-02 13:08:43 +03:00
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
</LinearLayout>
|