2022-02-05 00:25:05 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-04-06 15:48:18 +05:30
|
|
|
<com.github.libretube.CustomSwipeToRefresh xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-02-05 00:25:05 +05:30
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2022-04-06 15:48:18 +05:30
|
|
|
android:id="@+id/channel_refresh"
|
2022-02-05 00:25:05 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-04-06 15:48:18 +05:30
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/channel_scrollView"
|
2022-02-05 00:25:05 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-04-06 15:48:18 +05:30
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:context=".ChannelFragment"
|
|
|
|
android:visibility="invisible">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2022-04-29 21:13:24 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-04-06 15:48:18 +05:30
|
|
|
android:orientation="vertical">
|
2022-02-05 00:25:05 +05:30
|
|
|
|
2022-04-06 15:48:18 +05:30
|
|
|
<ImageView
|
|
|
|
android:id="@+id/channel_banner"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="80dp" />
|
2022-02-06 14:58:43 +05:30
|
|
|
|
2022-04-29 21:13:24 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-05-19 00:42:06 +05:30
|
|
|
android:layout_margin="10dp"
|
2022-04-29 21:13:24 +05:30
|
|
|
android:orientation="horizontal">
|
2022-02-06 14:58:43 +05:30
|
|
|
|
2022-04-29 21:13:24 +05:30
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
|
|
android:id="@+id/channel_image"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
2022-05-22 14:26:49 +05:30
|
|
|
android:layout_gravity="center_horizontal" />
|
2022-02-06 14:58:43 +05:30
|
|
|
|
2022-04-29 21:13:24 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="match_parent"
|
2022-05-22 14:26:49 +05:30
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="5dp">
|
2022-04-06 15:48:18 +05:30
|
|
|
|
2022-05-16 00:41:27 +05:30
|
|
|
<LinearLayout
|
2022-05-22 14:26:49 +05:30
|
|
|
android:layout_marginTop="3.5dp"
|
2022-05-16 00:41:27 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2022-04-29 21:13:24 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/channel_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
|
|
|
android:text="Channel Name"
|
2022-05-22 14:26:49 +05:30
|
|
|
android:drawablePadding="3dip"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
/>
|
2022-05-16 00:41:27 +05:30
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2022-04-29 21:13:24 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/channel_subs"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
|
|
|
android:text="@string/app_name"
|
|
|
|
android:textSize="12sp" />
|
2022-04-06 15:48:18 +05:30
|
|
|
|
2022-04-29 21:13:24 +05:30
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/channel_subscribe"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2022-05-18 13:51:54 +05:30
|
|
|
android:layout_alignParentEnd="true"
|
2022-05-19 00:42:06 +05:30
|
|
|
android:backgroundTint="?attr/colorOnPrimary"
|
2022-04-29 21:13:24 +05:30
|
|
|
android:text="@string/subscribe"
|
2022-05-18 13:51:54 +05:30
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2022-05-18 14:11:10 +05:30
|
|
|
android:textSize="11sp"
|
2022-05-18 14:09:57 +05:30
|
|
|
android:drawableLeft="@drawable/ic_bell_small"
|
2022-05-18 13:51:54 +05:30
|
|
|
android:drawableTint="?android:attr/textColorPrimary"
|
2022-04-29 21:13:24 +05:30
|
|
|
/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2022-04-06 15:48:18 +05:30
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/channel_description"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-02-06 14:58:43 +05:30
|
|
|
android:layout_marginStart="10dp"
|
2022-05-19 21:08:36 +05:30
|
|
|
android:layout_marginEnd="10dp"
|
2022-05-16 03:10:33 +05:30
|
|
|
android:layout_marginBottom="15dp"
|
2022-05-29 16:03:10 +05:30
|
|
|
android:autoLink="web"
|
2022-04-06 15:48:18 +05:30
|
|
|
android:text="" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
2022-02-05 00:25:05 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-04-06 15:48:18 +05:30
|
|
|
android:descendantFocusability="blocksDescendants">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/channel_recView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
2022-04-29 21:13:24 +05:30
|
|
|
</com.github.libretube.CustomSwipeToRefresh>
|