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

39 lines
1.5 KiB
XML
Raw Normal View History

2022-02-12 20:00:36 +05:30
<?xml version="1.0" encoding="utf-8"?>
2022-06-04 21:04:18 +05:30
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
2022-02-12 20:00:36 +05:30
android:layout_height="wrap_content"
2022-06-04 21:04:18 +05:30
xmlns:app="http://schemas.android.com/apk/res-auto"
2022-02-12 20:00:36 +05:30
android:layout_margin="8dp"
2022-06-03 22:19:48 +05:30
android:background="?android:attr/selectableItemBackground">
2022-02-12 20:00:36 +05:30
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/subscription_channel_image"
2022-06-04 21:04:18 +05:30
android:layout_centerVertical="true"
android:layout_width="40dp"
android:layout_height="40dp" />
2022-06-03 22:19:48 +05:30
2022-02-12 20:00:36 +05:30
<TextView
android:id="@+id/subscription_channel_name"
2022-06-04 21:04:18 +05:30
android:layout_width="wrap_content"
2022-02-12 20:00:36 +05:30
android:layout_height="wrap_content"
2022-06-04 21:04:18 +05:30
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_toEndOf="@id/subscription_channel_image"
2022-02-12 20:00:36 +05:30
android:ellipsize="end"
2022-06-04 21:04:18 +05:30
android:maxLines="1"
android:text="Channel Name"
android:textSize="16dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/subs_subscribe"
style="@style/Widget.Material3.Button.ElevatedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="?attr/colorOnPrimary"
android:layout_alignParentEnd="true"
android:drawableLeft="@drawable/ic_bell"
android:drawableTint="@color/white"
android:textColor="@color/white"
android:text="@string/unsubscribe"
app:cornerRadius="11dp" />
</RelativeLayout>