2022-02-05 00:25:05 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-07-02 21:53:24 +05:30
|
|
|
<com.github.libretube.views.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"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:visibility="invisible"
|
|
|
|
tools:context=".fragments.ChannelFragment">
|
2022-04-06 15:48:18 +05:30
|
|
|
|
|
|
|
<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_height="match_parent"
|
2022-05-22 14:26:49 +05:30
|
|
|
android:layout_marginLeft="10dp"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
2022-04-06 15:48:18 +05:30
|
|
|
|
2022-05-16 00:41:27 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="3.5dp">
|
2022-05-16 00:41:27 +05:30
|
|
|
|
2022-06-03 22:19:48 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/channel_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
|
|
|
android:drawablePadding="3dip"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:ellipsize="end"
|
2022-06-03 22:19:48 +05:30
|
|
|
android:maxLines="1"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:text="Channel Name"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold" />
|
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"
|
2022-07-08 02:10:32 +05:30
|
|
|
android:layout_gravity="start"
|
2022-04-29 21:13:24 +05:30
|
|
|
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"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:layout_gravity="center_horizontal"
|
2022-05-19 00:42:06 +05:30
|
|
|
android:backgroundTint="?attr/colorOnPrimary"
|
2022-07-08 02:10:32 +05:30
|
|
|
android:drawableStart="@drawable/ic_bell_small"
|
|
|
|
android:drawableTint="@android:color/white"
|
2022-04-29 21:13:24 +05:30
|
|
|
android:text="@string/subscribe"
|
2022-06-17 22:46:37 +05:30
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:textSize="11sp" />
|
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-07-02 21:53:24 +05:30
|
|
|
</com.github.libretube.views.CustomSwipeToRefresh>
|