mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 14:50:30 +05:30
117 lines
4.8 KiB
XML
117 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.github.libretube.util.CustomSwipeToRefresh xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/channel_refresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ScrollView
|
|
android:id="@+id/channel_scrollView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".fragments.ChannelFragment"
|
|
android:visibility="invisible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/channel_banner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="10dp"
|
|
android:orientation="horizontal">
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
android:id="@+id/channel_image"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="5dp">
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="3.5dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/channel_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="left"
|
|
android:text="Channel Name"
|
|
android:drawablePadding="3dip"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:maxLines="1"
|
|
android:ellipsize="end" />
|
|
|
|
</LinearLayout>
|
|
|
|
<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" />
|
|
|
|
</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"
|
|
android:layout_alignParentEnd="true"
|
|
android:backgroundTint="?attr/colorOnPrimary"
|
|
android:text="@string/subscribe"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="11sp"
|
|
android:drawableLeft="@drawable/ic_bell_small"
|
|
android:drawableTint="?android:attr/textColorPrimary" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/channel_description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:autoLink="web"
|
|
android:text="" />
|
|
|
|
<RelativeLayout
|
|
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>
|
|
</com.github.libretube.util.CustomSwipeToRefresh>
|