2017-02-27 15:58:09 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-04-26 16:24:33 -03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/channel_header_layout"
|
2017-02-27 15:58:09 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:layout_marginBottom="12dp">
|
2017-02-27 15:58:09 +01:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/channel_banner_image"
|
|
|
|
android:layout_width="match_parent"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:layout_height="70dp"
|
|
|
|
android:background="@android:color/black"
|
2017-02-27 15:58:09 +01:00
|
|
|
android:fitsSystemWindows="true"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:scaleType="centerCrop"
|
2017-02-27 15:58:09 +01:00
|
|
|
android:src="@drawable/channel_banner"
|
2017-04-26 16:24:33 -03:00
|
|
|
tools:ignore="ContentDescription"/>
|
2017-02-27 15:58:09 +01:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/channel_avatar_layout"
|
|
|
|
android:layout_width="@dimen/channel_avatar_halo_size"
|
|
|
|
android:layout_height="@dimen/channel_avatar_halo_size"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:layout_alignTop="@id/channel_banner_image"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginTop="50dp"
|
|
|
|
tools:ignore="RtlHardcoded">
|
2017-02-27 15:58:09 +01:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/channel_avatar_halo"
|
|
|
|
android:layout_width="@dimen/channel_avatar_halo_size"
|
|
|
|
android:layout_height="@dimen/channel_avatar_halo_size"
|
|
|
|
android:layout_alignParentLeft="true"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:src="@drawable/white_circle"
|
|
|
|
tools:ignore="ContentDescription"/>
|
2017-02-27 15:58:09 +01:00
|
|
|
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
|
|
android:id="@+id/channel_avatar_view"
|
|
|
|
android:layout_width="@dimen/channel_avatar_size"
|
|
|
|
android:layout_height="@dimen/channel_avatar_size"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:src="@drawable/buddy"/>
|
2017-02-27 15:58:09 +01:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/channel_title_view"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:layout_width="wrap_content"
|
2017-02-27 15:58:09 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:layout_below="@id/channel_banner_image"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_toLeftOf="@+id/channel_rss_button"
|
|
|
|
android:layout_toRightOf="@+id/channel_avatar_layout"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
2017-02-27 15:58:09 +01:00
|
|
|
android:textSize="@dimen/video_item_detail_title_text_size"
|
2017-04-26 16:24:33 -03:00
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="Testing Title"/>
|
2017-02-27 15:58:09 +01:00
|
|
|
|
2017-04-26 16:24:33 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/channel_subscriber_view"
|
|
|
|
android:layout_width="wrap_content"
|
2017-02-27 15:58:09 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-04-26 16:24:33 -03:00
|
|
|
android:layout_alignLeft="@+id/channel_title_view"
|
|
|
|
android:layout_below="@+id/channel_title_view"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textSize="@dimen/channel_subscribers_text_size"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="123,141,411 subscribers"
|
|
|
|
tools:visibility="visible"/>
|
2017-02-27 15:58:09 +01:00
|
|
|
|
2017-04-26 16:24:33 -03:00
|
|
|
<Button
|
|
|
|
android:id="@+id/channel_rss_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_below="@+id/channel_banner_image"
|
|
|
|
android:layout_gravity="center_vertical|right"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:drawableLeft="@drawable/ic_rss_feed_white_24dp"
|
|
|
|
android:text="@string/rss_button_title"
|
|
|
|
android:textSize="@dimen/channel_rss_title_size"
|
|
|
|
android:theme="@style/RedButton"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:visibility="visible"/>
|
2017-02-27 15:58:09 +01:00
|
|
|
|
|
|
|
</RelativeLayout>
|