2017-02-27 14:58:09 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-05-07 18:51:54 +00:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-09-03 06:04:18 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-04-26 19:24:33 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/channel_header_layout"
|
2017-02-27 14:58:09 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-11-11 23:05:48 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/contrast_background_color">
|
2017-02-27 14:58:09 +00:00
|
|
|
|
2017-11-04 18:30:01 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/channel_metadata"
|
2017-02-27 14:58:09 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-11-04 18:30:01 +00:00
|
|
|
android:layout_height="wrap_content">
|
2017-02-27 14:58:09 +00:00
|
|
|
|
2017-11-04 18:30:01 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/channel_banner_image"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="70dp"
|
|
|
|
android:background="@android:color/black"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/channel_banner"
|
2020-05-07 18:51:54 +00:00
|
|
|
tools:ignore="ContentDescription" />
|
2017-02-27 14:58:09 +00:00
|
|
|
|
2020-04-13 20:40:58 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/avatars_layout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-11-04 18:30:01 +00:00
|
|
|
android:layout_marginLeft="8dp"
|
2020-04-13 20:40:58 +00:00
|
|
|
android:layout_marginTop="50dp">
|
|
|
|
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
|
|
android:id="@+id/channel_avatar_view"
|
|
|
|
android:layout_width="@dimen/channel_avatar_size"
|
|
|
|
android:layout_height="@dimen/channel_avatar_size"
|
|
|
|
android:src="@drawable/buddy"
|
|
|
|
app:civ_border_color="#ffffff"
|
2020-05-07 18:51:54 +00:00
|
|
|
app:civ_border_width="2dp" />
|
2020-04-13 20:40:58 +00:00
|
|
|
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
2020-04-16 15:35:42 +00:00
|
|
|
android:id="@+id/sub_channel_avatar_view"
|
2020-05-08 07:18:56 +00:00
|
|
|
android:layout_width="@dimen/sub_channel_avatar_size"
|
|
|
|
android:layout_height="@dimen/sub_channel_avatar_size"
|
2020-04-13 20:40:58 +00:00
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
android:src="@drawable/buddy"
|
2020-05-07 18:51:54 +00:00
|
|
|
android:visibility="gone"
|
2020-04-13 20:40:58 +00:00
|
|
|
app:civ_border_color="#ffffff"
|
|
|
|
app:civ_border_width="2dp"
|
2020-05-07 18:51:54 +00:00
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:visibility="visible" />
|
2020-04-13 20:40:58 +00:00
|
|
|
</FrameLayout>
|
2017-02-27 14:58:09 +00:00
|
|
|
|
2017-11-04 18:30:01 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/channel_title_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/channel_banner_image"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginTop="6dp"
|
2020-04-13 20:40:58 +00:00
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:layout_toLeftOf="@id/channel_subscribe_button"
|
|
|
|
android:layout_toRightOf="@id/avatars_layout"
|
2017-11-04 18:30:01 +00:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textSize="@dimen/video_item_detail_title_text_size"
|
|
|
|
tools:ignore="RtlHardcoded"
|
2020-04-13 20:40:58 +00:00
|
|
|
tools:text="Lorem ipsum dolor" />
|
|
|
|
|
|
|
|
<TextView
|
2020-04-16 15:35:42 +00:00
|
|
|
android:id="@+id/sub_channel_title_view"
|
2020-04-13 20:40:58 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/channel_title_view"
|
|
|
|
android:layout_alignLeft="@id/channel_title_view"
|
|
|
|
android:layout_alignRight="@id/channel_title_view"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center|left"
|
|
|
|
android:lines="1"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textSize="12dp"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:layout_below="@id/channel_title_view"
|
|
|
|
tools:text="Lorem ipsum dolor" />
|
2017-11-04 18:30:01 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/channel_subscriber_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-16 15:35:42 +00:00
|
|
|
android:layout_below="@id/sub_channel_title_view"
|
2020-04-13 20:40:58 +00:00
|
|
|
android:layout_alignLeft="@id/channel_title_view"
|
|
|
|
android:layout_alignRight="@id/channel_title_view"
|
2017-11-04 18:30:01 +00:00
|
|
|
android:ellipsize="end"
|
2018-09-05 02:54:17 +00:00
|
|
|
android:maxLines="2"
|
2017-11-04 18:30:01 +00:00
|
|
|
android:textSize="@dimen/channel_subscribers_text_size"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="123,141,411 subscribers"
|
2020-04-13 20:40:58 +00:00
|
|
|
tools:visibility="visible" />
|
2017-11-04 18:30:01 +00:00
|
|
|
|
2019-10-04 12:59:08 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
2017-11-04 18:30:01 +00:00
|
|
|
android:id="@+id/channel_subscribe_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/channel_banner_image"
|
2020-05-07 18:51:54 +00:00
|
|
|
android:layout_alignParentRight="true"
|
2017-11-04 18:30:01 +00:00
|
|
|
android:layout_gravity="center_vertical|right"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:text="@string/subscribe_button_title"
|
|
|
|
android:textSize="@dimen/channel_rss_title_size"
|
2020-05-11 17:29:34 +00:00
|
|
|
android:theme="@style/ServiceColoredButton"
|
2017-11-04 18:30:01 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
2020-05-07 18:51:54 +00:00
|
|
|
tools:visibility="visible" />
|
2017-11-04 18:30:01 +00:00
|
|
|
</RelativeLayout>
|
2017-02-27 14:58:09 +00:00
|
|
|
|
2017-11-11 22:47:34 +00:00
|
|
|
<LinearLayout
|
2017-11-04 18:30:01 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-11-12 08:16:51 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/channel_metadata">
|
2017-11-04 18:30:01 +00:00
|
|
|
|
2017-11-12 08:16:51 +00:00
|
|
|
<include layout="@layout/playlist_control" />
|
2017-11-11 22:47:34 +00:00
|
|
|
</LinearLayout>
|
2017-11-04 18:30:01 +00:00
|
|
|
|
2020-05-07 18:51:54 +00:00
|
|
|
</RelativeLayout>
|