LibreTube/app/src/main/res/layout/fragment_channel.xml

121 lines
4.9 KiB
XML
Raw Normal View History

2022-02-05 00:25:05 +05:30
<?xml version="1.0" encoding="utf-8"?>
<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"
android:id="@+id/channel_refresh"
2022-02-05 00:25:05 +05:30
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:id="@+id/channel_scrollView"
2022-02-05 00:25:05 +05:30
android:layout_width="match_parent"
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"
android:orientation="vertical">
2022-02-05 00:25:05 +05:30
<ImageView
android:id="@+id/channel_banner"
android:layout_width="match_parent"
android:layout_height="80dp" />
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-04-29 21:13:24 +05:30
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/channel_image"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginRight="10dp" />
2022-04-29 21:13:24 +05:30
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:orientation="vertical">
2022-05-16 00:41:27 +05:30
<LinearLayout
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:layout_marginTop="2dp"
android:text="Channel Name"
android:textSize="20sp"
android:textStyle="bold" />
2022-02-05 00:25:05 +05:30
2022-05-16 00:41:27 +05:30
<ImageView
android:id="@+id/channel_verified"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_margin="7dp"
android:visibility="gone"
android:src="@drawable/ic_verified" />
</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-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>
<TextView
android:id="@+id/channel_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
2022-05-19 21:08:36 +05:30
android:layout_marginEnd="10dp"
android:layout_marginBottom="15dp"
android:text="" />
<RelativeLayout
2022-02-05 00:25:05 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
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>