2017-03-31 18:15:26 +00:00
<?xml version="1.0" encoding="utf-8"?>
2017-06-15 14:26:48 +00:00
<FrameLayout
2017-04-26 19:24:33 +00:00
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/video_item_detail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusableInTouchMode="true">
2017-03-31 18:15:26 +00:00
<com.nirhart.parallaxscroll.views.ParallaxScrollView
android:id="@+id/detail_main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="visible"
app:parallax_factor="1.9">
2017-04-26 19:24:33 +00:00
<!-- WRAPPER -->
2017-06-15 14:26:48 +00:00
<LinearLayout
2017-03-31 18:15:26 +00:00
android:layout_width="match_parent"
2017-06-15 14:26:48 +00:00
android:layout_height="wrap_content"
android:orientation="vertical">
2017-03-31 18:15:26 +00:00
2017-04-09 17:34:00 +00:00
<!-- THUMBNAIL -->
2017-06-15 14:26:48 +00:00
<FrameLayout
2017-03-31 18:15:26 +00:00
android:id="@+id/detail_thumbnail_root_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/black">
<ImageView
android:id="@+id/detail_thumbnail_image_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:contentDescription="@string/detail_thumbnail_view_description"
android:scaleType="centerCrop"
tools:ignore="RtlHardcoded"
tools:layout_height="200dp"
2017-06-15 14:26:48 +00:00
tools:src="@drawable/dummy_thumbnail" />
2017-03-31 18:15:26 +00:00
<ImageView
android:id="@+id/detail_thumbnail_play_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:src="@drawable/new_play_arrow"
android:visibility="invisible"
tools:ignore="ContentDescription"
2017-06-15 14:26:48 +00:00
tools:visibility="visible"
android:layout_gravity="center"/>
2017-03-31 18:15:26 +00:00
2017-06-15 14:26:48 +00:00
</FrameLayout>
2017-03-31 18:15:26 +00:00
2017-04-26 19:24:33 +00:00
<!-- CONTENT -->
2017-06-15 14:26:48 +00:00
<LinearLayout
2017-04-26 19:24:33 +00:00
android:id="@+id/detail_content_root_layout"
2017-03-31 18:15:26 +00:00
android:layout_width="match_parent"
2017-04-26 19:24:33 +00:00
android:layout_height="match_parent"
2017-06-15 14:26:48 +00:00
android:orientation="vertical"
android:gravity="center_horizontal"
2017-04-09 17:34:00 +00:00
android:background="?android:windowBackground">
2017-03-31 18:15:26 +00:00
2017-04-26 19:24:33 +00:00
<!-- TITLE -->
2017-06-15 14:26:48 +00:00
<FrameLayout
2017-03-31 18:15:26 +00:00
android:id="@+id/detail_title_root_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:paddingLeft="12dp"
2017-06-17 12:19:55 +00:00
android:paddingRight="12dp">
2017-03-31 18:15:26 +00:00
<TextView
android:id="@+id/detail_video_title_view"
2017-06-17 12:19:55 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="8dp"
android:paddingTop="12dp"
2017-03-31 18:15:26 +00:00
android:ellipsize="end"
android:maxLines="1"
2017-06-15 14:26:48 +00:00
android:layout_marginRight="20dp"
2017-03-31 18:15:26 +00:00
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_detail_title_text_size"
tools:ignore="RtlHardcoded"
tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a ultricies ex. Integer sit amet sodales risus. Duis non mi et urna pretium bibendum. Nunc eleifend est quis ipsum porttitor egestas. Sed facilisis, nisl quis eleifend pellentesque, orci metus egestas dolor, at accumsan eros metus quis libero."/>
<ImageView
android:id="@+id/detail_toggle_description_view"
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_marginLeft="5dp"
android:src="@drawable/arrow_down"
2017-06-17 12:19:55 +00:00
android:layout_gravity="center_vertical|right"
2017-03-31 18:15:26 +00:00
tools:ignore="ContentDescription,RtlHardcoded"/>
2017-06-15 14:26:48 +00:00
</FrameLayout>
<!-- HIDING ROOT -->
<LinearLayout
android:id="@+id/detail_content_root_hiding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
tools:visibility="visible"
android:orientation="vertical">
2017-03-31 18:15:26 +00:00
2017-06-15 14:26:48 +00:00
<!-- DETAIL -->
<RelativeLayout
android:id="@+id/detail_root"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:baselineAligned="false"
android:orientation="horizontal"
android:layout_marginTop="6dp">
2017-03-31 18:15:26 +00:00
2017-06-15 14:26:48 +00:00
<!-- VIEW & THUMBS -->
2017-03-31 18:15:26 +00:00
2017-04-26 19:24:33 +00:00
<TextView
android:id="@+id/detail_view_count_view"
2017-06-15 14:26:48 +00:00
android:layout_width="wrap_content"
2017-04-26 19:24:33 +00:00
android:layout_height="wrap_content"
2017-06-15 14:26:48 +00:00
android:layout_alignParentLeft="true"
android:lines="1"
2017-04-26 19:24:33 +00:00
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_detail_views_text_size"
tools:ignore="RtlHardcoded"
2017-06-17 12:19:55 +00:00
android:layout_marginBottom="6dp"
android:layout_marginTop="6dp"
2017-04-26 19:24:33 +00:00
tools:text="2,816,821,505 views"/>
2017-06-15 14:26:48 +00:00
<ImageView
android:id="@+id/detail_thumbs_up_img_view"
android:layout_below="@id/detail_view_count_view"
android:layout_width="@dimen/video_item_detail_like_image_width"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:contentDescription="@string/detail_likes_img_view_description"
android:src="?attr/thumbs_up"/>
2017-04-26 19:24:33 +00:00
<TextView
2017-06-15 14:26:48 +00:00
android:id="@+id/detail_thumbs_up_count_view"
android:layout_below="@id/detail_view_count_view"
android:layout_toRightOf="@id/detail_thumbs_up_img_view"
android:layout_width="wrap_content"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_marginLeft="@dimen/video_item_detail_like_margin"
android:gravity="left|center_vertical"
android:lines="1"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/video_item_detail_likes_text_size"
tools:ignore="RtlHardcoded"
tools:text="12M"/>
<ImageView
android:id="@+id/detail_thumbs_down_img_view"
android:layout_below="@id/detail_view_count_view"
android:layout_toRightOf="@id/detail_thumbs_up_count_view"
android:layout_width="@dimen/video_item_detail_like_image_width"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_marginLeft="15dp"
android:contentDescription="@string/detail_dislikes_img_view_description"
android:src="?attr/thumbs_down"
tools:ignore="RtlHardcoded"/>
<TextView
android:id="@+id/detail_thumbs_down_count_view"
android:layout_below="@id/detail_view_count_view"
android:layout_toRightOf="@id/detail_thumbs_down_img_view"
android:layout_width="wrap_content"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:lines="1"
android:layout_marginLeft="@dimen/video_item_detail_like_margin"
android:gravity="left|center_vertical"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/video_item_detail_likes_text_size"
tools:ignore="RtlHardcoded"
tools:text="10K" />
<TextView
android:layout_below="@id/detail_view_count_view"
android:id="@+id/detail_thumbs_disabled_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:gravity="left|center_vertical"
android:text="@string/disabled"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_detail_likes_text_size"
android:textStyle="bold"
android:visibility="gone"
tools:ignore="RtlHardcoded"/>
<!-- CONTROLS -->
<TextView
android:id="@+id/detail_controls_popup"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
2017-04-26 19:24:33 +00:00
android:layout_width="80dp"
android:layout_height="55dp"
android:layout_gravity="center_vertical"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
2017-06-15 14:26:48 +00:00
android:contentDescription="@string/open_in_popup_mode"
android:drawableTop="?attr/popup"
2017-04-26 19:24:33 +00:00
android:gravity="center"
android:paddingBottom="6dp"
android:paddingTop="6dp"
2017-06-15 14:26:48 +00:00
android:text="@string/controls_popup_title"
2017-04-26 19:24:33 +00:00
android:textSize="12sp"/>
<TextView
2017-06-15 14:26:48 +00:00
android:id="@+id/detail_controls_background"
android:layout_toLeftOf="@id/detail_controls_popup"
android:layout_alignParentTop="true"
2017-04-26 19:24:33 +00:00
android:layout_width="80dp"
android:layout_height="55dp"
android:layout_gravity="center_vertical"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
2017-06-15 14:26:48 +00:00
android:contentDescription="@string/play_audio"
android:drawableTop="?attr/audio"
2017-04-26 19:24:33 +00:00
android:gravity="center"
android:paddingBottom="6dp"
android:paddingTop="6dp"
2017-06-15 14:26:48 +00:00
android:text="@string/controls_background_title"
2017-04-26 19:24:33 +00:00
android:textSize="12sp"/>
2017-06-15 14:26:48 +00:00
</RelativeLayout>
2017-04-26 19:24:33 +00:00
2017-06-15 14:26:48 +00:00
<!-- UPLOADER -->
<LinearLayout
android:id="@+id/detail_uploader_root_layout"
2017-04-26 19:24:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
2017-06-15 14:26:48 +00:00
android:layout_marginTop="8dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:background="?attr/selectableItemBackground">
2017-04-26 19:24:33 +00:00
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/detail_uploader_thumbnail_view"
android:layout_width="@dimen/video_item_detail_uploader_image_size"
android:layout_height="@dimen/video_item_detail_uploader_image_size"
android:contentDescription="@string/detail_uploader_thumbnail_view_description"
android:src="@drawable/buddy"
tools:ignore="RtlHardcoded"/>
<TextView
android:id="@+id/detail_uploader_text_view"
2017-06-15 14:26:48 +00:00
android:layout_width="match_parent"
2017-04-26 19:24:33 +00:00
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_detail_uploader_text_size"
android:textStyle="bold"
tools:ignore="RtlHardcoded"
tools:text="Uploader"/>
2017-06-15 14:26:48 +00:00
<!--
<Button
android:id="@+id/detail_uploader_button"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:visibility="gone"/>
-->
2017-04-26 19:24:33 +00:00
2017-06-15 14:26:48 +00:00
<!-- <Button
android:id="@+id/detail_uploader_subscribe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|right"
android:layout_marginRight="12dp"
android:text="@string/rss_button_title"
android:textSize="12sp"
android:theme="@style/RedButton"
android:drawableLeft="@drawable/ic_rss_feed_white_24dp"
tools:ignore="RtlHardcoded"
android:visibility="gone"/>-->
</LinearLayout>
2017-04-26 19:24:33 +00:00
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_gravity="bottom"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="?attr/separatorColor"/>
<!-- DESCRIPTIONS -->
2017-06-15 14:26:48 +00:00
<LinearLayout
2017-04-26 19:24:33 +00:00
android:id="@+id/detail_description_root_layout"
2017-03-31 18:15:26 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-04-26 19:24:33 +00:00
android:layout_marginTop="5dp"
android:visibility="gone"
2017-06-15 14:26:48 +00:00
tools:visibility="visible"
android:orientation="vertical">
2017-03-31 18:15:26 +00:00
<TextView
2017-04-26 19:24:33 +00:00
android:id="@+id/detail_upload_date_view"
2017-03-31 18:15:26 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-04-26 19:24:33 +00:00
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/video_item_detail_upload_date_text_size"
2017-03-31 18:15:26 +00:00
android:textStyle="bold"
2017-04-26 19:24:33 +00:00
tools:text="Upload date"/>
<TextView
android:id="@+id/detail_description_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_marginTop="3dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/video_item_detail_description_text_size"
tools:text="Description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a ultricies ex. Integer sit amet sodales risus. Duis non mi et urna pretium bibendum."/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="?attr/separatorColor"/>
2017-03-31 18:15:26 +00:00
2017-06-15 14:26:48 +00:00
</LinearLayout>
2017-03-31 18:15:26 +00:00
2017-04-26 19:24:33 +00:00
<!-- NEXT AND RELATED VIDEOS -->
2017-06-15 14:26:48 +00:00
<LinearLayout
2017-04-26 19:24:33 +00:00
android:id="@+id/detail_related_streams_root_layout"
2017-03-31 18:15:26 +00:00
android:layout_width="match_parent"
2017-06-15 14:26:48 +00:00
android:layout_height="wrap_content"
2017-04-26 19:24:33 +00:00
android:layout_gravity="center_horizontal|bottom"
2017-06-15 14:26:48 +00:00
android:layout_marginTop="14dp"
android:orientation="vertical">
2017-03-31 18:15:26 +00:00
2017-04-26 19:24:33 +00:00
<TextView
android:id="@+id/detail_next_stream_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:text="@string/next_video_title"
android:textAllCaps="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/video_item_detail_next_text_size"
tools:ignore="RtlHardcoded"/>
2017-06-17 11:43:09 +00:00
<LinearLayout
2017-04-26 19:24:33 +00:00
android:id="@+id/detail_related_streams_view"
android:layout_width="match_parent"
2017-06-17 11:43:09 +00:00
android:layout_height="match_parent"
2017-04-26 19:24:33 +00:00
android:layout_marginTop="2dp"
2017-06-17 11:43:09 +00:00
android:orientation="vertical"
tools:minHeight="50dp"/>
2017-04-26 19:24:33 +00:00
<ImageButton
android:id="@+id/detail_related_streams_expand"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:paddingBottom="10dp"
android:paddingTop="4dp"
android:src="?attr/expand"
android:textAlignment="center"
android:textAllCaps="true"
tools:ignore="ContentDescription"/>
2017-06-15 14:26:48 +00:00
</LinearLayout>
2017-03-31 18:15:26 +00:00
2017-06-15 14:26:48 +00:00
</LinearLayout>
2017-03-31 18:15:26 +00:00
2017-04-26 19:24:33 +00:00
<!-- LOADING BAR -->
<ProgressBar
android:id="@+id/loading_progress_bar"
style="@style/Widget.AppCompat.ProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:indeterminate="true"
android:visibility="gone"
tools:visibility="visible"/>
2017-03-31 18:15:26 +00:00
2017-04-26 19:24:33 +00:00
<!-- ERROR PANEL -->
<include
android:id="@+id/error_panel"
layout="@layout/error_retry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/video_item_detail_error_panel_margin"
android:visibility="gone"
tools:visibility="visible"/>
2017-03-31 18:15:26 +00:00
2017-06-15 14:26:48 +00:00
</LinearLayout>
</LinearLayout>
2017-03-31 18:15:26 +00:00
</com.nirhart.parallaxscroll.views.ParallaxScrollView>
2017-06-17 11:43:09 +00:00
</FrameLayout>