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

116 lines
4.7 KiB
XML
Raw Normal View History

2022-02-05 00:25:05 +05:30
<?xml version="1.0" encoding="utf-8"?>
2022-09-20 23:23:34 +05:30
<com.github.libretube.ui.views.CustomSwipeToRefresh xmlns:android="http://schemas.android.com/apk/res/android"
2022-07-11 19:55:47 +05:30
xmlns:app="http://schemas.android.com/apk/res-auto"
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"
2022-06-27 22:47:52 +05:30
android:visibility="invisible"
2022-09-20 23:23:34 +05:30
tools:context=".ui.fragments.ChannelFragment">
<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"
2022-05-22 14:26:49 +05:30
android:layout_gravity="center_horizontal" />
2022-04-29 21:13:24 +05:30
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
2022-07-28 19:41:35 +05:30
android:layout_marginStart="10dp"
android:layout_marginEnd="5dp"
2022-06-27 22:47:52 +05:30
android:layout_weight="1"
android:orientation="vertical">
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:textSize="16sp"
2022-07-28 19:41:35 +05:30
android:textStyle="bold"
tools:text="Channel Name" />
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-29 21:13:24 +05:30
</LinearLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/channel_subscribe"
2022-07-11 19:55:47 +05:30
style="@style/Widget.Material3.Button.ElevatedButton"
2022-04-29 21:13:24 +05:30
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-07-11 19:55:47 +05:30
android:drawableTint="?android:attr/textColorPrimary"
2022-07-18 23:06:21 +05:30
android:stateListAnimator="@null"
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-07-11 19:55:47 +05:30
android:textSize="12sp"
2022-07-18 23:06:21 +05:30
app:cornerRadius="20dp"
2022-07-28 19:41:35 +05:30
app:elevation="20dp"
tools:targetApi="m" />
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"
2022-07-29 12:17:37 +05:30
android:autoLink="web" />
<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:nestedScrollingEnabled="false" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
2022-09-20 23:23:34 +05:30
</com.github.libretube.ui.views.CustomSwipeToRefresh>